Skip to main content
hai-yang
Associate
Mar 24, 2003 8:40 AM UTC
Question

the problem about writing xflash in 72f264

Posted on March 24, 2003 at 09:40

the problem about writing xflash in 72f264

This topic has been closed for replies.

3 replies

hai-yang
hai-yangAuthor
Associate
Mar 18, 2003 10:42 PM UTC
Posted on March 18, 2003 at 23:42

hello, I meet a problem that I use indart 72f264 demo board to write

some context in 264.

firstly , I want to unlock the rass with writing FCSR #$56,#$ae, but it seems that I didn't success because I can not set the fcsr,#1.

The indart soft give me a communication error message when I step by step to implement the instruction ''BSET FCSR,#1'' after implement

.main

LD a,#$56

LD FCSR,A

LD A,#$AE

LD FCSR,A

how can I do ? thx!

[ This message was edited by: PIKKABALL on 19-03-2003 04:13 ]
shreya
Visitor II
Mar 24, 2003 2:59 AM UTC
Posted on March 24, 2003 at 03:59

Hello,

I hope you know that once the LAT bit in FCSR is set, you cannot execute anything from flash. Hence it is necessary to jump to RAM before setting LAT bit. This could be the cause of the communication error.
stephanie
Visitor II
Mar 24, 2003 8:40 AM UTC
Posted on March 24, 2003 at 09:40

AN1477 (Emulated Data EEPROM with XFlash memory) available in this site (download part) gives you all the code to do that! Moreover, the example is made with a 264!