STM32H750VB clock settings

General discussion on mikroBasic PRO for ARM.
Post Reply
Author
Message
sams_n
Posts: 7
Joined: 30 Apr 2023 15:38

STM32H750VB clock settings

#1 Post by sams_n » 03 Jul 2023 17:07

Hello MikroE Team,

since one week I try to run my STM32H750VB at 400 or 480MHz with Mikrobasic.
I really read all the information in the forum , and tested the different available patches.
I can not find a way for the appropriate settings.
Please give us suitable pach-files to make the clock settings in Mikrobasic for 480MHz.
We need the batch files __Lib_System_H7xx.emcl and STM32H750VB.mlk suitable for microbasic.
With the currently available files it does not work.
Maybe it works with the STM32H743 ,i can not test it , but with the STM32H750VB it does not work.

All the infos in this threads i tested many times , no luck.
viewtopic.php?f=178&t=74731&hilit=stm32H7xx&start=15
viewtopic.php?f=178&t=74731&sid=dfa7bb7 ... 9&start=15
viewtopic.php?f=224&t=74695
https://libstock.mikroe.com/projects/vi ... 32-rtc-dma

Thank you very much for your support.

Best regards Gerhard

sams_n
Posts: 7
Joined: 30 Apr 2023 15:38

Re: STM32H750VB clock settings

#2 Post by sams_n » 04 Jul 2023 09:38

Hi,

here is a small program example to show the problem.
The sine of an angle is calculated.
The calculation in the For...Next loop takes 350 ticks and is called 1142857 times.
This takes 1 second, then the LED is switched.
When I test this with a STM32F411 at 100MHz, everything fits exactly.
Unfortunately, I can't find a way to set the clock to 400MHz or 480MHz on an STM32H750.
The best possible configuration runs about 4 times too slow on the STM32H750VB.
Please help me with the correct files
__Lib_System_H7xx.emcl
STM32H750VB.mlk
and the schemes

to set the clock of the STM32H750VB to 400 or 480 MHz in MikroBasic.

Code: Select all

program calc_speedtest
 dim i as longword
 dim qqq as float
main:
 GPIO_Digital_Output(@GPIOE_BASE, _GPIO_PINMASK_3)
while(TRUE)
 for i = 1 to 1142857                'takes 1 second
  qqq = sin(5)
 next i
 GPIOE_ODR.B3 = not GPIOE_ODR.B3     'toggle onBoardLED
wend
end.

Post Reply

Return to “mikroBasic PRO for ARM General”