mbed_target
mbed_target copied to clipboard
problem in building blinky example
Hi, before the issue I wanted to thank for this useful code. I got error when building blinky example for STM32F407VG Discovery board with Matlab 2018b. can you please help me with that? here is the error message:
"Compiling: ../blinky.c"
In file included from ../../mbed-os/rtos/rtos.h:29:0,
from ../../mbed-os/mbed.h:37,
from ../blinky.h:24,
from ../blinky.c:16:
../../mbed-os/rtos/Kernel.h:27:1: error: unknown type name 'namespace'
namespace rtos {
^~~~~~~~~
../../mbed-os/rtos/Kernel.h:27:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
namespace rtos {
^
In file included from ../../mbed-os/rtos/Thread.h:29:0,
from ../../mbed-os/rtos/rtos.h:30,
from ../../mbed-os/mbed.h:37,
from ../blinky.h:24,
from ../blinky.c:16:
../../mbed-os/platform/Callback.h:21:15: fatal error: new: No such file or directory
#include <new>
^
compilation terminated.
Makefile:365: recipe for target 'blinky.o' failed
Hi @mvalian
I'll check this after my summer holiday. Your Discovery board was our standard board, several years ago. But for a longer time, it's not used any longer. I can't say something about the actual Mbed support of it. It was never officially supported. And you error message locks like a Mbed problem.
Regards, Olaf
Thank you so much. Can you give us a guide on how you developed this support package? I wanted to develop a support package for my custom lpc1768 board. I deeply read your code but it was hard to understand!