跳转到主内容
Knowledgebase
Home
Renesas Electronics China - Knowledgebase

How do I assign a const that resides in Flash not SRAM?

Latest Updated:10/18/2016

Question:

How do I assign a const to Flash memory instead of SRAM? I have a big table and I don't want it to use up SRAM.

Answer:

You can simply put the keyword "const" before the variable and it will be assigned to Flash memory. 

const char s;

Suitable Products
SSP