I compiled a “training program” with codewarrior in release version.
After that, I want to load it in the application space of my programmable xbee with the help of the integrated bootloader.
I want to send this program by using the grove board with xctu. Is it possible at all?
I can make the device entering the bootloader menu but that is the final thing I can do following the 10.6.1. Transfer process chapter from the codewarrior help. After that it tells to select the xmodem menu but… In my version of xctu (the newest I suppose) there is no xmodem menu!
Yes it is possible… With help of a second software. The steps to follow :
There will be a step where it is important to go fast. For this, install tera term and connect to your xbee board with the right baud rate and control bits by selecting in the menu : Setup->Serial Port…
Compile your software with the codeWarrior suite (Release version, not Debug)
In tera term, after connected to your device, click File->Transfer->XMODEM->Send… and navigate to your project directory “Workspace->project folder->Release” and open any file, this will just set the current folder for the next time, when you will make the “real transfer”, because the bootloader don’t let you so much time to begin the application download and to navigate in your folders…
Clic File->disconnect to allow the connection with xctu
Open XCTU to start the bootloader mode on your board. For this :
Connect your computer to your device using the “+” button
In the menu, select : tools->serial console
Clic “Open” and check the radio buttons like this : DTR=1 RTS=0 BRK=1
Reset the xbee pressing the reset button on the grove board
toggle the button brk (off)
Close xctu and connect to your xbee with the tera term software
Press “f” on your keyboard and now, go fast for the final step :
click File->Transfer->XMODEM->Send… and select the “yourprojapp.abs.bin” file
Absolutely deplorable that Digi doesn’t supply a tool for flashing the programmable XBee. What? They think in a production environment we are going to let assembly personnel fire up CodeWarrior and bit bang 50000 XBees? Digi! Pull your head out!
Fortunately, XMODEM is a reasonably simple protocol and IggMoe has published a fine bit of C# code for it on the GHIElectronics Community website. Web search for “XMODEM_FullDotNET site:ghielectronics.com”. You can embed his C# code in the following PowerShell wrapper and you are good to go: