Society of Robots - Robot Forum

Software => Software => Topic started by: AxonFan on April 22, 2011, 04:07:22 PM

Title: [Solved] Axon and mikroC PRO for AVR (USART not working)
Post by: AxonFan 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?
Title: Re: Axon and mikroC PRO for AVR
Post by: Admin 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.
Title: Re: [Solved] Axon and mikroC PRO for AVR (USART not working)
Post by: AxonFan 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.