2006-09-01 01:51 AM
2006-08-30 09:29 PM
I use ST7VD to test the IAP sample code from this site on ST72321BJ9 by ST7 MDT20 DVP3.
When I enter to debugging mode and then press run,the error message ''stopped on undefined memory access at 0x29'' at the code ''FCSR = key2''. But if I set breakpoint at the code ''FCSR = key1'' and press ''F10'' step by step,the error message won't pop. In ST72321B datasheet about FLASH,it says FCSR can be read/write. Is anyone can tell why the sample code can't run? Thank you for helping...2006-08-31 08:54 PM
Hi, the DVP3 and EMU3 does not emulate access to non volatile memory. In fact they are emulated using RAM. You can not use the EMU3 or DVP3 to debug IAP program. Can you attached your sample code in order to examine it ?
2006-08-31 10:03 PM
That is my code.Please change the file name main.jpg to main.c and you can see the contents of my code.
Because I am a beginner of the programmer,I want to know the work of the IAP. Is that no way to debugging IAP code? Thank you for helping... ________________ Attachments : Main.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0Hs&d=%2Fa%2F0X0000000bWe%2FNph8EaAhH55AOkWePn3BUCK.J3Jxp6AENGsNOzERL6U&asPdf=false2006-09-01 01:51 AM
Hi Vega,
The emulator doesn't emulate the flash programming algorythms. That's why default configuration of memory mapping declares the register FCSR as a ''Non Existent Register''. If you want to execute your code anyway, open the MCU configration window from the debug instrument menu, then double click on the area 0x29-0x29 in the Type column and select Periph (RW) instead of ''non existent register''. Emmanuel.