dritcey / optiboot

Automatically exported from code.google.com/p/optiboot
0 stars 0 forks source link

Can't build optiboot for low baud rates #47

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. define a new target in the makefile with -DBAUD_RATE=19200 (for example)
2. attempt to build the new target.
3.

What is the expected output? What do you see instead?
The build will apparently attempt to "automatically select" the use of a soft 
uart (even though the bitrate selected should easily work on the HW UART), and 
then fail because the other parameters for implementing a soft uart are not 
defined:

avr-gcc -g -Wall -Os -fno-inline-small-functions -fno-split-wide-types 
-mshort-calls -mmcu=atmega168 -DF_CPU=16000000L   '-DLED_START_FLASHES=3' 
'-DBAUD_RATE=9600'   -c -o optiboot.o optiboot.c
optiboot.c: In function 'main':
optiboot.c:318: error: 'UART_DDR' undeclared (first use in this function)
optiboot.c:318: error: (Each undeclared identifier is reported only once
optiboot.c:318: error: for each function it appears in.)
optiboot.c:318: error: 'UART_TX_BIT' undeclared (first use in this function)
optiboot.c: In function 'putch':
optiboot.c:525: error: 'UART_PORT' undeclared (first use in this function)
optiboot.c:526: error: 'UART_TX_BIT' undeclared (first use in this function)
optiboot.c: In function 'getch':
optiboot.c:563: error: 'UART_PIN' undeclared (first use in this function)
optiboot.c:564: error: 'UART_RX_BIT' undeclared (first use in this function)
optiboot.c:602:2: error: #error Baud rate too slow for soft UART
make: *** [optiboot.o] Error 1

Original issue reported on code.google.com by wes...@gmail.com on 30 Oct 2011 at 8:24

GoogleCodeExporter commented 8 years ago
Fixed: 
http://code.google.com/p/optiboot/source/detail?r=5ec3f2030308441365fe4e9aebf7eb
eb8939fae8

Original comment by wes...@gmail.com on 17 Jan 2012 at 9:01