Other Parts Discussed in Thread: HALCOGEN
I have the same issue and the question is if you can post how to jump back to the Label _Continue_after_STC from the _c_int00() function
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I have the same issue and the question is if you can post how to jump back to the Label _Continue_after_STC from the _c_int00() function
Hi Diana,
As you can see from the code generated by HALCoGen, the call to afterSTC is entirely managed by the software. A call to execute a selftest on the CPU is different from a "normal" function call. The code execution does not return to the statement after this call to STC automatically. If this is the functionality desired, the CPU reset handler needs to manage this entirely in software - that is, identify STC as the cause of the CPU reset, reconfigure the CPU as required (interrupts, stacks, etc), and then jump to whichever location in program memory that you want as the next step after the STC.
HALCoGen generates a start-up sequence that is an example for how to do this.
Regards,
Sunil