Just trying my hands on FreeRTOS. 开发者_Go百科Following are my setup -
- Micro-controller - AT32UC3A0512
- Board - EVK1105
- Using FreeRTOS
- 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:
- Is your putty character ending set right? Like probably utf-8 to send to your MCU?
- 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...
精彩评论