Hello,
We developed a bootloader that runs on normal FLASH and handles a client application (the guest code) also written in normal FLASH.
But we have a problem. Although the bootloader can run Guest Code if this code is compiled in extended format (so that the processor can use 20bit addressing and thus all the available ROM) loading guest code compiled with 'normal' flags (without address extentions) when our bootloader jumps to execute code it stops running...
My view of the problem is that the MCU is running on extended IS and then it breaks because it considers that next instructions are extended aswell, but they are not.
My question here is, can i switch MCU IS execution with assembly (or C) and how? As i understand MCU starts always in normal IS, but it can't switch back from 'extended' to normal only by the hex code output of CC.
Thank you in advance,