5 years, 8 months ago.

Where is the defination of serial and how to connect ttl to the STM32F429ZI borad

My Board is STM32F429ZI . I want read the data from serial and send data to the serial . But i could not find out how to connect the different uart with ttl . And I could not find the defination of serial.

Serial pc(SERIAL_TX, SERIAL_RX); Here is the code . I could not find the defination of SERIAL_TX and SERIAL_RX . Anyone can help me ? Thanks

1 Answer

5 years, 8 months ago.

Hi Chunbin, If you look thorugh https://github.com/ARMmbed/mbed-os/blob/master/targets/targets.json NUCLEO_F429ZI has "extra_labels_add" field, that has STM32F429ZI, which is your particular target.

The way to follow this is os/targets/TARGET_STM/TARGET_STM32F4/ and then under TARGET_STM32F429xI/, you have TARGET_DISCO_F429ZI and TARGET_NUCLEO_F429ZI. Assuming you have TARGET_NUCLEO_F429ZI, look in PinNames.h. If you want to configure a different pin than you may have to specify a json file as described here: https://os.mbed.com/docs/v5.9/reference/configuration.html. Though, I don't think that is what you are trying to do here.

Hope this helps. Please let us know if you have any further questions.

Thanks,

Naveen, team mbed.