We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I cant compile the automatically to my project added startupfile startup_stm32u575xx.s.
*** Using Compiler 'V6.7', folder: 'C:\imc\crossgcc\Keil_v5\ARM\ARMCLANG\Bin'RTE/Device/STM32U575VGTxQ/startup_stm32u575xx.s(25): error: invalid instruction PRESERVE8 ^RTE/Device/STM32U575VGTxQ/startup_stm32u575xx.s(26): error: invalid instruction THUMB ^RTE/Device/STM32U575VGTxQ/startup_stm32u575xx.s(29): error: unexpected token in argument list; Vector Table Mapped to Address 0 at Reset ^RTE/Device/STM32U575VGTxQ/startup_stm32u575xx.s(30): error: invalid instruction AREA RESET, DATA, READONLY ^RTE/Device/STM32U575VGTxQ/startup_stm32u575xx.s(31): error: unexpected token in operand IMPORT |Image$$ARM_LIB_STACK$$ZI$$Limit| ^RTE/Device/STM32U575VGTxQ/startup_stm32u575xx.s(32): error: unexpected token in operand IMPORT |Image$$ARM_LIB_STACK$$ZI$$Base| ^RTE/Device/STM32U575VGTxQ/startup_stm32u575xx.s(33): error: invalid instruction EXPORT __Vectors ^RTE/Device/STM32U575VGTxQ/startup_stm32u575xx.s(34): error: invalid instruction EXPORT __Vectors_End
and so on
Can anyone help?
Please note there are two assembly code syntax: ARM syntax and GNU syntax:
For Arm syntax assembly code, you need using armasm assembler and for GNU syntax, you need using armclang integrated assembler:
https://developer.arm.com/documentation/100069/0607/Overview-of-the-Assembler/About-the-ARM-Compiler-toolchain-assemblers
You should check if you have selected the correct assembler in Options for Target - Asm in your MDK µVision IDE
Is there a reason you are using such an old compiler? The latest is 6.21.
Later versions support -masm=auto to help resolve this issue:
https://developer.arm.com/documentation/101754/0621/armclang-Reference/armclang-Command-line-Options/-masm
I don't see it mentioned in the 6.7 docs, so I don't think it is supported with that version:
https://developer.arm.com/documentation/100067/0607/