This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SRAM

Hello.

I wanna use SRAM to make more free space for my variables (including vector), I cannot understand how can I do this. It seems to be in Project Options -> Target -> Read/Write Memory Areas, so I write RAM1: (Start)0x60000000 (size)0x1000000 (as is in sam4sd32c.h)

#define EBI_CS0_ADDR (0x60000000u) /**< EBI Chip Select 0 base address */
#define EBI_CS1_ADDR (0x61000000u) /**< EBI Chip Select 1 base address */


and I save this and try to use it. When I am not using external SRAM or use how I printed below when I try to make push_back() to vector it goes to hardfault_handler.

Thanks for your help!