Diskussions- und Newsboard des DARC-Ortsverbandes I40
allgemeine Kategorie => OVI40 SDR Projekt (English AND German discussions around OVI40 SDR project) => Message started by: LY1AGU on 08. February 2020, 14:21:18

Title: Problems UI with F7/H7
Post by: LY1AGU on 08. February 2020, 14:21:18

It's time to ask for help.
Assembled 2 pieces OVI_UI_V1.8.

Processor STM32H743ZIT6V; Ser.7B658VQ,.
DFU / P6 - PC can't see.
I programmed with ST-Link V2.
Bootloader uhsdr / bootloader-latest / OVI40 / H7 2019-01-23 0x08000000
Firmware OVI40 / H7 2019-12-24 0x08010000
Programming and verification passes normally.
Verify file alignment with programmed data matches.
Power 3.3V is available.
Reset (25 foot) C94 with 57KOhm works - rises to 1.9V.
The IC5 (ASTX-H11) 3-pin provides a 16MHz signal with a 1.7V amplitude.
But that's it.
White screen, CPU I / O not enabled.
I feel like the program does not start.
Maybe Option bytes or MCU Core something not right?

Title: Re:Baubericht: UI mit 480MHz STM32H743ZIT6U
Post by: LY1AGU on 08. February 2020, 14:23:32

and MCU Core

Title: Re:Baubericht: UI mit 480MHz STM32H743ZIT6U
Post by: DO9AH on 08. February 2020, 16:06:56

In einem früherem Post gab es diese Erkenntnis:

0x08060000 ist für die Firmware beim H7(!!) korrekt...

Title: Re:Baubericht: UI mit 480MHz STM32H743ZIT6U
Post by: LY1AGU on 08. February 2020, 16:48:18

Thank you Andreas,

I tried to write firmware in H7 from address 0x08060000.
Didn't help.
White screen, no reaction.

What amazes me is that even after performing the Erase Chip procedure, I / O remains undefined, i.e. 0. The same remains the same when Bootloader and Firmware are programmed.
For example, the PG2 should be at High Level (to read a push of a button). And with me practically 0.

I think the processors are defective, but ST-Link gets along normally.

Title: Re:Baubericht: UI mit 480MHz STM32H743ZIT6U
Post by: DF8OE on 08. February 2020, 16:59:14

I do not think MCUs are defective. It has often occured at F7 / H7 that option bytes are scrambled by chance. A clear sign to this is that P6 will not lead to a dfu device that is shown by operating systems. But I do not have correct settings here at the moment. Do not desolder them - I am nearly sure only option bytes are scrambled.

You have to do a "mass erase" and then set them to the right values...

vy 73
Andreas

Title: Re:Baubericht: UI mit 480MHz STM32H743ZIT6U
Post by: LY1AGU on 08. February 2020, 17:34:26

Thanks Andreas (DO9AH)
Thank you Andre (DF8OE),
You have shown me the right way.
Now the UI starts.;D
There were two problems:
1) I missed the information that the firmware in H7 from address 0x08060000. Andre (DO9AH) showed my mistake. But it didn't help;
2) Andreas (DF8OE) advised not to touch the processor and look closely at Option Bytes.
And sure. Boot_From (H) was 0x00800000. And it should be 0x08000000.
After the change everything started.
The truth remains unclear what should be written in BOOT_ADD1 (H).
But still thank you very much.

Thomas, I'm obviously not an expert, but with the quartz not working in RTC, I think the processor won't communicate with the ST-Link Utility either.

Title: Re:Baubericht: UI mit 480MHz STM32H743ZIT6U
Post by: LY1AGU on 08. February 2020, 19:10:41

Thank you, I understood. I didn't know.
What about: what should be written in BOOT_ADD1 (H).

Title: Re:Baubericht: UI mit 480MHz STM32H743ZIT6U
Post by: SP9BSL on 08. February 2020, 21:26:09

For H7 bootloader the start address (BOOT_ADD0) is :

Code:
rom (rx) : ORIGIN = 0x08000000, LENGTH = 32k


the application code start is:

Code:
rom (rx) : ORIGIN = 0x08060000, LENGTH = 2048k - 384k


We do not use the BOOT_ADD1 feature so you may write there what you want. I would recommend same as BOOT_ADD0 (H).

The STLink will communicate with STM (any) without RTC crystal, the firmware will not start if waiting for RTC peripherial to initialize, I'm not sure how it works in our F7/H7 firmware when there is no such crystal.

Title: Re:Problems UI with F7/H7
Post by: LY1AGU on 09. February 2020, 13:01:13

Now everything is in order. I think others will be clearer.
Men, your support is above any praise.
Thank you.

Title: Re:Problems UI with F7/H7
Post by: Werner on 09. February 2020, 17:56:26

Hallo Andreas,Thomas und Slawek,

dank Eurer Hilfe konnte heute auch mein UI-Board vom " Sparrow " die ersten Schritte machen !!!

Die bl und fw habe ich nach meinem Wissen auf die Adr. 0x08000000 und 0x08010000 mit dem " ST-Link V2 "
und den bin Dateien ohne Fehlermeldung übertragen.
Alles ohne Erfolg,das 4" Display von Artur zeigte nur einen hellen Hintergrund !
Ihr habt mich mit Eurem Beitrag erst darauf gebracht,ich habe bl u.fw nochmal kpl. gelöscht, den bl auf die alte adr und die fw auf die "0x08060000 übertragen.

