cancel
Showing results for 
Search instead for 
Did you mean: 

ST92F120 code running with emulator not with device ?

johanpauvert1
Associate II
Posted on November 21, 2002 at 09:17

ST92F120 code running with emulator not with device ?

5 REPLIES 5
johanpauvert1
Associate II
Posted on May 17, 2011 at 11:32

I have developped my code with the ST92F120-EMU2 emulator and everything runs ok until I switched to the chip (ST92F120JV1Q6) : the device seems to be in reset mode, no code is executed !

The exact same code works with the emulator not with the device

Any idea to explain this ? Is there a bug on this device ?

Breizh

Posted on May 17, 2011 at 11:32

Another one I got from the ''Flash protection'' discussion : protection and unprotection is not supported by the emulator.

Anyhow, the execution of your protection subroutine would be bad with the emulator because it will protect the emuchip memory.

Protect against writing and read access

Jojo

johanpauvert2
Associate II
Posted on May 17, 2011 at 11:32

Is your reset vector located at the right address ?

Notice that the ST92F120 128k (ST92F120JV1) has its reset vector located at address 0x01E000 when the ST92F120 and ST92F150 emulators have their reset vector located at the address 0x000000.

This is the only difference emulator/device I am aware of. I guess the best is to right your code with 2 reset vectors so its compatible for both emulator and device.

To close the subject on reset vector, this is what I have seen so far

ST92F120 60k : 0x000000

ST92F120 128k : 0x01E000

ST92F150 60k : 0x000000

ST92F150 128k : 0x000000

ST92F120 emu : 0x000000

ST92F150 emu : 0x000000

Regards,

Skywalker
maxime2399
Associate II
Posted on May 17, 2011 at 11:32

There is another difference between the Flash devices and the emulator :

the TestFlash is only available on the device not on the emuchip (ST9

device located on the emulator probe).

Consequently, the external watchdog (which has its routine called by the

TestFlash) is only supported by the Flash devices (ST92F120, ST92F124,

ST92F150, ST92F250) and not the emulators (ST92F120 and ST92F150

emulators). So if the external watchdog is not initialized by the user,

then your program will work ok with the emulator... and failled with the

device

romain2399
Associate II
Posted on May 17, 2011 at 11:32

Concerning the Reset Vector and External Watchdog Refresh Routine that bring differences between chip and emulator, I suggest to have read the Application Note AN1474 ''ST92F150 and ST92F120 problem resolution guidelines''.