Skip to content

cmsis5: Export to uvision5 doesn't compile for ST #3807

@bulislaw

Description

@bulislaw

Description


Bug

Target
Nucleo F401RE

Toolchain:
ARM

Toolchain version:
uVision 5.2
ARMC 5.06

Expected behavior

It compiles for both ARMC and uVision

Actual behavior

It works fine for ARMC:

 mbed compile -t arm -m nucleo_f401re -c
[...]
Link: mbed-os
Elf2Bin: mbed-os
+-----------+-------+-------+------+
| Module    | .text | .data | .bss |
+-----------+-------+-------+------+
| Misc      | 36516 |  1725 | 5808 |
| Subtotals | 36516 |  1725 | 5808 |
+-----------+-------+-------+------+
Allocated Heap: unknown
Allocated Stack: unknown
Total Static RAM memory (data + bss): 7533 bytes
Total RAM memory (data + bss + heap + stack): 7533 bytes
Total Flash memory (text + data + misc): 38241 bytes

Image: .\BUILD\nucleo_f401re\arm\mbed-os.bin

but for uVision:

 mbed export -m nucleo_f401re -i uvision5

I'm getting errors:

assembling irq_cm4f.s...
rtos\rtx2\TARGET_CORTEX_M\TARGET_RTOS_M4_M7\TOOLCHAIN_ARM\irq_cm4f.s(81): error: A1854E: Unknown opcode 'VSTMDBEQ', maybe wrong target CPU?
rtos\rtx2\TARGET_CORTEX_M\TARGET_RTOS_M4_M7\TOOLCHAIN_ARM\irq_cm4f.s(97): error: A1854E: Unknown opcode 'VLDMIAEQ', maybe wrong target CPU?

F401 has FPU so that should work, not to mention that it works fine for CLI ARMC build. It's a blocker for cmsis update, as ST guys can't really debug their boards with the feature branch.

@theotherjimmy

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions