micro-ROS / freertos_apps

Sample applications for FreeRTOS + micro-ROS
Apache License 2.0
81 stars 50 forks source link

Perhaps a Bug: `MX_DMA_Init();` must happens before `MX_USART3_UART_Init();` #94

Closed ZhenshengLee closed 2 years ago

ZhenshengLee commented 2 years ago

Issue template

Steps to reproduce the issue

change main.c , compile and flash.

  /* Initialize all configured peripherals */
  MX_GPIO_Init();
  MX_USART3_UART_Init();
  MX_DMA_Init();
  MX_USB_OTG_FS_PCD_Init();

Expected behavior

smoke test success.

Actual behavior

transport of serial failed, with no output of agent

Additional information

In auto-generated code by cubemx(6.4), MX_DMA_Init(); happens after MX_USART3_UART_Init();

_Originally posted by @ZhenshengLee in https://github.com/ZhenshengLee/ros2_mcu/issues/2#issuecomment-1063611974_

pablogs9 commented 2 years ago

Not a micro-ROS issue