Oct 8, 2008 #1 X 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?
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?
Oct 19, 2008 #2 A Assweasel Newbie level 3 Joined Oct 19, 2008 Messages 3 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,308 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.
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.
Oct 20, 2008 #3 X 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 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. Click to expand... 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!!!!!!!
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. Click to expand... 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!!!!!!!
Dec 16, 2008 #4 Gomez Full Member level 2 Joined Feb 12, 2002 Messages 125 Helped 10 Reputation 20 Reaction score 3 Trophy points 1,298 Activity points 1,006 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
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
Dec 16, 2008 #5 X 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 thanx man.. i will tryied them