logo
Welcome, Guest. Please Login or Register.
23. April 2024, 22:00:21


Home Help Search Login RegisterWIKIUHSDR Download

Amateurfunk Sulingen
Diskussions- und Newsboard des DARC-Ortsverbandes I40  |  allgemeine Kategorie  |  UHSDR Firmware (Moderators: DF8OE, DL1PQ)  |  Topic: option bytes 32H7 <- zurück vorwärts ->
Pages: [1] 2 Go Down Print
   Author  Topic: option bytes 32H7  (Read 3812 times)
Co
schon länger dabei
**

Offline

Posts: 79



Ich liebe dieses Forum!

View Profile
option bytes 32H7
« on: 04. March 2019, 14:12:47 »

Hi,

Just finalized a UI board with an H7 processor. Loaded bootloader and FW with ST-LINK, both loaded and verified OK. However no succesful boot. I suspect option bytes  are not correctly set and also deviating from F7 in setting or identification. I searched the forum but did not find anything apart from the option byte  settings for the F7.
Would appreciate some help on the correct settings for the H7.

Kind regards

Co
Logged
DB4PLE
positron
Urgestein
*****

Offline

Posts: 1278





View Profile
Re:option bytes 32H7
« Reply #1 on: 04. March 2019, 14:53:46 »

Hi,

the options bytes have to/should be at their default values.

A cheap ST-LINK V2 clone and "Chip Erase" in STM32 Link utitily should get everything reset and ready to work.It would you also tell that the CPU is working at least to a minimal degree.
For the ST-LINK to work you just have to have power applied and to connect PA13/PA14 correctly via the P8 debug header with the ST-LINK USB dongle (and GND, of course).

73
Danilo


Logged
Co
schon länger dabei
**

Offline

Posts: 79



Ich liebe dieses Forum!

View Profile
Re:option bytes 32H7
« Reply #2 on: 04. March 2019, 18:01:44 »

Hi,
Tnx for your answer. As I already said I used STLink to load  the H7 with bootloader and firmware, latest version. Both loaded and verified succesfully! Nevertheless  the chip does not boot. So I wondered wether the option bytes are correct. E.g BOR level in the F7 should be 3. In the H7 it is 0.

regards

Co 
Logged
DF8OE
Administrator
*****

Offline

Posts: 6268



Stellvertr. OVV I40, Jugend / Nachwuchsreferent

View Profile WWW
Re:option bytes 32H7
« Reply #3 on: 04. March 2019, 18:12:59 »

I am not sure (it is long time ago) but as I remeber a full erase does *not* reset the option bytes - they leave as they are...

vy 73
Andreas
Logged

Wenn der Wind des Wandels weht, nageln die einen Fenster und Türen zu und verbarrikadieren sich. Die anderen gehen nach draußen und bauen Windmühlen...
qrz.com-Seite von DF8OE
-----------------------------------------------------
>>>> Die Inhalte meiner Beiträge dürfen ohne meine explizite Erlaubnis in jedwedem Medium weiterverbreitet werden! <<<<
Co
schon länger dabei
**

Offline

Posts: 79



Ich liebe dieses Forum!

View Profile
Re:option bytes 32H7
« Reply #4 on: 04. March 2019, 19:27:54 »

Hello Thomas,

Thank you. Will try them out. Settings overhere are completely different. Surprised all checkboxes are empty. Will let you know the outcome.

regards

Co

Logged
DF8OE
Administrator
*****

Offline

Posts: 6268



Stellvertr. OVV I40, Jugend / Nachwuchsreferent

View Profile WWW
Re:option bytes 32H7
« Reply #5 on: 05. March 2019, 05:04:57 »

@DL8EBD

Posting it for a "limited time" will prevent that others who do have the same problem can participate. What for hell can be the reason to act like this?


EDIT:
I have checked my H7 option bytes settings via CLI after I recognized strange "write protected" regions of the two pictures.

My settings are different from those of DL8EBD and I think my readout is a cleaner H7:

