RAM Segments


Does anyone know how to pass the memory segment option '-W1' to the Linker ? I think it would be something like ...-W1,Tdata,0x800200

I want to move the start of .data from $100 to $200 - in AVRStudio I use Options/MemSel and just make entries in the table.

Any help will be appreciated.

You'll need to compile the sketch from the command line. If you set build.verbose to true in your Arduino preferences file, and then start the IDE and press Verify / Run, it will print the command lines it uses to build your sketch, which should help get you started. Alternatively, there's a Makefile in the hardware/cores/arduino directory which is another option (though it might be a bit out of date).

Thank you Mellis - I will try that route.