Telosb can be flashed using a bootloader without the need of a hardware debugger or JTAG.
To flash your Telosb mote follow the following steps:
Execute
python bsl --telosb -c /dev/ttyUSB0 -r -e -I -p your_firmware_hex_file.ihex |
Problem: after flashing telosb with an ihex file, the software does not behave as desired. This can mean that it starts but it hangs somewhere or the behavior is not the expected.
Solution: this can be related to compiler optimizations. Try compiling without compiler optimizations and flashing telosb. Note that this can produce larger flash image.
Remove -Os parameter in the following line. If this produces too large code try different optimization levels (-O1, -O2, -O3, -Os)
coming soon.