Forum Replies Created
-
AuthorPosts
-
RadostinParticipantMine OS2.2 is working ok with ISP and it’s alive,the problem is I can’t update/reinstall firmware from usb only,bcs of missing optiboot bootloader!!!I’m using 644p atmega.
here is the log file generated from the unit:
C:\WinAVR-20100110\bin>avrdude -c usbtiny -p m644p -B 1 -v avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf" Using Port : lpt1 Using Programmer : usbtiny Setting bit clk period : 1.0 AVR Part : ATMEGA644P Chip Erase delay : 9000 us PAGEL : PD7 BS2 : PA0 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail : Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max W ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- --- -- --------- eeprom 65 10 128 0 no 2048 8 0 9000 90 00 0xff 0xff flash 33 6 256 0 yes 65536 256 256 4500 45 00 0xff 0xff lock 0 0 0 0 no 1 0 0 9000 90 00 0x00 0x00 lfuse 0 0 0 0 no 1 0 0 9000 90 00 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 9000 90 00 0x00 0x00 efuse 0 0 0 0 no 1 0 0 9000 90 00 0x00 0x00 signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 Programmer Type : USBtiny Description : USBtiny simple USB programmer, http://www.ladyada.net /make/usbtinyisp/ avrdude: programmer operation not supported avrdude: Setting SCK period to 1 usec avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.02s avrdude: Device signature = 0x1e960a avrdude: safemode: lfuse reads as FF avrdude: safemode: hfuse reads as D6 avrdude: safemode: efuse reads as FF avrdude: safemode: lfuse reads as FF avrdude: safemode: hfuse reads as D6 avrdude: safemode: efuse reads as FF avrdude: safemode: Fuses OK avrdude done. Thank you.
RadostinParticipant@Ray,I made OS2.2s by my self based on your schematics from github!But I’ll buy new 16Mhz crystal and will try then,but as I told you,don’t know the correct fuse settings.Can you give the correct command line please!
@Laurent I have USBtiny for ISP.
10x for the help
RadostinParticipantThere is no cmd/sh file with correct command lines and fuses inside the zip for OS2.2,mine OS2.2 is with 12Mhz oscillator,don’t know if there is a difference…
I’ve tried this commands and still can’t upload firmware via osFWupdater!avrdude -c usbtiny -p m644p -B 250 -F -U lfuse:w:0xFF:m -U hfuse:w:0xDC:m -U efuse:w:0xFD:m -U lock:w:0x0F:m avrdude -c usbtiny -p m644p -B 1 -F -U flash:w:combined2.1.2_16mhz.hex
10x for the help again!
RadostinParticipantHi Ray!
Can you give script with combined optiboot+firmware for 2.2 hardware please?
10x in advance
RadostinParticipantHi!
A long awaited usb ic CH340G has arrived.If possible can you guide me please,what I must flash into atmega trough ISP,so in future to use usb for upgrading FW.For now my PC recognizes usb device,drivers are installed,FW update program is recognizing COM port,but can not flash new FW.What bootloader i must use and if possible the command line for avrdude!
Thank you again for helping me out!
RadostinParticipantThanks Ray,all working now,missed the fuses.Waiting tomorrow for ENC28J60,because now Opensprinkler hangs on Connecting…Some times if i touch with finger some points it goes to the menu…
If you have time,can you tell me how to burn bootloader with avrdude and witch file from where to use?
Thanks again for the support!!!
PS:When I get all things working will post pictures/videos of building the controller,all by myself,except pcb manufacturing;)
RadostinParticipantHello again from me!!!
I’ve builded my own opensprinkler hardware based on 2.2 smt variant.Still don’t have usb serial chip CH340G on my board(ENC28J60 also still missing) . I flashed trough ISP directly into the blank atmega644p this file firmware2.1.2.hex using usbtiny programmer and avrdude with this command:avrdude -c usbtiny -p m644p -U flash:w:firmware2.1.2.hex
But after this,nothing happened;( Is this a right procedure or I’m missing something?I didn’t find any info how to flash first the bootloader(optiboot),so i decided to go straight to the firmware…Any help,tutorial will be very helpful.
Thanks in advance!
RadostinParticipantThank you for the answer Ray!
My second question is where can I find latest 2.2u part list(BOM) and if possible smt version also …
Thanks again for help!
-
AuthorPosts