3.2 3HC Bootloader update - No diag led
-
But even with just 3.3v and ground attached the diag LED flashes.
With VIN attached, all 4 lights are on but not the diag LED -
I have a connection between a raspberry pi 4 and the 3HC using openocd
Just setting up the config file.
Does anyone know if this is correct?init targets reset halt atsame5 bootloader 0 flash erase_sector 0 0 last reset halt flash write_image Duet3Bootloader-SAME5x.bin verify atsame5 bootloader 16384 reset shutdown
-
The bootloader is normally protected, so you will probably need to remove the bootloader protection first. This is in the NVRAM calibration area, see section 9.3 of the SAMC21 datasheet. Caution, do not change any other values in that area.
-
I can read the userspace but I've no idea what bit I should be changing or what I should be changing it to.
-
@dc42 which is the best version of the bootloader to try and flash?
It was the 2.1 bootloader I installed over CAN that caused the board to be none responsive.
Any ideas why it would've happened if its supposed to check itself?
I did try and build the latest version but the build failed. -
Bootloader 2.1 is the latest and is working on all my boards. There are different builds for the SAME5x (i.e. EXP3HC) and SAMC21 (tool board and 1XD).
Were you running in SBC mode or standalone mode when you tried to update the bootloader?
-
I was running in standalone and installed version 2.1 of Duet3Bootloader-SAME5x.bin
-
Thanks. I am about to test downgrading and upgrading the bootloader on a 3HC again.
-
my stlinks have come so hopefully a little later i'll be able to use the atmel studio software to make life a little easier
-
Downgrading the bootloader over CAN doesn't work, I believe because bootloader versions prior to 2.0 don't have the right CRC. So the firmware refuses to erase the old bootloader and install the new one.
-
@dc42 hmmm, I had whatever bootloader came with the original 3HC and have never updated it prior to this.
Maybe thats the issue? -
I just flashed the very first bootloader release on to the EXP3HC using the ICE, booted up, and verified that the bootloader version was "not available" in M122 B1. Then upgraded successfully to 2.1 over CAN.
So I don't know why your bootloader upgrade failed.
-
ok, thanks
might be back with questions later if I can't get the flashing to work -
@dc42 would you entertain the idea of me sending you my 3HC for reprogramming? I'm in the UK and would recover the return postage etc
-
@dc42 am i ok to post my 3HC off to you tomorrow? I'm unable to program it here
-
@jay_s_uk said in 3.2 3HC Bootloader update - No diag led:
@dc42 am i ok to post my 3HC off to you tomorrow? I'm unable to program it here
Yes, that's fine. I'll email you my address.
-
I received my board back today from @dc42
I am still having issues with it.
So far, I have determined that when powered from 24v (tested with 2 different power supplies), the diag LED does not flash. All 4 LEDs are illuminated to indicate VIN, 12v, 5v and 3.3v.
When powered from 12v, the diag LED does flash and all 4 LEDs illuminate.
Any pointers on where I can go from here? -
Measure the 5V and 3.3V rail, or even better put a scope on them?
No idea why they'd behave different with different input voltages unless the buck converter is somehow fubar.If supplying external 5V is an option then that might bypass the problem, but presumably its a relatively new board?
-
@bearer no, i'd had it about a year since they were released.
I don't have a scope.
I can try measuring the 3.3v and 5v rail but why would they work on 12v but not on 24v? -
a year already .. time flies!
no idea why it'd be different, but given buck converters will have different efficiencies and operate with different input currents at different input voltages for the same load an unstable output was the only grasping-at-straws suggestion I could come up with seeing as it works with 12v.
(presuming there isn't a grounding issue with the 24v supply and not with the 12v supply)