Read Out Protectio: Level 0
BOR-Level: Level 0

DMEP1, DMEP2 and SWAP_BANK unchecked, all others checked

BOOT_ADD0(H): 0x0800
Boot from (H): 0x8000000
BOOT_ADD1(H): 0x1FF0
Boot from (H): 1FF00000

Nothing write or read protected, no other markers set!

I think your reset vectors are scrambled so your MCU does not jump to start of bootloader... Bootloader starts at 0x8000000 so this should be the correct setting.

vy 73
Andreas
« Last Edit: 05. March 2019, 06:09:08 by DF8OE » Logged

Wenn der Wind des Wandels weht, nageln die einen Fenster und Türen zu und verbarrikadieren sich. Die anderen gehen nach draußen und bauen Windmühlen...
qrz.com-Seite von DF8OE
-----------------------------------------------------
>>>> Die Inhalte meiner Beiträge dürfen ohne meine explizite Erlaubnis in jedwedem Medium weiterverbreitet werden! <<<<
DF8OE
Administrator
*****

Offline

Posts: 6268



Stellvertr. OVV I40, Jugend / Nachwuchsreferent

View Profile WWW
Re:option bytes 32H7
« Reply #6 on: 05. March 2019, 07:32:46 »

Hi Thomas,

there is more than one explanation for your readouts:

1) of course it can be readout errors. This is a question to Danilo: If flash sectors are write protected: would USB stick update work in spite of this? If not, you do have readout errors.
2) you have a scrambled H7 which by chance is working. Your reset vector is pointing to "nowhere land" before start of bootloader code. If there is nothing which prevents address pointer from increasing it will reach bootloader at some time. There are a few other "ifs" - but it can be that bootloader is started correctly in spite of wrong reset vector.

vy 73
Andreas
Logged

Wenn der Wind des Wandels weht, nageln die einen Fenster und Türen zu und verbarrikadieren sich. Die anderen gehen nach draußen und bauen Windmühlen...
qrz.com-Seite von DF8OE
-----------------------------------------------------
>>>> Die Inhalte meiner Beiträge dürfen ohne meine explizite Erlaubnis in jedwedem Medium weiterverbreitet werden! <<<<
Co
schon länger dabei
**

Offline

Posts: 79



Ich liebe dieses Forum!

View Profile
Re:option bytes 32H7
« Reply #7 on: 05. March 2019, 10:07:59 »

Hello Andreas,

Thank you for your response. The option byte settings you specify are equal to my H7.
I notice the following :
-After loading the bootloader with STLINK  the screenbacklight starts flashing a rate of approx. 3 Hz. RED LED stays off. Looks like its looping .
-Thereafter loading FW is succesful according to STLINK But (not surprising) not running.
- A full erase of the chip does not change the option bytes. 

regards

Co

Logged
Co
schon länger dabei
**

Offline

Posts: 79



Ich liebe dieses Forum!

View Profile
Re:option bytes 32H7
« Reply #8 on: 05. March 2019, 11:19:06 »

Hello Thomas,

Yes, I downloaded the H7 BL and FW. To avoid possible errors I downloaded again to no avail.

Co
Logged
DF8OE
Administrator
*****

Offline

Posts: 6268



Stellvertr. OVV I40, Jugend / Nachwuchsreferent

View Profile WWW
Re:option bytes 32H7
« Reply #9 on: 05. March 2019, 15:45:56 »

Hallo Thomas,

natürlich - das wäre eine echte Falle. Ich meinte das nur für den Fall dass die Daten stimmen. Falsche Daten müssen nicht unbedingt überleben  ...

vy 73
Andreas
Logged

Wenn der Wind des Wandels weht, nageln die einen Fenster und Türen zu und verbarrikadieren sich. Die anderen gehen nach draußen und bauen Windmühlen...
qrz.com-Seite von DF8OE
-----------------------------------------------------
>>>> Die Inhalte meiner Beiträge dürfen ohne meine explizite Erlaubnis in jedwedem Medium weiterverbreitet werden! <<<<
Co
schon länger dabei
**

