For MIKROE Team STM32H743VI Wrong Clock Setings

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

For MIKROE Team STM32H743VI Wrong Clock Setings

#1 Post by s_sergiu » 04 Apr 2022 08:47

Hello,

I am not able, after many combinations and testings to make
the clock configuration working.
I use latest 6.2.0 version o0f MikroBasic.
I also applied the patches found in forum at MikroC Pro section:
STM32H743VI.mlk
STM32H743ZI.mlk
__Lib_GPIO_32H7xx_Defs
__Lib_System_H7xx.emcl

The board I use is one commercial autopilot, STM32H743VI with 8Mhz external crystal.
The board is working properly with other firmware (betaflight/inav)
If I use other board (Nucleo STM32H743ZI) it is working properly.
I already renamed the ZI.mlk to VI.mlk changing inside file the name as well but
one simple led blinking program still keeps the LED On all time.
I suspect that is something wrong between STM32H743VI.mlk and MikroBasic .
Clock configuration file is the same I use for Nucleo, with crystal value adjusted accordingly (from 25 to 8Mhz)
Below is the program I used for test:

program MyProject

' Declarations section
Dim Led_Green as sbit at GPIOE_ODR.B4
main:
' Main program
GPIO_Digital_Output(@GPIOE_BASE, _GPIO_PINMASK_4)

Led_Green = 1
Delay_ms(500)
Led_Green = 0
end.

Any help is much appreciated.
Thank you,
Sergiu

Post Reply

Return to “mikroBasic PRO for ARM General”