11 years ago.

kl25z memory

I am new to mbed...I have a quick question about using the KL25z board. The project I am designing will use data store as hex values in the flash and ram memories. How do you store some of the data values in the flash memory (to be used like ROM memory) and other data values in the 16k RAM?

example: char letterfont[200] = {0x70,0x88,0x98, etc}......How do you designate between the two memory types?

1 Answer

11 years ago.

If you add the 'const' keyword in front it should place it inside the flash. Then they cannot be changed, if you need to change them it is possible, but alot less trivial.