Unexpected flash start address [message #1783302] |
Sun, 11 March 2018 12:02 |
David Bleloch Messages: 2 Registered: March 2018 |
Junior Member |
|
|
Hi, I have run into my first noob problem having moved from "vendor IDE tools" to Eclipse. I am just trying a "BlinkyLED" tutorial to check that I can get code onto the target, a STM32F103 dev board.
My linker script specifies that the start of the flash is at 0x08000000 but when I build, the hex file starts at 0x8000. Everything that I can find in Eclipse settings points to a target location of 0x8000000.
'''
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
CCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 0
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K
FLASHB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
EXTMEMB0 (rx) : ORIGIN = 0x00000000, LENGTH = 0
EXTMEMB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
EXTMEMB2 (rx) : ORIGIN = 0x00000000, LENGTH = 0
EXTMEMB3 (rx) : ORIGIN = 0x00000000, LENGTH = 0
MEMORY_ARRAY (xrw) : ORIGIN = 0x00000000, LENGTH = 0
}
'''
The first hint that things are going wrong seem to be in this line in the map file..
'''
[!provide] PROVIDE (__executable_start, SEGMENT_START ("text-segment", 0x8000))
0x00008000 . = SEGMENT_START ("text-segment", 0x8000)
'''
I've trawled the forum and the web and I'm sure this is something really stupid that I'm not doing.
Many thanks in advance.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03182 seconds