CW for the 56F83xx

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW for the 56F83xx

2,017 Views
fef
Contributor I
Does the latest version of CW for the 56F83xx device family support constant data in the program flash? I don't believe it was possible to prevent the data from being transfered to RAM in 6.1. Please correct me if I am mistaken.

Thanks,

Fred
Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

435 Views
trytohelp
NXP Employee
NXP Employee
Hi,
 
With the previous version like V6.x or 7.x,  as specified in the targeting manual, the "Emit separate character data sections" option is used to place the char constants in a separate section (.const.data.char). Later this section can be put into FLASH using the linker command file.
 
I know that we've another solution to define the location.
See below for details.
 
The application is configured to use the simulator.
To use it on board, change the remote debugging option.
What I did:
- I created an example with Processor Expert for DSP56F8357,
- I selected the PROM-XRAM project,
- I built the project,
- I frozed the PE generation,
- I edited the .cmd file and insert the line * (.const.data.pmem) in the application code,
- in the c file I added: __pmem const toto[]={1,2,3,4,5,6,7,8,9,10};

This can not be done by Processor Expert.

 

test.zip

Message Edited by t.dowe on 2009-10-15 05:33 PM
0 Kudos
Reply

435 Views
fef
Contributor I
Thanks for the suggestion. I'll give it a try.

Fred
0 Kudos
Reply