Nucleo-H743 is not working with PLL1 as clock source

General discussion on mikroBasic PRO for ARM.
Author
Message
s_sergiu
Posts: 77
Joined: 10 Jan 2012 15:09

Nucleo-H743 is not working with PLL1 as clock source

#1 Post by s_sergiu » 07 Mar 2020 14:30

Hello,

I spent lot of time to make running the Nucleo-H743 with PLL1 as clock source without success.
It is working with HSE or HSI without problems.
Even HSE or HSI are selected as clock source, once PLL1EN is ON, board stops working.
I believe something is wrong with "Edit Project" window.
I tried different clock values from 150 to 480MHZ and it does not work.
Attached is the cfg file. I had to make it zip as cfgsch is not allowed.
Any help is appreciated.

Regards,
Sergiu
Attachments
Nucleo_H743_HSE8MHZ_PLL400Mhz.zip
(1.35 KiB) Downloaded 94 times

AntiMember
Posts: 135
Joined: 02 Jan 2020 19:00

Re: Nucleo-H743 is not working with PLL1 as clock source

#2 Post by AntiMember » 08 Mar 2020 14:30

Maybe
<SETTING22>
<NAME>DIVMx and PLLs clock source selection</NAME>
<DESCRIPTION>HSE selected as PLL clock</DESCRIPTION>
</SETTING22>
<SETTING23>
<NAME>Prescaler for PLL1</NAME>
<DESCRIPTION>4</DESCRIPTION>
</SETTING23>
<SETTING24>
...........................................................................
<SETTING41>
<NAME>Multiplication factor for PLL1 VCO</NAME>
<DESCRIPTION>400</DESCRIPTION>
</SETTING41>
<SETTING42>
<NAME>PLL1 DIVP division factor</NAME>
<DESCRIPTION>2</DESCRIPTION>
</SETTING42>

s_sergiu
Posts: 77
Joined: 10 Jan 2012 15:09

Re: Nucleo-H743 is not working with PLL1 as clock source

#3 Post by s_sergiu » 09 Mar 2020 09:22

Hello AntiMember,

I changed those settings but still not working.
My point is that regardless of PLL1 source clock selection, prescaler and divisions, as long as HSE or HSI are selected as system clock the board should work but it is working only when PLL1 is OFF.
As long as PLL1 is ON even is not selected as clock source in "System clock switch" the board stops working after re-flashing.
I'm using STM32CubeMX clock configuration and there all is shown pretty clear.
I believe something is going wrong when clock configuration registers are compiled and Mikroe team should have a look.

Sergiu

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Nucleo-H743 is not working with PLL1 as clock source

#4 Post by stefan.filipovic » 09 Mar 2020 12:29

Hi Sergiu,

Please refer to this topic:
viewtopic.php?f=178&t=74731
There's an issue with the system library for the H7 series in mikroPascal and mikroBasic.
Please try with the emcl file I've posted in the forum above.

Kind regards,
Stefan Filipović

s_sergiu
Posts: 77
Joined: 10 Jan 2012 15:09

Re: Nucleo-H743 is not working with PLL1 as clock source

#5 Post by s_sergiu » 09 Mar 2020 15:05

Hello Stefan,

The lib file __Lib_System_H7xx.emcl made the difference. Now is working properly.

The only issue is that mikroProg is still giving the error "Command not supported" so it cannot be used for programming.

Thank you for your help so far.

Regards,
Sergiu

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Nucleo-H743 is not working with PLL1 as clock source

#6 Post by stefan.filipovic » 12 Mar 2020 11:10

Hi Sergiu,

Please check if the mikroProg firmware is up to date. You can do it using ST-Link Utility.

Kind regards,
Stefan Filipović

s_sergiu
Posts: 77
Joined: 10 Jan 2012 15:09

Re: Nucleo-H743 is not working with PLL1 as clock source

#7 Post by s_sergiu » 12 Mar 2020 16:54

Hello Stefan,

I'm using the integrated STLINK-V3 from NUCLEO-H743 board which updated to latest firmware version.

Regards,
Sergiu

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Nucleo-H743 is not working with PLL1 as clock source

#8 Post by stefan.filipovic » 16 Mar 2020 15:58

Hi Sergiu,

Are you using the latest version of mikroProg Suite (v1.61)?
Make sure to run mikroProg Suite using administrator privileges (right-click on the icon -> run as administrator).

I've just tested this and have not reproduced any issue.

Kind regards,
Stefan Filipović

s_sergiu
Posts: 77
Joined: 10 Jan 2012 15:09

Re: Nucleo-H743 is not working with PLL1 as clock source

#9 Post by s_sergiu » 16 Mar 2020 18:17

Hello Stefan,

I use mikroProg v1.61 in admin mode.
It is working OK with STLINK-V2 but with STLINK-V3 as it is in Nucleo-H743ZI2 is giving following errors:
"Command not supported" and "Target command error"

Regards,
Sergiu

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Nucleo-H743 is not working with PLL1 as clock source

#10 Post by stefan.filipovic » 17 Mar 2020 10:31

Hi Sergiu,

The ST-Link v3 is not supported by the mikroProg Suite.
I didn't notice this at first glance, because I've tested it with Nucleo-H743ZI, the version with ST-Link v2.
I've sent you an email with a possible workaround, so you can try it out.

Kind regards,
Stefan Filipović

RM65
Posts: 8
Joined: 03 May 2020 13:43

Re: Nucleo-H743 is not working with PLL1 as clock source

#11 Post by RM65 » 07 May 2020 14:19

Hello Stefan,
i have the same problem when trying to connect with MikroProg to a Nucleo-H743ZI (Command not supported...).
I use V1.61.
Is there any workaround?

Regards,
Ralf

s_sergiu
Posts: 77
Joined: 10 Jan 2012 15:09

Re: Nucleo-H743 is not working with PLL1 as clock source

#12 Post by s_sergiu » 08 May 2020 10:55

Hello Ralf,

The simplest work around is to use STM32 ST-Link utility. You have to manually load the hex/bin file after each compilation which is pretty annoying.
That is because The Nucleo H7 board uses ST-Link V3 programmer which is not yet supported by Mikroe.

What I finally did was to attach one external dongle which works with Mikroe mikroProg.
ProgV2.jpg
ProgV2.jpg (105.35 KiB) Viewed 3677 times
Regards,
Sergiu

RM65
Posts: 8
Joined: 03 May 2020 13:43

Re: Nucleo-H743 is not working with PLL1 as clock source

#13 Post by RM65 » 08 May 2020 11:48

Hello Sergiu,
thanks for reply.
The solution with the dongle seem to be best for me, where to get it? From ST? Can't find it.....
Regards,
Ralf

s_sergiu
Posts: 77
Joined: 10 Jan 2012 15:09

Re: Nucleo-H743 is not working with PLL1 as clock source

#14 Post by s_sergiu » 08 May 2020 13:44

You can get it from Amazon or ebay:

https://www.amazon.de/-/en/Youmile-Emul ... 735&sr=8-3

Regards,
Sergiu

RM65
Posts: 8
Joined: 03 May 2020 13:43

Re: Nucleo-H743 is not working with PLL1 as clock source

#15 Post by RM65 » 08 May 2020 15:16

Hi Sergiu,
thanks, found it. I was confused because of the ST Logo on it.....
We also have the MikroProg for STM32 Programmer/Debugger purchased from MikroE.
Does it not support the ST-Link V2? The pinning fits, only some adapter cables needed to CN5 of the Nucleo-H743....
Regards,
Ralf

Post Reply

Return to “mikroBasic PRO for ARM General”