8/3/2023 0 Comments Nucleo f401re usbdevice![]() ![]() Here is a screenshot of the USB_DEVICE configuration. Here is a screenshot of USB_OTG_FS configuration. Here is a screenshot of my CubeMX Pin Layout. Your code and GPIO setup works on CubeMX IDE with my Nucleo-F401RE, you just have to enable Reset and Run in Keil if thats the IDE you are using. ![]() Please let me know if you need more information for understanding the issue. ![]() My question is: How can I transmit data from the nucleo board to the host machine using the CDC (VPC) configuration?Īny help shall be greatly appreciated. I have tried attaching the RX and TX pins to pins PA11 and PA12 as illustrated in the CubeMX screenshot, but still I do not receive any data. I also have an RS232 UART adapter for receiving and transmitting serial data. Since there is an embedded ST-Link on this board, I don't need to attach anything extra for receiving and transmitting data via UART, meaning I am able to receive data through the on-board USB port. You can connect the USB power to VIN to power the mbed board from the Host PC when connected. At the same time, USART2 is configured on PA2 and PA3 as USART_TX and USART_RX respectively. NUCLEO-F401RE STM32F401RE, mbed-Enabled Development Nucleo-64 STM32F4 ARM® Cortex®-M4 MCU 32-Bit Embedded Evaluation Board from STMicroelectronics. When I configure USB_OTG_FS, I can see that it uses pins PA11 and PA12 as USB_OTG_FS_DM and USB_OTG_FS_DP respectively. I use the following function to transmit the data: CDC_Transmit_FS((uint8_t*)test_buffer, s_test_buffer) However, when I try to do the same with USB_OTG_FS configuration, I receive no data on my host machine. I have successfully achieved this via USART2 with the following function: HAL_UART_Transmit(&huart2, (uint8_t*)test_buffer, s_test_buffer, HAL_MAX_DELAY) NUCLEO-F401RE - STM32 Nucleo-64 development board with STM32F401RE MCU, supports Arduino and ST morpho connectivity, NUCLEO-F401RE, STMicroelectronics. I only need to transmit data from the board to the host computer (only single direction). I am trying to establish communication between my host machine (running Ubuntu 22.04) and the STM32 Nucleo F401RE board. NUCLEO-F401RE Affordable and flexible platform to ease prototyping using a STM32F401RET6 microcontroller. STM32F401RE, sviluppo abilitato per mbed Nucleo-64 STM32F4 ARM® Cortex®-M4 MCU 32 bit Schede di valutazione - Embedded. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |