VS Arduino
Visual Micro >> General Board >> Moving start address of program
https://www.visualmicro.com/forums/YaBB.pl?num=1578918487

Message started by mephisto on Jan 13th, 2020 at 12:28pm

Title: Moving start address of program
Post by mephisto on Jan 13th, 2020 at 12:28pm
Hi all,

I am working with an Arduino Due, and I need to make my program start at memory address 0xA0000. I used the linker flag

-Wl,-section-start=.text=0xA0000

to successfully change the address of the the .text section of the compiled ELF file. However, after uploading, the Arduino does not run any code, so I think it is stuck at 0x80000 (default address) with no code to run.

How can I make my program start running from 0xA0000?

Thanks.

Title: Re: Moving start address of program
Post by Visual Micro on Jan 13th, 2020 at 12:29pm
It is best to ask general mcu architecture questions in the forum for the board you have. In your case that will be the forum at arduino.cc

Title: Re: Moving start address of program
Post by mephisto on Jan 13th, 2020 at 12:35pm
Okay I will try to ask there as well. Thanks.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.