Open easonxiang opened 5 years ago
Hi,
When I porting zephyr to arm-v8m chip, it seems the Zephyr SDK(0.9.5) does not support this architecture at present.
arm-zephyr-eabi-gcc: error: unrecognized argument in option ‘-march=armv8-m.main’ arm-zephyr-eabi-gcc: note: valid arguments to ‘-march=’ are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6kz armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc armv8.1-a armv8.1-a+crc iwmmxt iwmmxt2 native make[3]: *** [zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj] Error 1
We can use 3rd party tool chain as a workaround, which is works for me. https://docs.zephyrproject.org/latest/getting_started/toolchain_3rd_party_x_compilers.html#gnu-arm-embedded
Hi,
When I porting zephyr to arm-v8m chip, it seems the Zephyr SDK(0.9.5) does not support this architecture at present.
arm-zephyr-eabi-gcc: error: unrecognized argument in option ‘-march=armv8-m.main’ arm-zephyr-eabi-gcc: note: valid arguments to ‘-march=’ are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6kz armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc armv8.1-a armv8.1-a+crc iwmmxt iwmmxt2 native make[3]: *** [zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj] Error 1