file - Cortex-M3 flash memory limitation -


i have program generates .axf file of size 800kb , microcontroller seems execute code perfection. wondering why it's possible store .axf file bigger 800kb cortex-m3 microcontroller has specified internal flash memory of 256kb. doesn't make sense me. .axf file has microcontroller internal flash memory, right? if so, why program work?

axf, elf, coff, exe, intel hex (ihex), motorola s record (srec) , whole bunch of other "binary" file formats contain both binary , other stuff code gets loaded. work simple binary images of program. there still lot of work in microcontroller land raw binary image used. more , more flash programmers accepting these other file formats (intel hex , s record being ones have been supported long time). toolchain might have tools can convert between formats axf ihex or 1 of interest ihex raw binary. if elf file , using gnu tools then

arm-none-eabi-objcopy file.axf -o binary file.bin 

now might backfire on you, if dont have valid program. if example flash @ 0x10000000 , have less program flash ram @ 0x80000000 , have n bytes of .data , linker script didnt account placing in flash (so bootstrap code copy it) end padding in .bin file have relatively in right place, n bytes of .data need 0x80000000-0x10000000 bytes after start of flash, .bin file 2 gigabytes. large binary tiny microcontroller. yet reason not work raw binary images instead file formats mix binary blobs information binary blobs go... have n bytes of .text start @ 0x10000000 have y bytes of .data start @ 0x80000000 , on...


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -