Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling with mbed #3

Open
iamazeem opened this issue Sep 18, 2020 · 0 comments
Open

Compiling with mbed #3

iamazeem opened this issue Sep 18, 2020 · 0 comments

Comments

@iamazeem
Copy link

Hi,

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)

and,

$ mbed sync
[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] Synchronizing dependency references...
[mbed] Updating reference "gliax-ecg-firmware" -> "https://github.com/IRNAS/gliax-ecg-firmware/#af702bf1112d9c1d44337dc9675d383ece723c25"

Then, the compile command generates these errors:

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant