go_away

Author Topic: [Solved] Axon and mikroC PRO for AVR (USART not working)  (Read 1424 times)

0 Members and 1 Guest are viewing this topic.

Offline AxonFanTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
[Solved] Axon and mikroC PRO for AVR (USART not working)
« on: April 22, 2011, 04:07:22 PM »
Is anyone familiar with mikroC PRO for AVR and how to use it with the Axon. Can you just load the compiled hex file in the Axon using the boatloader or do you need to use a programmer? Are their special settings that need to be done in mikroC PRO for AVR?
« Last Edit: April 24, 2011, 11:32:33 PM by AxonFan »

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: Axon and mikroC PRO for AVR
« Reply #1 on: April 23, 2011, 06:08:58 PM »
Quote
Can you just load the compiled hex file in the Axon using the boatloader or do you need to use a programmer?
You can use the bootloader for any .hex compiled for the ATmega640.

Offline AxonFanTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Re: [Solved] Axon and mikroC PRO for AVR (USART not working)
« Reply #2 on: April 24, 2011, 11:34:43 PM »
Solved!

Correct, you can use the bootloader with a .hex created by mikroC PRO, no problems there. The problem was in addressing the USART. The Axon/ATmega640 addresses the USART's as USART0, USART1, USART2 and USART3, as to mikroC PRO's USART1, USART2, USART3 and USART4. Using the USART1 on the Axon for communication with the PC must be addressed as USART2 in mikroC PRO.

 


Get Your Ad Here

data_list