10 years, 2 months ago.

why mbed rtos not supply Atmel?

I use SAMR21 board, I try run a simply mbed rtos example

  1. include "mbed.h"
  2. include "rtos.h"

DigitalOut led1(LED1);

void led1_thread(void const *args) { while (true) { led1 = !led1; Thread::wait(1000); } }

int main() { Thread thread(led1_thread);

while (true) { Thread::wait(500); } } }

but mbed display:Error: #error directive: "no target defined" in "mbed-dev/mbed-rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c", Line: 64, Col: 7

I goto the error :I can't find any Atmle's MCU

/media/uploads/ddllxxrr/1602262.jpg

Be the first to answer this question.