Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years ago.
Is the new Bare Metal (no mbed 5 RTOS) development supported on the PSoC 6 Wi-Fi BT board?
Is the new Bare Metal (no mbed 5 RTOS) development using mbed I/O APIs supported on the PSoC 6 Wi-Fi BT board? That option did not seem to show up for a create new project template in the cloud compiler for this target board. I switched to the PSoC6 target and tried to compile the Bare Metal example project on the cloud compiler and got errors about a missing include file.
Question relating to:
2 Answers
5 years ago.
I imported the blinky bare metal from https://github.com/ARMmbed/mbed-os-example-blinky-baremetal into the online compiler and tried to compile. It threw the error as you mentioned:
Just to ensure this isn't something which happens only in the online compiler I ran it using mbed-cli and its the same error. I tried changing to older versions of mbed-os library but the error persists.
I did see some discussion on this issue here: (1) https://github.com/ARMmbed/mbed-os/pull/7794 (2) https://github.com/ARMmbed/mbed-os/issues/7889
From these discussions I concluded that this example won't work directly, you will need to create a .mbedignore file.
Create a .mbedignore file in the mbed project directory and add the following: mbed-os/rtos/* mbed-os/events/* mbed-os/features/* mbed-os/targets/TARGET_WICED/*
But this is only in mbed-cli. The online compiler doesn't allow you to create .mbedignore file. When you compile using mbed-cli it works.
Hope this helps!
Regards, Dheeraj
Thank you Dheeraj for the info. Then here is a workaround how to create .mbedignore
file with the online compiler.
5 years ago.
Hello Jim,
As far as I know there is no such template as "Bare Metal" to be shown up when creating a new project. Try the following:
- Create a regular
Mbed OS 5
project. - To use the Mbed OS 5 bare metal profile (Mbed OS 5 without RTOS) , add a
mbed_app.json
configuration file to theMbed OS 5
project:
med_app.json
{ "requires": ["bare-metal"] }
- Also check the list of features available when using Mbed OS 5 bare metal profile.
Edit: I'm sorry for a rash response above. The cmsis_os2.h
file was reported not found when building the Bare metal example project for the PSoC 6 Wi-Fi BT Prototyping Kit.