Aide pour 1ère mise en route NUCLEO STM32F411RET6 Changement du code initial (en 115200 baud) par une vitesse de port série par défaut de 9600 baud
Pour la communication sur port série :
Hyperterminal configuration 9600 bauds, 8-bit data, no parity (Valeur par défaut dans Windows)
Utiliser ce programme gratuit par exemple Tera Term : http://en.osdn.jp/projects/ttssh2/releases/
P.S :
1ère mise en fonctionnement de la carte NUCLEO STM32F411RET6
Instruction pour la mise en fonctionnement : https://developer.mbed.org/users/Fo170/notebook/the-stm32-nucleo-64-board/
main.cpp
- Committer:
- Fo170
- Date:
- 2015-05-09
- Revision:
- 0:77019ca51134
File content as of revision 0:77019ca51134:
#include "mbed.h" // Programme testé sur la carte NUCLEO STM32F411RET6 //------------------------------------ // Hyperterminal configuration // 9600 bauds, 8-bit data, no parity //------------------------------------ Serial pc(SERIAL_TX, SERIAL_RX); //DigitalOut myled(LED1); DigitalOut stateLed(LED1); int i = 1; void setup() { // Serial port configuration : 115200 baud, 8-bit data, no parity, stop bit // pc.baud(115200); // Serial port configuration (valeurs par defaut) : 9600 baud, 8-bit data, no parity, stop bit pc.baud(9600); pc.format(8, SerialBase::None, 1); pc.printf("Run little program !!\n"); } void loop() { pc.printf("This program runs since %d seconds.\n", i++); stateLed = !stateLed; wait(1); } int main() { setup(); pc.printf("Hello World !\n"); while(1) { loop(); } }