开发者

Unable take input from USART - FreeRTOS - AT32UC3A0512

开发者 https://www.devze.com 2023-02-22 22:33 出处:网络
Just trying my hands on FreeRTOS. 开发者_Go百科Following are my setup - Micro-controller - AT32UC3A0512

Just trying my hands on FreeRTOS. 开发者_Go百科Following are my setup -

  1. Micro-controller - AT32UC3A0512
  2. Board - EVK1105
  3. Using FreeRTOS
  4. Environment - AVR Studio 5 with ASF latest 2.3 framework

I just created a new project from Example project FreeRTOS. I am checking the USART currently. When run the example project, I am able to transmit characters from my development board to PC through USART but when I type or input something on my PC usart terminal program(using Putty), I am not able to see anything. Can anybody suggest what may be wrong? Or do I need to change the code in the current example code to get input and display on my terminal program for USART?

Thanks...


Off the top of my head, I'm thinking:

  1. Is your putty character ending set right? Like probably utf-8 to send to your MCU?
  2. Is your MCU receiving anything in its receive buffer?

Hope it helps (:


I figured out my problem too. It seemed that the task had an stackoverflow. It didn't freeze but went into an infinite loop in the applicationstackoverflowhook function. Giving the task more stack solved the problem.


I got the problem solved. I removed the ISR based code. Just I initialized the gpio module and then initialized the rs_232 mode for usart , rest I used the existing USART.h and usart.c file API to send or receive data in a FreeRTOS task. That solved my problem...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号