AnsweredAssumed Answered

gdb and external memory

Question asked by sam.sam on Aug 22, 2013
Latest reply on Aug 25, 2013 by Clive One
Hello Everyone,

I am using stm32f407 which is interfaced with 1MB of external RAM. Linker script is a simple one where it puts the data and bss section in external RAM.

Regarding code execution I don;t have an issue. When i try to read any variable which is allocated in external RAM via GDB, i get an error "Cannot access memory at address 0x60000xxx"

So my question is, is it possible to directly access variables allocated in external memory with normal gdb commands like "p variable_name". I can of-course write a function which can copy data from external RAM to internal ram and then i  manually typecast it to get the desired result.

Outcomes