ST92F120 code running with emulator not with device ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2002-11-21 12:17 AM
ST92F120 code running with emulator not with device ?
- Labels:
-
Legacy Products
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 2:32 AM
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 2:32 AM
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 2:32 AM
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 2:32 AM
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 2:32 AM
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''.
