I am currently developing a bootloader code that modifies the execution state of an ARMv8-A processor from EL3 aarch64 to EL1 aarch32. In order to test its functionality, I must load and debug a small 32-bit segment within the microcontroller unit (MCU). It is evident that the step debugger will lose control of the program counter when the switch happens. However, disconnecting from aarch64 and attaching it with the aarch32 binaries would allow the debugging process to continue.
Currently, the IDE does not permit the creation of 32-bit projects, as only the aarch64 toolchain is available. I would like to know whether if it is possible and what is required for compiling and debugging a 32-bit file from CodeWarrior IDE.
At present, I am utilising CodeWarrior Development Studio for QorIQ LS series - ARM V8 ISA, Version: 11.5.12, with CodeWarrior TAP for debugging.
You could use 32bit toolchain provided in CodeWarrior for ARMv7 to build your program.
You could download and install CodeWarrior for ARMv7 from the following link.
Then in CodeWarrior for ARMv8 project configuring Toolchain settings as the following.