Hi all
I'm learning to program uC's on by myself, and I'm using the MCB1700, now I have some doubts.
for example, How can I reserve SRAM space memory for storing data? what I want is to have for example 4 KB of memory to store data, from one memory location known and fixed, and no access to it except the data I want to store and read to and from it.
I am currently trying both ways, but I'm not absolutely convinced that this work or playing well, are as follows:
- 4 KB array, starting at position 0x20080000.
Unsigned char my_sram_sector [0x4000] __attribute__ ((section (". ARM.__at_0x20080000"), zero_init));
or
- In Options for Target 'FLASH' in Target tab
in Read/Write Memory Areas
default off-chip Start Size NoInit selected RAM1: 0x2008000 0x4000 Selected Not Selected RAM2: Not Selected RAM3:
default off-chip Start Size NoInit selected IRAM1: 0x10000000 0x8000 Not Selected Not Selected IRAM2: 0x2007C000 0x4000 Not Selected
Could this be a correct way?
And if I want to store in the 4 KB data structures, how could I do it?
thanks in advance and forgive my English
Thank you everyone, specially Marc
I was quite clear with the explanation you have given me and meets my needs.
thanks again