Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How can i write data flash (renesas)

Status
Not open for further replies.

xxtigerxx

Advanced Member level 1
Joined
Jun 5, 2001
Messages
441
Helped
38
Reputation
76
Reaction score
32
Trophy points
1,308
Location
Greece
Activity points
2,890
renesas ew0

I am using IAR for M32/C for M32C85.

how can i write to data flash?

i wrote to xcl the code
//Data Flash
-Z(FAR)DATA_FLASH=F000-FFFF

And to

#define eeprom DATA_FLASH
#pragma dataseg=eeprom
__no_init UC eeprom_address ;
#pragma dataseg=default

but only i can read the data flash not read.

Can you help me?

:)
 

What you are asking to do can't be done like that. Pretty sure there is no way to use compiler directives for this.

You will need to write your own application for that. A bit over my head for sure but perhaps someone has already done this.
 

Assweasel said:
What you are asking to do can't be done like that. Pretty sure there is no way to use compiler directives for this.

You will need to write your own application for that. A bit over my head for sure but perhaps someone has already done this.

For EEPROM variables it can be done.

i think that compiler should have alos for FLASH.

The renesas compiler has this routines, but not iar compiler.

I send a message to iar and they send me a application for renesas compiler!!!!!!!
:D:D:D:D
 

Special controller data flash routine is of course not part of an ansi compiler.

For M32 exist some application notes for data flash (google "virtual eeprom").

No. Title
REU05B0062-0200 Virtual EEPROM
REB05B0015-0100Z Virtual EEPROM management (IAR Sample)
REU05B0058-0200 Simple Flash API for CPU-Rewrite Operations
REJ05B0600-0100 Flash Memory Version CPU Rewrite Mode (EW0 Mode) Sample


Gomez
 

    xxtigerxx

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top