Diskussions- und Newsboard des DARC-Ortsverbandes I40
allgemeine Kategorie => UHSDR Firmware => Message started by: F4HTX on 12. January 2018, 10:13:20

Title: OVI-40 UI v1.8 bricked
Post by: F4HTX on 12. January 2018, 10:13:20

Dear Friends,

No fun this morning, it looks like my UI board is bricked !

I tried to update the firmware using the USB drive and 2.7.61 firmware, got the message:
"OVI40 boot loader
Firmware Name: fw-40SDR
USB Drive Mode

Release Band- to skip firmware update"

The green led flashed and ... nothing else. After 30 seconds, I finally released the Band- button, nothing more happened.

Power off, power on and white screen again. I did a couple cycle with same result.

I tried to enforce DFU mode, no success: always white screen and no LED at all.

I checked the power, cpu reset and the cpu clock, They are fine. Lines from the DFU socket to the cpu are ok, BOOT0 signal too.

It looks like the STM does not care of the BOOT0

Any idea welcome ...

Best Regards,

François

Title: Re:OVI-40 UI v1.8 bricked
Post by: db9mat on 12. January 2018, 13:04:33

Do you have a ST-Link debug adapter? Pretty sure your UI board isn't bricked, the STM32 is just having a severe case of memory loss ;)

If don't have a dedicated ST-Link debugger, maybe you have a STM32 Nucleo or Discovery board? Those can be used as debuggers, too.

Title: Re:OVI-40 UI v1.8 bricked
Post by: F4HTX on 12. January 2018, 13:28:54

Hi Mathis,

Thanks for answer.

I thought I might do something with a classical usb/serial interface and the ST-Link software, but apparently not. So I just ordered a ST-Link debugger (should get it on monday or tuesday).

And my discovery board is programmed as an antenna analyzer and I won't mess with it as it's running smoothly :)

I'll post the results as soon as it's done.

Best Regards,

François

Title: Re:OVI-40 UI v1.8 bricked
Post by: F4HTX on 18. January 2018, 18:06:03

Dear Friends,

My UI OVI-40 v1.8 is back in business after a few days in brick break. This has taken more time than expected, mainly because of the lack of clarity in the STM interface documentation.

If something strange or unexpected happened to your board and none of the usual procedure are working to install the Bootloader or the Firmware, this might bring life back into your UI.

You will need :
- an up to date STM32 ST-LINK utility ( http://www.st.com/en/development-tools/stm32-programmers.html?querycriteria=productId=LN2013 ) running on something (you choose)
- a ST-LINKV2 probe ( http://www.st.com/content/st_com/en/products/development-tools/hardware-development-tools/development-tool-hardware-for-mcus/debug-hardware-for-mcus/debug-hardware-for-stm32-mcus/st-link-v2.html ), (you might use some other compatible hardware)
- latest version of the Bootloader and/or UHSDR Firmware

The only tricky part is to connect the probe JTAP connector to the JP8 UI board, here are the needed wires :

JP8-3 (SWDIO) to JTAG-7
JP8-4 (SWCLK) to JTAG-9
JP8-5 (UI_3V3) to JTAG-1
JP8-6 (GND) to JTAG-20

The rest of the procedure is straight forward : connect, erase, flash and you are done.

One additional trick, when I first connected to the MCU, I got an error message « Readout Protection Mode » and was unable to erase the chip. I finally choosed to try to flash a first time and the utility did what was necessary to remove the protection mode. Cool, thank you STM !

Best Regards,

François


Title: Re:OVI-40 UI v1.8 bricked
Post by: db9mat on 18. January 2018, 18:57:20

Glad to hear it! It's pretty hard (if not impossible) to kill a STM32 via software.. SWD/JTAG should always work!

Title: Re:OVI-40 UI v1.8 bricked
Post by: peter_77 on 18. January 2018, 23:25:37

A couple of us faced the same issue during beta testing the new UI board.
But as you could see a cheap chinese ST Link adapter from Amazon or eBay saves your day :D

Here are the steps. Unfortunately in German but maybe it helps.
https://www.amateurfunk-sulingen.de/forum/index.php?board=15;action=display;threadid=577;start=315 (https://www.amateurfunk-sulingen.de/forum/index.php?board=15;action=display;threadid=577;start=315)
Register values from Andreas:
https://www.amateurfunk-sulingen.de/forum/index.php?board=15;action=display;threadid=577;start=285 (https://www.amateurfunk-sulingen.de/forum/index.php?board=15;action=display;threadid=577;start=285)

The URLs are from a (forgotten) I40 UI thread in the mcHF folder.
Maybe one of the board admins can move that one to the UHSDR area here too.

Title: Re:OVI-40 UI v1.8 bricked
Post by: F4HTX on 19. January 2018, 07:32:12

Dear Friends,

Thank you very much Peter for pointing those threads, this will be helpful for non German speaking forumers.

I can read the posts in the forum and almost understand the meaning by switching to english/french, but searching for a specific detail is almost impossible with the translation process. I started to read everything, but I am far from finished it and my reading doesn't create enough index in my mind :)

73's

François

Title: Re:OVI-40 UI v1.8 bricked
Post by: DF8OE on 19. January 2018, 07:36:34

Hi François,

please take a look at the new thread "how to publish informations".

vy 73
Andreas


Diskussions- und Newsboard des DARC-Ortsverbandes I40 | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.