You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using arm-none-eabi-* toolchain to compile this with mbed.
When I try to compile, I get the following errors:
$ mbed import https://github.com/IRNAS/gliax-ecg-firmware
[mbed] Working path "<path>/gliax-ecg-firmware/compile-test" (program)
[mbed] Importing program "gliax-ecg-firmware" from "https://github.com/IRNAS/gliax-ecg-firmware" at latest revision in the current branch
[mbed] Adding library "mbed-os" from "https://github.com/ARMmbed/mbed-os" at rev #367dbdf5145f
[mbed] ERROR: Library reference "FastPWM.lib" points to a folder "<path>/gliax-ecg-firmware/compile-test/gliax-ecg-firmware/FastPWM", which is not a valid repository.
You can remove the conflicting folder manually and use "mbed deploy" to import the missing libraries
You can also remove library reference "<path>/gliax-ecg-firmware/compile-test/gliax-ecg-firmware/FastPWM.lib" and use "mbed sync" again.
After removing FastPWM folder and FastPWM.lib, the mbed deploy and mbed sync are successful.
$ mbed deploy
[mbed] Working path "<path>/gliax-ecg-firmware/compile-test/gliax-ecg-firmware" (library)
[mbed] Program path "<path>/gliax-ecg-firmware/compile-test/gliax-ecg-firmware"
[mbed] Updating library "mbed-os" to rev #367dbdf5145f (tag: mbed-os-5.8.5)
Compile [ 0.3%]: DifferenceEcgCompressor.cpp
Compile [ 0.5%]: Packetizer.cpp
Compile [ 0.8%]: Logger.cpp
[Error] Logger.cpp@34,2: '__disable_irq' was not declared in this scope
[ERROR] ./Firmware/src/Logger.cpp: In static member function 'static void Logger::panic(const char*)':
./Firmware/src/Logger.cpp:34:2: error: '__disable_irq' was not declared in this scope
34 | __disable_irq(); //disable all IRQs
| ^~~~~~~~~~~~~
[mbed] ERROR: "/usr/bin/python3" returned error.
Code: 1
Path: "<path>/gliax-ecg-firmware/compile-test/gliax-ecg-firmware"
Command: "/usr/bin/python3 -u <path>/gliax-ecg-firmware/compile-test/gliax-ecg-firmware/mbed-os/tools/make.py -t GCC_ARM -m NUCLEO_F411RE --source . --build ./BUILD/NUCLEO_F411RE/GCC_ARM"
Tip: You could retry the last command with "-v" flag for verbose output
---
And, after commenting __disable_irq() in Logger.cpp, it builds successfully!
Are these errors related to mbed and toolchain? Any ideas?
Regards!
The text was updated successfully, but these errors were encountered:
Hi,
I'm using
arm-none-eabi-*
toolchain to compile this withmbed
.When I try to compile, I get the following errors:
After removing
FastPWM
folder andFastPWM.lib
, thembed deploy
andmbed sync
are successful.and,
Then, the compile command generates these errors:
And, after commenting
__disable_irq()
inLogger.cpp
, it builds successfully!Are these errors related to
mbed
and toolchain? Any ideas?Regards!
The text was updated successfully, but these errors were encountered: