Hi Forum, I am using Ride GCC and the target is a STR730FV1, with 128K flash in 6 sectors. I want to use the first sector to store a table and start the program from the next sector. Can i change the the start address in the linker setting Regards, Bram
Bram Dobbelaar wrote: > Hi Forum, > > I am using Ride GCC and the target is a STR730FV1, with 128K flash in 6 > sectors. I want to use the first sector to store a table and start the > program from the next sector. Can i change the the start address in the > linker setting You can change the start of a memory-section in the linker-script. I don't know how the RIDE IDE handles this (maybe a linker-script is generated in the background). But it might not work to just "move" the memory-origin since at least the reset-vector should be at address 0 in flash. So it might be easier to use the last sectors in flash for your table. Or you could add an extra memory section for the vectors which is placed at page 0 and add a section for the table to be placed at pages 1-x and place the code at page x+1.
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.