This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

IAP: Starting application code execution

Yet another IAP question!

I am writing an IAP (In Application Programming) tool where a dedicated update button is not available. I must code around the issues this presents.

The processor will start by executing the IAP code, and then start the application code. The code must be started whilst in supervisor processor mode. I know that I must use the SWI interrupt to enter supervisor mode.

Without ARTX, the SWI_Handler simply loops forever, and must be overwritten.

With ARTX, the SWI_Handler does a jump to the appropriate handler. It must not be overwritten.

Is there a way to tell if ARTX is in use or not, so that I can perform conditional compilation? (Or at the very least create an error).