Loading ...
Sorry, an error occurred while loading the content.

8252Re: [UV-3R] Re: hacking the uv3r (re-flashing the firmwere)

Expand Messages
  • haxwithaxe
    Apr 3 3:47 PM
      is there an alternate vdd trace? i seem to have pulled mine off at some
      point (may have been as i reopened the case).

      On 03/23/2013 07:06 PM, Lior Elazary wrote:
      >
      >
      > I am on IRC if you want to chat.
      > Lior.
      >
      >
      > ------------------------------------------------------------------------
      > *From:* Lior Elazary <lelazary@...>
      > *To:* "UV-3R@yahoogroups.com" <UV-3R@yahoogroups.com>
      > *Sent:* Saturday, March 23, 2013 4:04 PM
      > *Subject:* Re: [UV-3R] Re: hacking the uv3r (re-flashing the firmwere)
      >
      >
      > I think you need at least 9V to enter ISP mode . Try a fresh new battery
      > with the resistor.
      > I bought two radios from amazon, and both had the 82 chip ID.
      >
      > You can probably use any resistor, I just added that to limit the
      > current just incase.
      > Lior.
      >
      >
      >
      > ------------------------------------------------------------------------
      > *From:* haxwithaxe <me@...>
      > *To:* UV-3R@yahoogroups.com
      > *Sent:* Saturday, March 23, 2013 3:41 PM
      > *Subject:* Re: [UV-3R] Re: hacking the uv3r (re-flashing the firmwere)
      >
      > i picked up a npn on my way home and it is better but still not getting
      > the id.
      > i have the circuit hooked up almost exactly as you have it in the blog
      > post. i omitted the resistors due to my using a slightly dead (8.7V) 9V
      > but that is currently the only deviation.
      >
      > after the below i uncommented the lines in getChipID() that print the
      > ID. my chip ID is read as FF.
      >
      > here is an annotated dump of what the arduino console showed:
      > <code>
      >>>>SIC
      > Enter ISP
      > OK
      > ERR:Failed to get chip ID
      > Exit ISP
      > OK
      >>>>S
      > Enter ISP
      > OK
      >>>>I
      > ERR:Failed to get chip ID
      >>>>E
      > Erasing chip
      > Failed to get chip ID
      > ERR:Failed to erase chip
      >>>>R 0000 000F
      > Reading
      > 9000 9000
      > OK:
      >>>>C
      > <no reponse>
      >>>>C
      > Config Device with CC
      >>>>SIC
      > Failed to get chip ID
      > ERR:Failed to config chip
      > Exit ISP
      > OK
      >>>>SIC
      > Enter ISP
      > OK
      > ERR:Failed to get chip ID
      > <short pause>
      > Exit ISP
      > OK
      > Exit ISP
      > OK
      > </code>
      > On 03/23/2013 03:55 PM, Lior Elazary wrote:
      >>
      >>
      >> Yea. That will do it.
      >> For every command issued, you need to switch the 9V from GND to 9V
      >> before the command, and from 9V to GND after the command.
      >>
      >> Let me know how it works out.
      >>
      >> Lior.
      >>
      >>
      >>
      >>
      >> ------------------------------------------------------------------------
      >> *From:* haxwithaxe <me@... <mailto:me@...>>
      >> *To:* UV-3R@yahoogroups.com <mailto:UV-3R@yahoogroups.com>
      >> *Sent:* Saturday, March 23, 2013 11:49 AM
      >> *Subject:* Re: [UV-3R] Re: hacking the uv3r (re-flashing the firmwere)
      >>
      >> yeah that might be important to know :P i am manually setting the 9v on
      >> vpp so i didn't realize it was only supposed to be for the S command.
      >> i'm at a meeting rightnow but when i get home i'll give it a try with
      >> the appropriate application of the 9v.
      >>
      >> On 03/23/2013 01:25 AM, Lior Elazary wrote:
      >>>
      >>>
      >>> Check the 9v connection and the 5v going inro the radio. Make sure that
      >>> 5 is always on. And that 9 is going from 0 to 9 when the S command os
      >>> set. By the way, what do you see for the chip id? I am checking for 82,
      >>> but yours might be different.
      >>>
      >>> Also make sure you have power into the radio, either through the power
      >>> connector or the battery.
      >>>
      >>> Lior
      >>>
      >>> /Sent from my Motorola ATRIX™ 4G on AT&T/
      >>>
      >>>
      >>> -----Original message-----
      >>>
      >>> *From: *haxwithaxe <me@... <mailto:me@...>
      > <mailto:me@... <mailto:me@...>>>*
      >>> To: *UV-3R@yahoogroups.com <mailto:UV-3R@yahoogroups.com>
      > <mailto:UV-3R@yahoogroups.com <mailto:UV-3R@yahoogroups.com>>*
      >>> Sent: *Sat, Mar 23, 2013 05:19:39 GMT+00:00*
      >>> Subject: *Re: [UV-3R] Re: hacking the uv3r (re-flashing the firmwere)
      >>>
      >>> "ERR:Failed to get chip ID "
      >>>
      >>> On 03/23/2013 01:17 AM, Lior Elazary wrote:
      >>> >
      >>> >
      >>> > Try going into the serial monitor in the arduino software.
      >>> > Type
      >>> > S
      >>> > I
      >>> > C
      >>> >
      >>> > See what you get for the chip id.
      >>> >
      >>> > Lior
      >>> >
      >>> > /Sent from my Motorola ATRIX™ 4G on AT&T/
      >>> >
      >>> >
      >>> > -----Original message-----
      >>> >
      >>> > *From: *haxwithaxe *
      >>> > To: *UV-3R@yahoogroups.com <mailto:UV-3R@yahoogroups.com>
      > <mailto:UV-3R@yahoogroups.com <mailto:UV-3R@yahoogroups.com>>*
      >>> > Sent: *Sat, Mar 23, 2013 05:12:02 GMT+00:00*
      >>> > Subject: *Re: [UV-3R] Re: hacking the uv3r (re-flashing the
      > firmwere)
      >>> >
      >>> > the power cycling is not random. it happens when i go from ISP
      >> mode to
      >>> > out of ISP mode with ~1second delay after exiting.
      >>> >
      >>> > On 03/23/2013 12:51 AM, haxwithaxe wrote:
      >>> > > i don't seem to be able to erase the memory :/
      >>> > > i got messages the first time that looked like success but since
      >>> > > updating to the latest code it's giving me errors (appropriately)
      >>> > when i
      >>> > > try to erase. it still has the stock firmware and i get the
      >>> feeling i
      >>> > > need to clean up my soldering given the radio turns on and off
      >>> > randomly
      >>> > > when i have Vdd hooked up to the 9V battery (or any voltage source
      >>> > like
      >>> > > pin 5 set high).
      >>> > >
      >>> > > On 03/22/2013 11:07 AM, Lior Elazary wrote:
      >>> > >>
      >>> > >>
      >>> > >> Great, just merged it. So were you able to flash the radio and
      >>> > get the
      >>> > >> firmware working?
      >>> > >>
      >>> > >> By the way, I added the serial command, so the radio can now be
      >>> > >> controlled using a simple python interface and the programming
      >>> cable
      >>> > >> that came with the radio (very basic things for now). Check
      >> out the
      >>> > >> RadioUI folder.
      >>> > >>
      >>> > >> Lior.
      >>> > >>
      >>> > >>
      >>> > >>
      >>> >
      >>>
      >> ------------------------------------------------------------------------
      >>> > >> *From:* haxwithaxe
      >>> > >> *To:* UV-3R@yahoogroups.com <mailto:UV-3R@yahoogroups.com>
      > <mailto:UV-3R@yahoogroups.com <mailto:UV-3R@yahoogroups.com>>
      >>> > >> *Sent:* Friday, March 22, 2013 5:38 AM
      >>> > >> *Subject:* Re: [UV-3R] Re: hacking the uv3r (re-flashing the
      >>> > firmwere)
      >>> > >>
      >>> > >> commit 1cea0e7638235542c2c115ff3ac98315ed12f998 works for me
      >>> with the
      >>> > >> make file once i replaced the home directory.
      >>> > >>
      >>> > >> On 03/22/2013 01:43 AM, Lior Elazary wrote:
      >>> > >>>
      >>> > >>>
      >>> > >>> I made the makefile very quickly, and figured most people would
      >>> > probably
      >>> > >>> use windows. Feel free to rewrite it to a more generic code if
      >>> > you want.
      >>> > >>> Otherwise, I will do it as some point.
      >>> > >>>
      >>> > >>> For the wine, I have version 1.4. I also get similar fixme
      >>> > errors, but I
      >>> > >>> do get the object file. Here is a section from my console.
      >>> > >>>
      >>> > >>> try to run the HMS800C/bin/hms800-cc directly in wine and see
      >> what
      >>> > >>> happens. Here is what I am getting.
      >>> > >>>
      >>> > >>>
      >>> > >>> wine /home/elazary/.wine/drive_c/HMS800C/bin/hms800-cc -ramclr
      >>> > -mshort
      >>> > >>> -Os -g -Wa,"-mhms800"
      >>> > >>> --option-file="C:\\HMS800C\\options\\MC81F8816.opt"
      >>> > -Wa,"-ahls=uart.lst"
      >>> > >>> -c -o uart.o uart.c
      >>> > >>> fixme:ntdll:NtSetInformationToken unimplemented class 4
      >>> > >>> fixme:advapi:ImpersonateLoggedOnUser ((nil))
      >>> > >>> fixme:ntdll:NtQueryVolumeInformationFile 0x114: volume info not
      >>> > supported
      >>> > >>> fixme:advapi:ImpersonateLoggedOnUser (0xa8)
      >>> > >>> fixme:advapi:ImpersonateLoggedOnUser (0xc8)
      >>> > >>> fixme:ntdll:NtQueryVolumeInformationFile 0x114: volume info not
      >>> > supported
      >>> > >>> fixme:advapi:ImpersonateLoggedOnUser (0xa8)
      >>> > >>> fixme:advapi:ImpersonateLoggedOnUser (0xc0)
      >>> > >>> fixme:ntdll:NtQueryVolumeInformationFile 0xec: volume info not
      >>> > supported
      >>> > >>>
      >>> > >>> Lior.
      >>> > >>> KK6BWA
      >>> > >>>
      >>> > >>>
      >>> >
      >>>
      >> ------------------------------------------------------------------------
      >>> > >>> *From:* haxwithaxe >
      >>> > >>> *To:* UV-3R@yahoogroups.com <mailto:UV-3R@yahoogroups.com>
      > <mailto:UV-3R@yahoogroups.com <mailto:UV-3R@yahoogroups.com>>
      >>> > >>> *Sent:* Thursday, March 21, 2013 10:09 PM
      >>> > >>> *Subject:* Re: [UV-3R] Re: hacking the uv3r (re-flashing the
      >>> > firmwere)
      >>> > >>>
      >>> > >>> i am in the midst of playing with the system for the first time.
      >>> > i got
      >>> > >>> to the bit in the instructions where it says "./uv3rFlash.py -p
      >>> > >>> /dev/ttyUSB0 -w ../firmware/uv3r_firmware.hex"
      >>> > >>>
      >>> > >>> ... and no hex file :P
      >>> > >>> so i try using the make file (fixed paths) and it didn't work. i
      >>> > tried
      >>> > >>> using the idea and it didn't work.
      >>> > >>> wine is as usual giving lots of errors but there is one that
      >>> > >>> consistently comes up when the cc fails.
      >>> > >>> "fixme:ntdll:NtQueryVolumeInformationFile 0x114: volume info not
      >>> > >> supported"
      >>> > >>> no idea where it's coming from
      >>> > >>> sample of the console from testing
      >>> > >>> |
      >>> > >>> bash-4.2$ pwd
      >>> > >>> /home/hax/.wine/drive_c/uv3rmod/firmware
      >>> > >>> bash-4.2$ make
      >>> > >>> wine /home/hax/.wine/drive_c/HMS800C/bin/hms800-cc -ramclr
      >>> > -mshort -Os
      >>> > >>> -g -Wa,"-mhms800" --option-file="\\options\\MC81F8816.opt"
      >>> > >>> -Wa,"-ahls=lcd.lst" -c -o lcd.o lcd.c
      >>> > >>> preloader: Warning: failed to reserve range 00010000-00110000
      >>> > >>> preloader: Warning: failed to reserve range 00010000-00110000
      >>> > >>> preloader: Warning: failed to reserve range 00010000-00110000
      >>> > >>> preloader: Warning: failed to reserve range 00010000-00110000
      >>> > >>> preloader: Warning: failed to reserve range 00010000-00110000
      >>> > >>> preloader: Warning: failed to reserve range 00010000-00110000
      >>> > >>> preloader: Warning: failed to reserve range 00010000-00110000
      >>> > >>> fixme:ntdll:NtSetInformationToken unimplemented class 4
      >>> > >>> fixme:advapi:ImpersonateLoggedOnUser ((nil))
      >>> > >>> fixme:ntdll:NtQueryVolumeInformationFile 0x114: volume info not
      >>> > supported
      >>> > >>> Error in opening option file:make: *** [lcd.o] Error 3
      >>> > >>> bash-4.2$ ls *.o
      >>> > >>> ls: cannot access *.o: No such file or directory
      >>> > >>> bash-4.2$
      >>> > >>> |
      >>> > >>> i am assuming this is a wine issue and not a uv3rmod issue
      >>> directly
      >>> > >>>
      >>> > >>> On 03/18/2013 10:34 AM, Lior wrote:
      >>> > >>>> You could buy the programmer from the manufacture:
      >>> > >>>> _USB_SIO_ISP
      >>> > >>>> http://www.abov.co.kr/eng/tool/isp800_uart.php
      >>> > >>>>
      >>> > >>>> Then, you would just have to connect it.
      >>> > >>>>
      >>> > >>>> You will need to contact them directly and it will be about
      > $100
      >>> > >>> (after shipping and wire transfer fees)
      >>> > >>>>
      >>> > >>>> Lior
      >>> > >>>> KK6BWA
      >>> > >>>>
      >>> > >>>> --- In UV-3R@yahoogroups.com <mailto:UV-3R@yahoogroups.com>
      > <mailto:UV-3R@yahoogroups.com <mailto:UV-3R@yahoogroups.com>>
      >>> > >> >,
      >>> > >>> "takeoyasha" wrote:
      >>> > >>>>>
      >>> > >>>>> Hello KK6BWA,
      >>> > >>>>>
      >>> > >>>>> can you make a tutorial how to use the programmer with
      > arduino?
      >>> > >>>>> Is a arduino really needed? No other ways?
      >>> > >>>>>
      >>> > >>>>
      >>> > >>>>
      >>> > >>>>
      >>> > >>>>
      >>> > >>>> ------------------------------------
      >>> > >>>>
      >>> > >>>> Yahoo! Groups Links
      >>> > >>>>
      >>> > >>>>
      >>> > >>>>
      >>> > >>>
      >>> > >>>
      >>> > >>>
      >>> > >>>
      >>> > >>>
      >>> > >>>
      >>> > >>
      >>> > >>
      >>> > >>
      >>> > >>
      >>> > >>
      >>> > >>
      >>> >
      >>> >
      >>> >
      >>> >
      >>>
      >>>
      >>>
      >>>
      >>
      >>
      >>
      >>
      >>
      >>
      >
      >
      >
      >
      >
      >
      >
      >
    • Show all 56 messages in this topic