Part Number: TMS570LS1114
Other Parts Discussed in Thread: HALCOGEN
Tool/software: TI C/C++ Compiler
I am trying to create a custom bootloader for Hercules microcontroller using CCS 9.3.0.00012 and TI v18.12.4.LTS.
My bootloader works nicely but only on the current compiled version (ie it can only be used to update the current version of the code over itself).
As I make changes to my main code space area the bootloader code and libraries code spaces (halcogen generated code) change. Changes in code relate to accessing memory locations in the boot code and libraries space areas.
It would appear that the bootloader and libraries flash areas change with each compile. I have verified this by comparing the two binary images of two different compiles/files and making some minor changes to my main code space.
Furthermore, the interrupt vectors in the first page (0x00000000) are changing as well between code revisions.
So when I try and perform an update via the bootloader I crash my program.
I have experimented with the ARM Linker \ Advanced Options \ Linker Output for
- Produce absolute executable object file
- Produce a relocatable output module
If I select both options at the same time I get a message “#10017 combining options --absolute (-a) and --relocatable (-r) is not supported when producing ELF output files
When I select “Produce a relocatable output module” I get multiple errors “linker will only generate a CRC Table when creating an executable file”, “program will not fit into available memory”, “Placement with alignment fails for section”.
I don’t know how I can create a bootloader that does not change when I make changes to my main code space area and recompile, ie the code in the bootloader and libraries needs to be independent from the main code space area.
Could you please comment on how to fix this behavior?
Rob