9 years, 7 months ago.

Offline compile of RTOS application is failing silently – Ubuntu + GCC .

Folks I am not sure any one is tested this but I am having the following issue.

Platform : Nucleo L152RE Test Code :

#include "mbed.h"
#include "rtos.h"
 
DigitalOut led1(LED1);
DigitalOut led2(LED2);
 
void led2_thread(void const *args) {
    while (true) {
        led2 = !led2;
        Thread::wait(1000);
    }
}
 
int main() {
    Thread thread(led2_thread);
    
    while (true) {
        led1 = !led1;
        Thread::wait(500);
    }
}

Test 1: Compiled on online and working as designed Test 2: Compiled on offline on Ubuntu without any errors however LED is not blinking as expected. Please refer Offline config details; OS: Ubuntu 14.04.2 LTS GCC Info:

levent@levent-Inspiron-3847:~/Projects/CAT_1/Nucleo_blink_led_test$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20141119 (release) [ARM/embedded-4_9-branch revision 218278]
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Test 3: Standard Blinking Led project Compiled online and offline and worked as expected.

Be the first to answer this question.