How to write to DataFlash?

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

How to write to DataFlash?

2,335 Views
TheSealion
Contributor I
Hi,
 
I have a problem with accessing the dataflash section on my 56F8367.  I want to use a part of this memory as EEPROM replacement. 
I tried to use the IntFLASH Bean from the Processor Expert. but when I chose the Data_Flash there as target and than write to these memory beginning at 0x4000 My programm does not work any more.
Therefor I think the memory I write to is already use.
 
But where cann I store my data?
 
Mike
Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

674 Views
TheSealion
Contributor I
Hi,
 
I have found out some more details to my problem.
 
The compiler puts some strings into the flash area so that the program doesn't work if
I write other data to this area.
 
Here ist e little part of the MAP-file:
 
Code:
# .Data_xROM  00004000 00000003 .const.data FSeriell_Out_PrescHigh$1130 (Seriell_Out.c)  00004003 00000004 .const.data FTable (AD1.c)  00004007 00000004 .const.data FChannels (AD1.c)  0000400B 00000004 .const.data FTable (AD2.c)  0000400F 00000004 .const.data FChannels (AD2.c)  00004013 00000001 .const.data F@1091 (Genesis.c)  00004014 00000005 .const.data FENABLE_TECS_Table (ENABLE_TECS.c)  00004019 00000001 .const.data FLEDs_Table (LEDs.c)  0000401A 00000002 .const.data FENA_LD_Table (ENA_LD.c)  0000401C 00000002 .const.data FANALOG_INT_OUT_Table (ANALOG_INT_OUT.c)  0000401E 00000001 .const.data FENA_SUPPLY_Table (ENA_SUPPLY.c)  00004020 000008B8 .const.data FRemCmdTbl (parse.c)  000048D8 00000006 .const.data F@1020 (parse.c)

 My question is now, how can I create a area that the compiler does not use and where I can put my data the way I want?
 
Mike
0 Kudos
Reply

674 Views
trytohelp
NXP Employee
NXP Employee
Hi,
 
Can I suggest you to use a pragma ?
Please refer to the #pragma define_section.
Have a look in the \help\pdf\56800x_Build_Tools_Reference.pdf.
Page 162 there is info and example using this pragma.
 
Hope this will help you.
 
Pascal
 
 
0 Kudos
Reply

674 Views
trytohelp
NXP Employee
NXP Employee
Hi,
 
Don't think we can investigate the problem.
Is it possible to have the project reproducing the issue ?
 
Can I suggest you to log this problem in the CRM system ?
An engineer will investigate this problem.
 

For Technical Support Issues please use Freescale on line support web page.
- Go to following URL: http://www.freescale.com/TechSupport

- Click on Submit a Service Request. You will come to a login page.
- You can submit your request through the web from there.

For your information the DSC 8.x is available.

You can download the DSC 8.0 on our web site via the link:
http://www.freescale.com/webapp/sps/site/overview.jsp?nodeId=01272600612247

The Special edition license is installed by default.
If you need another version of the license please contact your local distributor.

The V8.1.1 is available too.
This is a patch for the DSC8.0 (must be installed in first)
You can download this version on our web site via the link:
http://www.freescale.com/webapp/sps/site/overview.jsp?nodeId=01272600617882140B

You can have several versions installed on the same PC.
There is only one restriction: install them on separate folder.

Regards
Pascal
0 Kudos
Reply