AnsweredAssumed Answered

Run code in SRAM in ASM

Question asked by jenkins.james on Jan 5, 2012
Latest reply on Aug 1, 2012 by Clive One
Hi, I'm quite new to the STM32 and am trying to run code in internal SRAM, but cannot find a lot of information about it.

This is what I have been doing:
1) Copy code block to SRAM (with LDR and STR) starting at 0x2000 0000
2) Branch to 0x2000 0000

The code should have turned on an LED, but it didn't. No interrupts will fire after reset, so I don't know why/if I need to copy the interrupt vector table as well as the code. I'm quite sure that the code block is copying correctly, as I have checked it in debug mode.

I am not using Keil software, so must program it directly in ASM. I would really appreciate some help on this one, as it seems to be the make-or-break thing needed to get my camera working.

Thanks in advance, James

Outcomes