

Using UART1 for both Nucleo, I managed to send data and receive data correctly. Nucleo 1 USART1_Rx pinned on Nucleo 2 USART1_Tx Nucleo 1 USART1_Tx pinned on Nucleo 2 USART1_Rx Still, can't explain why I didn't see any signal on the pin. So it is normal I couldn't see any data on my UART2_Rx data buffer. I still used UART2 on my Nucleo 2, which is connected to USB. I also can't see any signal with my scope on my Nucleo 1 UART1_Tx pin. I still didn't manage to see the Nucleo 2 UART2 IT triggered. Nucleo 1 sends data with UART1 to Nucleo 2 Nucleo 1 USART1_Rx pinned on Nucleo 2 USART2_Tx And as with women timing is everything with CCD’s. CCD’s are just like women, demanding but wonderful creatures.

For an up-to-date version and a more well structured presentation go to tcd1304.wordpress. This post from 2015 introduced the very first firmware for driving the tcd1304dg. Nucleo 1 USART1_Tx pinned on Nucleo 2 USART2_Rx Driving the TCD1304 with a Nucleo-F401RE. But I still wanted to send data with my Nucleo 1 and receive it with my Nucleo 2. That's why I managed to see "Hello World" on my console. Pinning my scope on Nucleo 1 USART2_Tx showed permanent 0V line.Įxplanation : Solder bridge were configured to transmit UART2 data with USB. Nucleo 1 sends data with UART2 to Nucleo 2 Nucleo 1 USART2_Rx pinned on Nucleo 2 USART2_Tx Nucleo 1 USART2_Tx pinned on Nucleo 2 USART2_Rx My goal was to transmit data from Nucleo 1 to Nucleo 2 with UART, here is what i tried : This function is called in my main() function before the main loop.įrom what I see on my board, SB62 & SB63 do not have the connector on top of them, and SB13 & SB14 both have the connector on top of them. GPIO_InitStruct.Alternate = GPIO_AF7_USART2 Development Boards & Kits - ARM STM32 Nucleo-64 development board STM32F446RE MCU, supports Arduino & ST morpho. But it will go over the USB connected to the F401, not the USB connected to the stlink processor (which is the mini-B connector on the board). GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH Multiple Function Sensor Development Tools X-NUCLEO-IKS01A3, STM32 Nucleo Expansion Boards. The USBVCP can be used on the 401 if you connect your own USB connector to the appropriate pins. GPIO_InitStruct.Pin = USART_TX_Pin|USART_RX_Pin If (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) PeriphClkInit.Usart2ClockSelection = RCC_USART2CLKSOURCE_PCLK1 Also without results.Ĭoncerning the clock/pin init : PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USART2 I also tried to closed-loop my Tx/Rx pins to Receive data from the Tx pin. To solve the problem, I tried to use other UART/USART available (from 1 to 3), without results. PS : I also tested with STM32-Nucleo-F401RE and the result is the same so I think the problem definitely comes from me.

I can send more details about my code/pin configs via cubeMX if needed. So i receive my USART signal on my computer via USB, but I can't send any data to another Nucleo (for example).Īnyone has an idea of what could be the problem?Īny function to call to instantiate something? Pinning a scope on the USART_Tx pin corresponding to USART2, i cannot see any signal transmitted (the line is always at 0V). Using the command screen on my Linux Terminal to monitor the UART signal, I receive "Hello World !!!" multiple times, so i was thinking UART communication was working. (Note : PA5 is my LED, USART2_Tx is on PA2) Pricing and Availability on millions of electronic components from Digi-Key Electronics. HAL_UART_Transmit(&huart2,Test,sizeof(Test),1000) // Sending in normal mode NUCLEO-F401RE STM32F401RE, mbed-Enabled Development Nucleo-64 STM32F4 ARM Cortex-M4 MCU 32-Bit Embedded Evaluation Board from STMicroelectronics. STM32F401RE Microcontroller PA5, PA6, and PA7 are connected to LD1, LD2, and LD3 as shown in the next table. Nucleo F401RE Board This board contains the STM32F401RE, a 32-bit microcontroller with an ARM Cortex-M4 core. Uint8_t Test = "Hello World !!!\r\n" //Data to send The Nucleo-F401RE board is used for all the examples.
#GPIO LED3 NUCLEO F401RE CODE#
I generated the code with CubeMX and in my main() function, i call HAL_UART_Transmit() function to send data as the following : while (1) I use STM32-Nucleo-L476RG board with USART2 enabled.

The easiest way to program the board is to use OpenOCD.I have some issues trying to transmit data with my USART pins. The ST Nucleo-F401RE board includes an on-board ST-LINK V2 programmer. USART2 via STLink/USB or D0(RX)/D1(TX) and USART6 on PA12(RX)/PA11(TX)
