Week assignment is..
○ design and build a wired &/or wireless network connecting at least two processors
First, I downloaded “hello.bus.45 traces and interior file” from class page ,and opened in adobe illustrator. I added the name “bridge” / “node01” / ”node02” in the upper left corner of the boards. After I saved them as png file, I milled with CNC machine and soldered them.
I downloaded the "hello.bus.45.c" and "makefile" code from class page
I connected each boards like this picture. This is picture of when I wrote program in “bridge board”.
For writing program in the boards, I typed these command.
cd ~/Desktop/program/bus // in my case I moved c and make file into “bus” folder in the program folder. make -f hello.bus.45.make sudo make -f hello.bus.45.make program-usbtiny
I need to change the line below in the hello.bus.45.c program when I write it in node01 and 02. I defined the bridge as '0', node01 as '1', and node02 as '2'. After chanded c files, I wrote in another board in the same way.
However, I had some errors while writing "node2" board.
FabLabDAZAIFU-no-MacBook-Pro:bus mikinakazawa$ sudo make -f hello.bus.45.make program-usbtiny avr-objcopy -O ihex hello.bus.45.out hello.bus.45.c.hex;\ avr-size --mcu=attiny45 --format=avr hello.bus.45.out AVR Memory Usage ---------------- Device: attiny45 Program: 768 bytes (18.8% Full) (.text + .data + .bootloader) Data: 4 bytes (1.6% Full) (.data + .bss + .noinit) avrdude -p t45 -P usb -c usbtiny -U flash:w:hello.bus.45.c.hex avrdude: error: usbtiny_receive: usb_control_msg(DeviceRequestTO): unknown error (expected 4, got -1) avrdude: AVR device initialized and ready to accept instructions Reading | | 0% 0.00s avrdude: error: usbtiny_receive: usb_control_msg(DeviceRequestTO): unknown error (expected 4, got -1) avr_read(): error reading address 0x0000 read operation not supported for memory "signature" avrdude: error reading signature data for part "ATtiny45", rc=-2 avrdude: error reading signature data, rc=-1 avrdude: error: usbtiny_transmit: usb_control_msg(DeviceRequestTO): unknown error avrdude done. Thank you. make: *** [program-usbtiny] Error 1
FabLabDAZAIFU-no-MacBook-Pro:bus mikinakazawa$ sudo make -f hello.bus.45.make program-usbtiny avr-objcopy -O ihex hello.bus.45.out hello.bus.45.c.hex;\ avr-size --mcu=attiny45 --format=avr hello.bus.45.out AVR Memory Usage ---------------- Device: attiny45 Program: 768 bytes (18.8% Full) (.text + .data + .bootloader) Data: 4 bytes (1.6% Full) (.data + .bss + .noinit) avrdude -p t45 -P usb -c usbtiny -U flash:w:hello.bus.45.c.hex avrdude: error: usbtiny_receive: usb_control_msg(DeviceRequestTO): unknown error (expected 4, got -1) avrdude: AVR device initialized and ready to accept instructions Reading | | 0% 0.00s avrdude: error: usbtiny_receive: usb_control_msg(DeviceRequestTO): no connection to an IOService (expected 4, got -6) avr_read(): error reading address 0x0000 read operation not supported for memory "signature" avrdude: error reading signature data for part "ATtiny45", rc=-2 avrdude: error reading signature data, rc=-1 avrdude: error: usbtiny_transmit: usb_control_msg(DeviceRequestTO): no connection to an IOService avrdude done. Thank you. make: *** [program-usbtiny] Error 1
For solving this problem, I tried to