Burst programming from a FLASH Block to another one. - HCS08GT60.

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

Burst programming from a FLASH Block to another one. - HCS08GT60.

1,992 Views
Johan_SOMFY
Contributor I
Hi all,
 
 In order to defrag a FLASH part used to store non volatile data, I try to programm another FLASH zone in burst mode.
 
 I do this on a HCS08GT60.
 
The data I need to write are in another FLASH location. So during the Flash programming algorithm, I do a read access in FLASH (more precisely just before the "WRITE TO FLASH TO BUFFER ADDRESS AND DATA" ) to get my data.
 
 The result is that the first data is well written when I look at the FLASH with the debugger but all the following data are not correctly written (they are all to 0x04 when I look to the FLASH with the debugger ??????).
 
No FACCER is detected.
 
I suppose the read access in FLASH during the burst programming sequence is forbidden and can explain this comportment.
 
Anybody can help me ?
 
Added p/n to subject.


Message Edited by NLFSJ on 2007-12-11 01:18 PM
Labels (1)
0 Kudos
6 Replies

604 Views
Bruce_andrew
Contributor I
How big is the block of data you need to copy?

I think it would be faster to copy the source data from flash to RAM. Then do a burst mode write to flash, from the RAM cache to flash. You only need 32 bytes for each burst mode write, if RAM is tight.
0 Kudos

604 Views
Johan_SOMFY
Contributor I
Hello Bruce,
 
 The amount of data we have to tranfer is not so big. We effectively copy the data from flash to RAM in order to do a burst programming from RAM to Flash and everything is working well !
 
 Thanks for your help,
 
Regards
 
Johan
0 Kudos

604 Views
Bruce_andrew
Contributor I
Are you executing the write command from flash or RAM? You can't read from flash, for data or code execution, while a write/erase operation is happening, which is why you need to have a function that runs in RAM. Is that your problem?
0 Kudos

604 Views
Johan_SOMFY
Contributor I
Hi Bruce,
 
 thanks for your help.
 
In fact I execute the burst write command from RAM, but during this execution in RAM, I do a read access in FLASH in order to get the data I want to write to another FLASH place.
 
regards
 
Johan
 
 
0 Kudos

604 Views
bigmac
Specialist III
Hello Johan,
 
For burst programming, the data would also need to reside in RAM.  Alternatively, you would need to program one byte at a time.
 
Regards,
Mac
 
0 Kudos

604 Views
Johan_SOMFY
Contributor I
Hi BigMac,
 
 thank you for your confirmation about burst mode. I was suspicious about the data to be in RAM. I think we will write one byte at a time as this is working well even if it is slower.
 
Regards,
 
Johan
0 Kudos