Skip to main content
tong
Associate III
October 8, 2003
Question

IAP _ Trying to write a byte into the main flash while exec form boot flash

  • October 8, 2003
  • 3 replies
  • 656 views
Posted on October 08, 2003 at 23:44

IAP _ Trying to write a byte into the main flash while exec form boot flash

This topic has been closed for replies.

3 replies

tong
tongAuthor
Associate III
May 17, 2011
Posted on May 17, 2011 at 11:55

Thanks

I got it now

VM 0x96

danielh1
Associate III
May 17, 2011
Posted on May 17, 2011 at 11:55

1 - Data read/write signals must be able to access the flash you intend to program, that means that your VM must be set to 0X96.

2 - Since the main flash is paged, set your page register to the flash that you want to access.

3 - All interrupts must be disabled to ensure proper timing of the flash read/write sequences.

Good luck, Asterix

tong
tongAuthor
Associate III
May 17, 2011
Posted on May 17, 2011 at 11:55

Hi

I need help. Just got the DK3200 kit. I got both com running using int.

Timer...

I am trying to write a byte to the main flash the mapping is:

8000 FFFF _ exactly the same as the one on AN1560

VM = 0x86

FLASH_COMMON_XAAA (volatile unsigned char xdata *) 0x9AAA

FLASH_COMMON_X555 (volatile unsigned char xdata *) 0x9555

FLASH_BOOT_XAAA (volatile unsigned char xdata *) 0x0AAA

FLASH_BOOT_X555 (volatile unsigned char xdata *) 0x0555

I am running the code from the second flash ( program only).

the function to write byte is from from the second flash.

the function to write byte is from flashcode1.c form the code of the usp demo code.

I can't write into the flash. the function return but the byte remain unchanged 0xFF.

To check this I read back by both my code and the upload from the PDSsoftexpress.

Please help !!! _