3.2 3HC Bootloader update - No diag led
-
If i connect to the SWD header, as soon as the board is powered on, the diag LED flashes fast. This is very strange
-
@jay_s_uk said in 3.2 3HC Bootloader update - No diag led:
If i connect to the SWD header, as soon as the board is powered on, the diag LED flashes fast. This is very strange
Hi Jay, what are connecting to the SWD header?
-
@T3P3Tony an ST link. Waiting on a "blue pill" to come so I can hopefully connect to the board properly.
-
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?