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.
6 years, 11 months ago.
file bin does not run on the target Nucleo L432KC
Hello.
I'm compiling an easy program like this:
- include "mbed.h"
DigitalOut myled(LED1); Serial pc(USBTX, USBRX);
main() { pc.baud(9600); while(1) { pc.printf("Test /n/r"); myled = 1; LED is ON wait(0.2); 200 ms myled = 0; LED is OFF wait(.8); 800 ms } }
the compiler works without any issues but file bin does not run on the target. I can see it on the target like it was a filecopied on a memory flash.
Old files bin.compileds months ago instead workperfectly.
Does someone can assist?
Mirko
Start with an absolute minimum program and try that. So take out everything related to Serial object and just try a simple blinky led. If that works, then try a regular printf to the standard mbed serial port out. It should be all setup by mbed-os just call printf().
posted by Graham S. 22 Dec 2017