AnsweredAssumed Answered

STM32F1 - Int Vector Table in RAM setup?

Question asked by MWP on Oct 31, 2013
Latest reply on Oct 31, 2013 by Clive One
Hi all,

Ive got a bit of a problem with a bootloader.

Everything is running just fine out of RAM (.text .rodata .data), but im having issues moving over the vector table.

Ive reserved 0x200 bytes at the start of RAM in the linker script, then at the start of the bootloader i do:
memcpy((char*)0x20000000, (char*)0x8000000, 0x1E4);
NVIC_SetVectorTable(NVIC_VectTab_RAM, 0);

Is there anything wrong with doing this?
When i do, i have a weird issue with FatFS not being able to open a file on a uSD card.
If i comment out those two lines and leave the table in flash, it works just fine.

Any ideas?

Thanks in advance!!

Outcomes