I am using the CC2531 and the SmartRF Flash Programmer. I am trying to flash a boot loader and application executable (both .hex files).
I am trying to get the SmartRF Flash Programmer to put both images on, but get an error.
I do the bootloader using the erase,program,verify.
I then do the application using the append,verify.
Then I power cycle and my app doesn't run.
What is the appropriate way to put two images on the flash?
The offsets in my hex files appear to be correct (bootloader starts at 0x0000 to 0x1FFF and app starts at 0x2000 - 0xFFFF).
If I download these two projects using IAR Workbench, it works just fine (bootloader starting, then application starting).
I have included the first and last lines of my hex file (which to me show the proper start addresses and lengths).
I found my issue. I am using a banked flash model for my application.
According to the SWRU038 IAR User Manual, in order to generate a proper .hex file you must add the following extra Linker Option:
Now it works great.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.