This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Access specific address in SARAM

Hi,

I'm looking into writing a boot loader. I want to be able to boot 2 different versions of a firmware. To be able to write the program to memory from flash and execute it, I will require access directly to the SARAM.

Any ideas of how to accomplish this? I would like to be able to grab a file generated with hex55, write it to memory, and execute it.

Will using something like the following, grant me access to the correct address or to some random address in data memory?

int* address = (int *)0x0c;
*address = 0xABCD;

Best regards

Marcus