Eulenbaer

Eulenbaer

Member Since 2 months ago

Experience Points
0
follower
Lessons Completed
0
follow
Lessons Completed
3
stars
Best Reply Awards
0
repos

2 contributions in the last year

Pinned
Activity
Jan
15
1 week ago
started
started time in 6 days ago
started
started time in 6 days ago
Nov
19
2 months ago
Activity icon
issue

Eulenbaer issue comment ARMmbed/mbed-os

Eulenbaer
Eulenbaer

Export to uvision failing with missing context fault handler

Description of defect

When exporting a uVision6 project for ARMC6 toolchain on NUCLEO_F746ZG target, the build fails with the following error.

linking...
.\BUILD\mbed-os-example-blinky.axf: Warning: L3912W: Option 'legacyalign' is deprecated.
.\BUILD\mbed-os-example-blinky.axf: Error: L6218E: Undefined symbol mbed_fault_context (referred from .\build\except.o).

Target(s) affected by this defect ?

Only tried to export to NUCLEO_F746ZG target, but probably others as well.

Toolchain(s) (name and version) displaying this defect ?

uVision6 / ARMClang6

What version of Mbed-os are you using (tag or sha) ?

tag: mbed-os-6.15.0 sha: 4cfbea43cabe86bc3ed7a5287cd464be7a218938

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-cli

How is this defect reproduced ?

  1. Create a new project or take an existing one (e.g. blinky).
  2. Export the project for uVision6 by using
    mbed export -i uvision6 -m NUCLEO_F746ZG --source .
    
  3. Build the project
Eulenbaer
Eulenbaer

Another option is to modify the except.S assambly to explicitly include the mbed_config.h. The mbed_config.h is only included for C/C++ files by Keil uVision projects.

In Keil uVision this might look like this: G1eY0g96F3d20TcQ

Please be sure to add the location where mbed_config.h might be found. In my case it is 'mbed_I2CEEPROM'.

Nov
18
2 months ago
Activity icon
issue

Eulenbaer issue ARMmbed/mbed-os

Eulenbaer
Eulenbaer

Export to uvision failing with missing context fault handler

Description of defect

When exporting a uVision6 project for ARMC6 toolchain on NUCLEO_F746ZG target, the build fails with the following error.

linking...
.\BUILD\mbed-os-example-blinky.axf: Warning: L3912W: Option 'legacyalign' is deprecated.
.\BUILD\mbed-os-example-blinky.axf: Error: L6218E: Undefined symbol mbed_fault_context (referred from .\build\except.o).

This error was not encountered when exporting for uVision5, ARMC5 toolchain.

Target(s) affected by this defect ?

Only tried to export to NUCLEO_F746ZG target, but probably others as well.

Toolchain(s) (name and version) displaying this defect ?

uVision6 / ARMClang6

What version of Mbed-os are you using (tag or sha) ?

tag: mbed-os-6.15.0 sha: 4cfbea43cabe86bc3ed7a5287cd464be7a218938

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-cli

How is this defect reproduced ?

  1. Create a new project or take an existing one (e.g. blinky).
  2. Export the project for uVision6 by using
    mbed export -i uvision6 -m NUCLEO_F746ZG --source .
    
  3. Build the project