Hi,
for the bootloader, integrated into the main project, I need to link the "__aeabi_uidivmod" to a fixed location within the bootloader section of my external flash memory.
How can I manage that? I tried these expressions in the bootloader section of the scatter loading file, but it didn't cause something:
aeabi_* (+RO) *armlib/c_* (+RO) *armlib/h_* (+RO) *armlib* (+RO) *armlib*
Any ideas?
BR Detlef Weidner
@Per,
Would you say your comment applies to const data as well? For example an image to go on the LCD splash screen during boot but also used in the application.
I'm thinking of using a custom symdefs file to share const data between the 2 apps.
You could make the design choice to have your constant data (or a pointer to it) at a fixed location (such as somewhere last in the boot loader image) and then have the main application use this reference to get access to the copy.
You must do it in a way that you can rewrite your boot loader, making significant changes, and still be able to keep this access mechanism functioning.
I often use the last 16 bytes for image information. Version, crc of image etc. Such a block could contain an offset to your string. Or a pointer to a pointer table of a larger set of resources that you want your main application to access.