Source code, setting up explanations, and everything moved to: https://github.com/rromanotero/xbee_mac_interface .
I was thinking how to better illustrate (to students) the use of the stack for holding automatic variables at the machine level, and this came out. The class was using the SAM4S Xplained Pro board to learn ARM Thumb assembly, hence its use. The vulnerable application runs MiniOS.
(Updated Nov 15, 2014). The idea is simple. Xbee 802.15.4 radios cannot communicate off-the-shelf with TinyOS-based moted. They are supposed to, but they do not. Sometimes communication is not possible because of parameter mismatch. In particular, a) TinyOS is set in low power listening mode (not supported in Xbees); or b) Xbees are set up [...]