2024-06-10 01:23 PM - last edited on 2024-06-10 01:31 PM by Tesla DeLorean
I'm working with a nucleo-L432kc board. I use a mac, VSC, Platformio and I use screen as a terminal. I used MXcube to setup a UART to use the VCP. MX cube generates the code. I have followed the instructions from several online sources to get it to work, but no luck seeing any output with "screen". I must be missing something fundamental. Does anyone have working sample code for this board I can look at to see what I'm doing wrong.
Solved! Go to Solution.
2024-06-11 05:30 PM
The only thing i can see wrong is that you have word length set for 7 bits instead of 8.
I'm using the same Nucleo-L432KC dev board, added the same code you have in main.c. This is the output i get.
Are you sure you have selected the correct COM port?
2024-06-10 01:30 PM - edited 2024-06-10 01:34 PM
Fundermentals:
Clocks
Clocks for GPIO
Clocks for UART
Configuration of pins and associativity with UART
Configuration of UART at the right baud rate and data format
Use the UART plumbed to the ST-LINK/V2-1 VCP
Check the connectivity, watch for options, links, solder bridges, contention with Arduino shield on NUCLEO-64 designs.
2024-06-10 01:52 PM
Show your code. Upload your IOC file.
2024-06-10 09:52 PM
2024-06-11 12:42 PM - edited 2024-06-11 04:56 PM
I posted the main.c and .ioc file as attachements above
I know serial com through the USB is possible. I can upload an Arduino Serial com sketch and screen on the Mac works fine.
2024-06-11 05:30 PM
The only thing i can see wrong is that you have word length set for 7 bits instead of 8.
I'm using the same Nucleo-L432KC dev board, added the same code you have in main.c. This is the output i get.
Are you sure you have selected the correct COM port?
2024-06-11 09:37 PM
I got the 7 bit thing from one of the many sites I looked at. I thought it odd, but I tried it. I'll double check the com port as you suggest.
Thanks for taking the time to verify my code. It helps a lot to know it can work.
2024-06-13 06:31 AM
So, changing the toolchain/IDE environment in STMCubeMX from EWARM ( the default ) to STMCubeIDE fixed the problem. I've been using "stm32pio" tools to convert CubeMX output to a Platfomio env. This user manual is out of date.