2018-12-27 01:31 PM
Greetings!
I'm currently working on a project where I've taken over code for a produce that uses the ST72F321BR9 micro. This is the first time I've worked with this chip. In the past, I worked strictly with ARM core processors.
I'm trying to figure out if this chip has any mechanism for generating an exception when and illegal operation occurs (such as dereferencing a null pointer). My past projects using ARM processors would immediately reset upon attempting such an illegal operation.
Does this micro have a similar capability? If so how do I enable it? For what it's worth, my project is written in C and I'm using the Cosmic C compiler V4.5c.
Regards,
Geoffrey
2018-12-27 03:57 PM
I'd expect the guys at Cosmic to be able to provide consultancy, or put you in touch with someone.
If you're lucky it will just halt and you can watchdog reset it.
2018-12-27 10:05 PM
ST7 is like an HC05 8 bit micro, there is no exception mecanism: it is expected that all possible cause of "exception" is tested by SW before it occurs. The watchdog if enabled will trigger a reset and when restarting the code, there maybe register to tell you its cause.
2018-12-28 05:08 AM
Thanks for the information!