Offline

Posts: 79



Ich liebe dieses Forum!

View Profile
Re:option bytes 32H7
« Reply #10 on: 05. March 2019, 16:08:39 »

Hi,

I notice another difference with Thomas' screencopy :

I am using STLINK V4.1.0.0 . Over the IWDG box there is another box called 'SECURITY' which I do not see in Thomas' box !.
It is unchecked. If  I check the IWDG box and leave option menu with 'apply' then immediately therafter return to the option menu, the box is unchecked.
Does IWDG stand for the 'watchdog' function ? causing the chip to refresh every somany millisecs and thus looping.

regards

Co
Logged
peter_77
Urgestein
*****

Offline

Posts: 735



THE mcHF and UHSDR forum !

View Profile
Re:option bytes 32H7
« Reply #11 on: 07. March 2019, 09:14:24 »

You'll find a correct procedure to restore the option bytes here too:
https://www.amateurfunk-sulingen.de/forum/index.php?board=15;action=display;threadid=577;start=315
Logged
Co
schon länger dabei
**

Offline

Posts: 79



Ich liebe dieses Forum!

View Profile
Re:option bytes 32H7
« Reply #12 on: 07. March 2019, 10:22:06 »

Hello all,

Ihave upgraded ST-LINK to V1.4.4 . So can read and set the option byte as required. No change. Can load bootloader and firmware , all verifies ok.  After loading the bootloader the LCD flashed the backlight twice , every second. No red led. Looks like the BL  is looping. Have checked several times for solder bridges, but all seems ok.

regards
Co
Logged
Co
schon länger dabei
**

Offline

Posts: 79



Ich liebe dieses Forum!

View Profile
Re:option bytes 32H7
« Reply #13 on: 07. March 2019, 14:41:40 »

Hi Thomas,

I checked with a scope and  both clocks are running ok. Comparing to a 'running-ok'  F7 board the signal produced by the H7 board 32 kc oscillator is much stronger. Can not explain but I gues probably of no importance.

Co
Logged
DF8OE
Administrator
*****

Offline

Posts: 6268



Stellvertr. OVV I40, Jugend / Nachwuchsreferent

View Profile WWW
Re:option bytes 32H7
« Reply #14 on: 07. March 2019, 14:44:57 »

What happens if you press&hold BANDM and power on rig?

vy 73
Andreas
Logged

Wenn der Wind des Wandels weht, nageln die einen Fenster und Türen zu und verbarrikadieren sich. Die anderen gehen nach draußen und bauen Windmühlen...
qrz.com-Seite von DF8OE
-----------------------------------------------------
>>>> Die Inhalte meiner Beiträge dürfen ohne meine explizite Erlaubnis in jedwedem Medium weiterverbreitet werden! <<<<
Pages: [1] 2 Go Up Print 
Diskussions- und Newsboard des DARC-Ortsverbandes I40  |  allgemeine Kategorie  |  UHSDR Firmware (Moderators: DF8OE, DL1PQ)  |  Topic: option bytes 32H7 <- zurück vorwärts ->
Jump to: 


Login with username, password and session length

 Es wird die Verwendung von Browsern die auf der "Blink"-Engine basieren und mindestens
1024x768 Pixel Bildschirmauflösung für die beste Darstellung empfohlen
 
Amateurfunk Die Beiträge sind, sofern nicht anders vermerkt, unter der folgenden Lizenz veröffentlicht:
GNU Free Documentation License 1.3 GNU Free Documentation License 1.3
verbindet!
Powered by MySQL Powered by PHP Diskussions- und Newsboard des DARC-Ortsverbandes I40 | Powered by YaBB SE
© 2001-2004, YaBB SE Dev Team. All Rights Reserved.
- modified by Andreas Richter (DF8OE)
Impressum & Disclaimer
Valid XHTML 1.0! Valid CSS!