Program Successful But Boots To serial number

Post Reply
VK3YY
 

Posts: 6
Joined: 30 Dec 2021, 22:58

Program Successful But Boots To serial number

Post by VK3YY »

Hi There,

After entering my TruSDX S/N into the website, downloading the firmware and programming the TruSDX using AVRdudess with USB-asp, the radio still boots to the serial number.
What am I missing here?

AVRdudess reports a successful verify.

Cheers,
Glenn VK3YY.

-----------------------------------------------------------------------------------------------------------------------------
avrdude.exe: input file D:\downloads\VK3YY_truSDX_hiddenserialnumber_Firmware.hex contains 31480 bytes
avrdude.exe: reading on-chip flash data:

Reading | ################################################## | 100% 17.95s

avrdude.exe: verifying ...
avrdude.exe: 31480 bytes of flash verified

avrdude.exe done. Thank you.
------------------------------------------------------------------------------------------------------------------------------
Faraaz VK4JJ
 

Posts: 215
Joined: 30 Dec 2021, 21:56

Re: Program Successful But Boots To serial number

Post by Faraaz VK4JJ »

Glenn,

Can you verify all your settings in AVRDudess match these?

Image
VK3YY
 

Posts: 6
Joined: 30 Dec 2021, 22:58

Re: Program Successful But Boots To serial number

Post by VK3YY »

Hi Faraaz,

Yes they are the same except for the programmer which is USB-asp instead of Arduino.

Cheers,
Glenn VK3YY.
Faraaz VK4JJ
 

Posts: 215
Joined: 30 Dec 2021, 21:56

Re: Program Successful But Boots To serial number

Post by Faraaz VK4JJ »

VK3YY wrote: 25 Feb 2022, 10:54 Hi Faraaz,

Yes they are the same except for the programmer which is USB-asp instead of Arduino.

Cheers,
Glenn VK3YY.
Hi Glenn,

Are you trying to upload the firmware over ICSP using a USBAsp?
Or are you using a USB cable connected to the micro-USB port?
VK3YY
 

Posts: 6
Joined: 30 Dec 2021, 22:58

Re: Program Successful But Boots To serial number

Post by VK3YY »

Hi Faraaz,
I am uploading the firmware using USB-asp via the ICSP header on the main board.
Cheers,
Glenn.
VK3YY
 

Posts: 6
Joined: 30 Dec 2021, 22:58

Re: Program Successful But Boots To serial number

Post by VK3YY »

Hmm.... I guess I should be loading the firmware via the micro USB port.... :roll:
Cheers,
Glenn VK3YY.
Faraaz VK4JJ
 

Posts: 215
Joined: 30 Dec 2021, 21:56

Re: Program Successful But Boots To serial number

Post by Faraaz VK4JJ »

Glenn,

Try uploading with a USB cable please, using Arduino as the programming device.
VK3YY
 

Posts: 6
Joined: 30 Dec 2021, 22:58

Re: Program Successful But Boots To serial number

Post by VK3YY »

Hi Faraaz,

I tried that, but it didn't work. I wonder if programming via the ICSP port has overwritten something?
The CH340 driver is loaded, the com port is recognised in device manager as com 6.
--------------------------------------------------------------------------------------------
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
>>>: avrdude -u -c arduino -p m328p -P COM6 -b 115200 -U flash:w:"D:\downloads\VK3YY_truSDX_hiddenserialnumber_Firmware.hex":a
avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 1 of 10: not in sync: resp=0xb4
avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 2 of 10: not in sync: resp=0xb4
avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 3 of 10: not in sync: resp=0xb4
avrdude.exe: stk500_recv(): programmer is not responding
Faraaz VK4JJ
 

Posts: 215
Joined: 30 Dec 2021, 21:56

Re: Program Successful But Boots To serial number

Post by Faraaz VK4JJ »

Yes, you've probably overwritten the bootloader.

Since you have a Usbasp, the quickest way would be to reflash the bootloader and set fuses (see the instruction page on the DL2MAN.de website). Then upload your firmware over USB as instructed.

There is another option which is available in the beta firmware to upload over ICS, but please try this to start with.
DougK
 

Posts: 1
Joined: 30 Dec 2021, 20:10

Re: Program Successful But Boots To serial number

Post by DougK »

Hi,
Did you use an USB-C adapter by any chance when you were uploading the firmware?
I had the exact same message when I used USB-C adapter.
After using a straight USB cable without the adapter, everything went fine.
VK3YY
 

Posts: 6
Joined: 30 Dec 2021, 22:58

Re: Program Successful But Boots To serial number

Post by VK3YY »

