Home > User Support > CoverageMaster winAMS FAQ

CoverageMaster winAMS FAQ

Test Data Settings

022_02: How to use a const variable as an input variable and change the value?

Question:

Can I use a const variable as an input variable and change the value?

Answer:

Yes you can. The const variable is assigned to the ROM (Read attribute) area so you need to change the memory attribute in order to write to it. If you don't care about detecting memory access violations you can check the "Assign all memory areas" checkbox in the Target Settings screen. This will assign the read/write attribute to all memory areas. Otherwise, you can change the memory attributes in the startup command file.

Ex.) Enter the following command in the startup command file when the allocated area for the const variables is 0x1000 - 0x2000. (The allocated area can be found in the link map.)

assign/read/write 0x1000:0x2000


Related Technical Tips Search

Other technical tips in GAIO's web site can be searched for using the links below.

Search key word link: Const Variable
Technical Tips Google Search


Information Links