Question
Run code in SRAM in ASM
Posted on January 05, 2012 at 04:46
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 00002) Branch to 0x2000 0000The 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 #code-execute-sram