Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Unexpected flash start address(Executables have a different address to that set in the linker script)
Unexpected flash start address [message #1783302] Sun, 11 March 2018 12:02 Go to next message
David Bleloch is currently offline David BlelochFriend
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.
Re: Unexpected flash start address [message #1783533 is a reply to message #1783302] Tue, 13 March 2018 19:58 Go to previous message
David Bleloch is currently offline David BlelochFriend
Messages: 2
Registered: March 2018
Junior Member
Progress of sorts. I had been building a "Release" build rather than a "Debug" build and the debug build works fine. The build log is also totally different, and makes much more sense to me... linker files are specified by name etc. I need to do a bit more digging into why the difference is so great between the two g++ invocations.
Previous Topic:Line numbers cut off for Ubuntu Large Text
Next Topic:Eclipse Input Output Redirection with < and >
Goto Forum:
  


Current Time: Tue Apr 23 14:53:20 GMT 2024

Powered by FUDForum. Page generated in 0.03147 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top