Mein Sparrow UI Board Aufbau und Test durch das Forum wurden nun zum Erfolg !

Dank Eurer Hilfe !!! Denn ich hatte schon einen Tag um dem RTC -Quarz gesucht.
ich kann nur sagen, "ich liebe dieses Forum " !!!

vy73
Werner




Title: Re:Problems UI with F7/H7
Post by: DB4PLE on 09. February 2020, 19:10:43

Hallo,

für alle die mitlesen und noch vor der Inbetriebnahme stehen:

Die sinnvolle Reihenfolge bei der ersten Installation eines UI Boards ist:
- Bootloader via ST-Link installieren oder per DFU Mode.
- jetzt testen, ob das Display funktioniert (dazu Power+Band Plus oder Band Minus drücken beim Starten)
- dann Firmware via Bootloader aufspielen, der stellt sicher, das die richtige Datei an die richtige Stelle geflasht wird.

Der Bootloader braucht auch den 32.768 khz Quartz nicht, auch nicht bei den F7/H7 Boards.
Das direkte Aufspielen per ST-Link von Bin-Files sollte Ausnahmefällen vorbehalten sein.

73
Danilo

Title: Re:Problems UI with F7/H7
Post by: peter_77 on 09. February 2020, 19:29:54

Danilo is right here. There is even no need for an ST-Link it can too easily be done with the standard DFuse tool.

Btw. in the early beginings of UI I40 board i kind of bricked my STM MCU as well when flashing the first beta style bootloaders.
All the predefined register settings were somehow messed up and that issue of course needs an ST Link cable to fix. But only that case.
You can read the whole story and the fixing process here:
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)

Somewhere Andreas, DF8OE provided the correct register settings to restore normal operation but i cannot find the link to this thread anymore... :-\

Title: Re:Problems UI with F7/H7
Post by: DF8OE on 10. February 2020, 15:23:09

Hi Peter,

do you mean this (https://www.amateurfunk-sulingen.de/forum/index.php?board=15;action=display;threadid=577;start=msg13238#msg13238)?

vy 73
Andreas

Title: Re:Problems UI with F7/H7
Post by: Macsim Gheorghe on 05. March 2020, 12:41:03

Hello
I recently purchased a Sparrow pcb set and stuck the stm32h743zit processor. I stuck the codecs, the eeprom, the oscillators - including the 32,768 Khz. I got the butloader, then at location 0x08060000 I wrote the software, but when starting it is locked, I did not know how to proceed. It remains only for the welcome message. Where did I go wrong, what should I do? Because it crashes on startup, I can't customize the software with the help of the butloader but with the st-link. I loaded correctly for the H7, but it stops at startup and only the welcome message and the red LED remain.

Title: Re:Problems UI with F7/H7
Post by: Macsim Gheorghe on 05. March 2020, 13:11:07

The firmware got it correctly but only through ST-link. That's how it stays, the bees stop it again.

Title: Re:Problems UI with F7/H7
Post by: peter_77 on 08. March 2020, 10:37:38

Thats NOT normal. As you can read a page before in this thread. There is NO need for the ST-Link at all ! It all can be done with just the DFuse tool !
Make the P6 bridge, bring the board into DFU mode and flash the right bootloader. Bootloder files as well as firmware files are different for F7 or H7 CPUs ! Check the bootloader message if you like and after that flash the right firmware with the DFuse tool. Thats it !
Procedures can be seen here:
https://www.amateurfunk-sulingen.de/forum/index.php?board=15;action=display;threadid=551;start=75 (https://www.amateurfunk-sulingen.de/forum/index.php?board=15;action=display;threadid=551;start=75)
https://www.amateurfunk-sulingen.de/forum/index.php?board=18;action=display;threadid=1055;start=0 (https://www.amateurfunk-sulingen.de/forum/index.php?board=18;action=display;threadid=1055;start=0)

The ST-Link tool is only needed if you (or testing) messed up the CPU registers. This can usually be seen when the board did not go into DFU mode anymore even with the bridge set on the UI.
In that case you need to restore the registers (Andreas posted them the page before) to bring the board back into DFU mode.
Then repeat the whole above procedure with the DFuse tool to flash bootloader and firmware.


Title: Re:Problems UI with F7/H7
Post by: Macsim Gheorghe on 09. March 2020, 20:43:54

Hello!
I have done everything you advised me to, but the same thing keeps happening - the welcome message lights up, it stays like that, the LED is on, red. I have checked that everything works fine, but it doesn't go past the welcome message.

Title: Re:Problems UI with F7/H7
Post by: Macsim Gheorghe on 09. March 2020, 20:54:52

Here's what it displays. Remains with this message and the red LED.

Title: Re:Problems UI with F7/H7
Post by: SP3OSJ on 14. July 2020, 19:29:43

Hi


All s OK
I also have this problem. You need to load the bootloader and firmware again.

73
Artur

Title: Re:Problems UI with F7/H7
Post by: yeson on 25. August 2022, 07:40:19

I have the same Problem But fw write to 0x08060000. But MCU cannot run.Have not display with white screen.
https://www.amateurfunk-sulingen.de/forum/index.php?board=18;action=display;threadid=1865;start=0


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