convert rs232 demo to avr
Posted: Mon Sep 09, 2013 11:08 pm
I am trying to convert the "rs232 simple echo" demo to a AVR Atmega128.
It will compile ok but if I try to create a HEX file it gives the error:
C:\Program Files (x86)\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:600:8: error: #error "UART channel 1 not available on this device"
This chip has two channels.
I went to "project options" change to atmega128 and the clock speed to 16mhz. Saved it and complied to "C". I went to the component dialog and when I select channel 1 the port pins change to the correct pins (E.0,E.1). It shows: Software; Channel1; Channel2; as selections.
What have I missed?
JoeT
It will compile ok but if I try to create a HEX file it gives the error:
C:\Program Files (x86)\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:600:8: error: #error "UART channel 1 not available on this device"
This chip has two channels.
I went to "project options" change to atmega128 and the clock speed to 16mhz. Saved it and complied to "C". I went to the component dialog and when I select channel 1 the port pins change to the correct pins (E.0,E.1). It shows: Software; Channel1; Channel2; as selections.
What have I missed?
JoeT