life is fun

Ultrasonic distance measure on Atmel 168 MCU !

> “make.exe” all
make -C ../libnerdkits
make[1]: Entering directory `C:/Users/VictorIBM/Documents/My Dropbox/NerdKits/Code/Code/libnerdkits’
make[1]: Nothing to be done for `all’.
make[1]: Leaving directory `C:/Users/VictorIBM/Documents/My Dropbox/NerdKits/Code/Code/libnerdkits’
avr-gcc -g -Os -Wall -mmcu=atmega168 -Wl,-u,vfprintf -lprintf_flt -Wl,-u,vfscanf -lscanf_flt -lm -o victor_ultrasound_new.o victor_ultrasound_new.c ../libnerdkits/delay.o ../libnerdkits/lcd.o ../libnerdkits/uart.o
avr-objcopy -j .text -O ihex victor_ultrasound_new.o victor_ultrasound_new.hex
avrdude -c avr109 -p m168 -b 115200 -P COM5 -U flash:w:victor_ultrasound_new.hex:a

Connecting to programmer: .
Found programmer: Id = “FDL v02”; type = S
Software Version = 0.2; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
Device code: 0x35

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9406
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file “victor_ultrasound_new.hex”
avrdude: input file victor_ultrasound_new.hex auto detected as Intel Hex
avrdude: writing flash (9766 bytes):

Writing | ################################################## | 100% 1.30s

avrdude: 9766 bytes of flash written
avrdude: verifying flash memory against victor_ultrasound_new.hex:
avrdude: load data flash data from input file victor_ultrasound_new.hex:
avrdude: input file victor_ultrasound_new.hex auto detected as Intel Hex
avrdude: input file victor_ultrasound_new.hex contains 9766 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.99s

avrdude: verifying …
avrdude: 9766 bytes of flash verified

avrdude done. Thank you.

> Process Exit Code: 0
> Time Taken: 00:05

Standard