Compiling 32 bit binaries for ARMv8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Compiling 32 bit binaries for ARMv8

77 Views
fgalax
Contributor I

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.

0 Kudos
1 Reply

34 Views
yipingwang
NXP TechSupport
NXP TechSupport

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.

https://support.nxp.com/s/case/5002p00002zokT5AAI/community-compiling-32-bit-binaries-for-armv8?lang...

Then in CodeWarrior for ARMv8 project configuring Toolchain settings as the following.

yipingwang_0-1715595181496.png

yipingwang_1-1715595232418.pngyipingwang_2-1715595251034.png

 

 

0 Kudos