OK, so I rewrote the bootloader using USBasp and then loaded the firmware using the micro USB interface and it's now running fine.
Receive and transmit all bands at good power.
It was a really straightforward build.

Thanks Faraaz.

For some reason though , when AVRdudess went to verify, it said programmer not responding.

Doug, I wasn't using a USB-C adaptor.

Cheers,
Glenn VK3YY.
Faraaz VK4JJ
 

Posts: 215
Joined: 30 Dec 2021, 21:56

Re: Program Successful But Boots To serial number

Post by Faraaz VK4JJ »

DougK wrote: 25 Feb 2022, 19:26 Hi,
Did you use an USB-C adapter by any chance when you were uploading the firmware?
I had the exact same message when I used USB-C adapter.
After using a straight USB cable without the adapter, everything went fine.

You have to be quite careful with usb-c adaptors. The data lines are often not connected as the adaptors are often designed just for charging purposes.
KX6I
 

Posts: 7
Joined: 05 Mar 2022, 21:50

Re: Program Successful But Boots To serial number

Post by KX6I »

I'm having the same problem of booting to the serial number--but I am using an Arduino, USB A, and the settings as outlined for the standard protocol... I'm quite stuck!
Faraaz VK4JJ
 

Posts: 215
Joined: 30 Dec 2021, 21:56

Re: Program Successful But Boots To serial number

Post by Faraaz VK4JJ »

Please post a screenshot of AVRDUDESS after you have attempted an upload.
KX6I
 

Posts: 7
Joined: 05 Mar 2022, 21:50

Re: Program Successful But Boots To serial number

Post by KX6I »

screenshot-1.jpg
screenshot-1.jpg (134.5 KiB) Viewed 3753 times
DM3FAM
 

Posts: 17
Joined: 03 Jan 2022, 16:50

Re: Program Successful But Boots To serial number

Post by DM3FAM »

Hello.

For me it helped once to reload the bootloader and then the current firmware.

73 Marcel DM3FAM
KX6I
 

Posts: 7
Joined: 05 Mar 2022, 21:50

Re: Program Successful But Boots To serial number

Post by KX6I »

I've reinstalled the bootloader several times--I always get the same serial number, the firmware apparently loads in AVRDUDESS fine but it never reboots to the start screen
DL2MAN
 

Posts: 719
Joined: 30 Dec 2021, 19:18
Contact:

Re: Program Successful But Boots To serial number

Post by DL2MAN »

The Problem is appearently NOT the Firmware, but the (missing or wrong) Bootloader or (missing or wrong) Fuses.
Something in that process went wrong.
Please show a screenshot of you after Uploading Bootloader and setting fuses.

And while you´re at it, please show a picture of the Serial Number in Display. If it´s generated for the wrong S/N, it will still write it OK, but keeps showing the Serial Number

73 Manuel, DL2MAN
KX6I
 

Posts: 7
Joined: 05 Mar 2022, 21:50

Re: Program Successful But Boots To serial number

Post by KX6I »

serial.jpg
serial.jpg (22.03 KiB) Viewed 3694 times
Screen Shot 2022-03-07 at 8.59.38 AM.png
Screen Shot 2022-03-07 at 8.59.38 AM.png (178.24 KiB) Viewed 3694 times
DL2MAN
 

Posts: 719
Joined: 30 Dec 2021, 19:18
Contact:

Re: Program Successful But Boots To serial number

Post by DL2MAN »

Found it
Exchange the 0 for an 8.... :D

73 Manuel DL2MAN
KX6I
 

Posts: 7
Joined: 05 Mar 2022, 21:50

Re: Program Successful But Boots To serial number

Post by KX6I »

Thanks, Manuel. Do you mean change fuse settings to 8xFF, etc? If I do that, I get an error “read from file 8xFF failed” invalid byte value.
DL2MAN
 

Posts: 719
Joined: 30 Dec 2021, 19:18
Contact:

Re: Program Successful But Boots To serial number

Post by DL2MAN »

No, i mean what you read as 0 in your serial number, actually is an 8.
So you entered the wrong serial number, downloaded the file for another serial number as your rig actually has.
There's your problem

73 Manuel DL2MAN
KX6I
 

Posts: 7
Joined: 05 Mar 2022, 21:50

Re: Program Successful But Boots To serial number

Post by KX6I »

Ahh...wow, Manuel I never would have caught that! Sadly, I find myself unable to try it since the OLED no longer displays info after reinstalling the bootloader multiple times. There is power to the OLED but it repeatedly cycles up and down as if the bootloader is stuck in a loop. In any case, thanks for your help!
Post Reply

Users browsing this forum: No registered users and 2 guests