-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Closed
Copy link
Description
A simple single file application doesn't compile successfully due to this error (see "Error 1" below). When I searched within mbed-os source code, I found that this function is only used in two target devices: FRDM & K82F. And It's defined in the former, but not the latter. So I just copied it into the other device code files, only to have a different error message (see "Error 2" below).
Command:
mbed compile -t GCC_ARM -m K82F
Error 1:
[ERROR] ./mbed-os/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/serial_api.c: In function 'serial_init':
./mbed-os/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/serial_api.c:52:5: error: implicit declaration of function 'serial_clock_init'; did you mean 'serial_init'? [-Wimplicit-function-declaration]
52 | serial_clock_init();
| ^~~~~~~~~~~~~~~~~
| serial_init
[mbed] ERROR: "/usr/bin/python3" returned error.
Code: 1
Path: "/home/moehab/Mbed Programs/motor"
Command: "/usr/bin/python3 -u /home/moehab/Mbed Programs/motor/mbed-os/tools/make.py -t GCC_ARM -m K82F --source . --build ./BUILD/K82F/GCC_ARM"
Tip: You could retry the last command with "-v" flag for verbose output
Error 2:
rc/c++11/../../../../../../../../gcc-15.2.0/libstdc++-v3/src/c++11/thread.cc:266:(.text._ZNSt11this_thread11__sleep_forENSt6chrono8durationIxSt5ratioILx1ELx1EEEENS1_IxS2_ILx1ELx1000000000EEEE+0xa4): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
Metadata
Metadata
Assignees
Labels
No labels