-
Notifications
You must be signed in to change notification settings - Fork 25
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
mbed-ble-thermometer example fails to link with redBearLabBLENano board #18
Comments
Fixed in the latest mbed OS. |
@ivankravets how do I use the the latest mbed OS? |
I use:
|
Which example do you use? I tested with |
if I remove PIO_FRAMEWORK_MBED_RTOS_PRESENT, I can build the example! but then it doesn't work at all. Let me investigate if code executes at least... |
It looks code isn't even running... :( [env:ble_nano]
platform = https://github.com/platformio/platform-nordicnrf51.git
framework = mbed
board = redBearLabBLENano
;build_flags = -DPIO_FRAMEWORK_MBED_RTOS_PRESENT
upload_port = /media/${env.USER}/MBED/ main.cpp: #include "mbed.h"
Serial pc(USBTX, USBRX);
DigitalOut led1(LED1, 1);
int main()
{
while(1) {
led1 = !led1;
wait_ms(500);
pc.printf("toggle\n");
}
return 0;
} Run by: pio run -e ble_nano --target upload && pio device monitor no blinking, no prints in the console... |
Also, when I specify board = nrf51_dk
build_flags = -DPIO_FRAMEWORK_MBED_RTOS_PRESENT then it builds OK, but i can't test it on BLE Nano (different upload method) |
seeedTinyBLE - same issue. |
Hi, any update on this bug? I am having similar issues on the seeedTinyBLE where a simple blinky/serial program appears to be compiling & uploading with no problems, yet no code runs. Some more info: An mbed online compiler hex output was 355KB and the platformio output from identical code was 288KB. I tried copying the mbed version into the .pioenvs/seedTinyBLE folder to see if platformio would upload that file, and it worked perfectly. Blinking and serial data galore. So, it seems that something isn't quite right in the build stage rather than the upload stage. |
any updates on this?? |
@ivankravets still having issues with this. What nrf51-based device are you testing with? |
I have similar problem. This code compiled in April without problems: Now I first had to add
after that it throws:
I luckily made a copy of the compiled version from April (.pioenvs) so I can provide it for investigation |
This board does not support RTOS. See https://os.mbed.com/platforms/RedBearLab-nRF51822/ (right column). Only SDK/MBED 2 |
@ivankravets I think it is a bug. See this comment: #18 (comment) |
If someone is interrested, I was able to build my code with latest versions.
because my board doesn't support mbed-os (mbed 5) and copied BLE library which was required for my code by copying it from mbed |
@danielkucera what is your final |
@ivankravets you can see it here: |
@ivankravets
|
It looks like |
The same example works with nrf51_dk.
The text was updated successfully, but these errors were encountered: