cancel
Showing results for 
Search instead for 
Did you mean: 

About IAP's example...

vega
Associate II
Posted on September 01, 2006 at 10:51

About IAP's example...

4 REPLIES 4
vega
Associate II
Posted on August 31, 2006 at 06:29

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...

alain2399
Associate II
Posted on September 01, 2006 at 05:54

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 ?

vega
Associate II
Posted on September 01, 2006 at 07:03

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=false
emmanuel23
Associate II
Posted on September 01, 2006 at 10:51

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.