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.
9 years, 1 month ago.
stm32F091 target not recognised
y updated mbed.h but without results
include "mbed.h"
- include "USBSerial.h"
Serial pc(USBTX, USBRX); tx, rx
int main() { pc.printf("Hello World!\n\r"); while(1) { pc.putc(pc.getc() + 1); echo input back to terminal } }
Question relating to:
1 Answer
9 years ago.
Gilbert,
I assume you are talking about the http://developer.mbed.org/platforms/ST-Nucleo-F091RC/ platform.
Are you trying to just echo things back to the terminal? If so dont use the USBSerial library, instead just do a scanf and printf. You can see examples cross linked in this post: http://developer.mbed.org/forum/helloworld/topic/2704/
I confirmed they both compile and work for the above platform.
-Austin