board_android-IoT/W7500_STM32 2021. 7. 19. 11:17

[ W7500 / Link error ]  Sections of aggregate size 0xc bytes could not fit into

#STM32M0  #KEIL #uVision #LINKERROR #COULDNOTFITINTO #Sectionsofaggregatesize #ErrorL6407E

 

<BEFORE>
linking...
.\Obj\SNMPOOOOO_OOOO_OO.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.data).
.\Obj\SNMPOOOOO_OOOO_OO.axf: Error: L6406E: No space in execution regions with .ANY selector matching retarget.o(.data).
.\Obj\SNMPOOOOO_OOOO_OO.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.data).
.\Obj\SNMPOOOOO_OOOO_OO.axf: Error: L6407E: Sections of aggregate size 0xc bytes could not fit into .ANY selector(s).

<AFTER>
linking...
Program Size: Code=36900 RO-data=4528 RW-data=6820 ZI-data=8972  


// map file 
    Total RO  Size (Code + RO Data)                41428 (  40.46kB)
    Total RW  Size (RW Data + ZI Data)             15792 (  15.42kB)
    Total ROM Size (Code + RO Data + RW Data)      42284 (  41.29kB)

 

How to fix:

- decrease size in Variable declarations.

ex. uint8_t SomeVariable[256] ;  // ex. 256 ->128

> above change makes RAM(RW size) size smaller. Then I can fix this problem 'could not fit into'.

 

 

*. https://developer.arm.com/documentation/ka002785/latest

 

Documentation – Arm Developer

 

developer.arm.com

- W7500 (coretex m0) memory map

http://wizwiki.net/wiki/lib/exe/fetch.php?media=products:w7500:overview:w7500_memory_map.png 

 

'board_android-IoT > W7500_STM32' 카테고리의 다른 글

KEIL MDK compiled code and RAM usage details  (0) 2021.07.19
posted by cskimair
: