Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Read Out Initial SRAM Values

$
0
0

Hi Guys,

I just received a Stellaris Launchpad Eval Board (LM4F120H5QR MCU) and I want to accomplish the following things: I want to read out the (possibly random) SRAM values before initialization of SRAM. I would like to put the values on UART to receive them via terminal.

I already achieved it on an ARM M0 from ST by putting the corresponding ASM code (for iterating over the SRAM space and writing each byte to the UART PIN) in the Reset() routine just bevore all the SRAM is ZEROed.

However,  when I put ASM code in the startup_ccs.c à la

__asm("ldr r0, =0x40021000\n"

"ldr r1, =0x00004004\n");

I get a lot of errors regardings syntax.

Does anyone could help me out with developing the corresponding code?

Best Regards!


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>