Topic: Creating an Array at set memory location
Hi,
I'm trying to create an array in set memory location, both for FLASH and RAM memory location. The memory location where they are to go are already set aside as non-program memory. Should I just create a pointer to the memory locations? Or do I need to create a table?
What I'm looking for is a line of code that will create a table of type uint16_t of array size 16 both for FLASH and RAM.
FYI:
I'm working on a STM32 processor. I already know how to create Variables at fixed locations, just not arrays. What I'm trying to do is have an array in FLASH that then is loaded into RAM. This will be done during an interrupt. The reason I need fixed locations is so that I can change the values in the array over USB. I already have that up and running, I just need to have an array now that I can write to.
Any help would be much appreciated. Thanks,
Timothy Burbridge