cancel
Showing results for 
Search instead for 
Did you mean: 

Quick start STM32F7

Andrij Markovsky
Associate
Posted on November 14, 2017 at 16:49

1. I have necessity force to start STM32F7 after reset as fast as possible.

How to do it correctly using HAL or Low-layer drivers?

In 'Description of STM32F7 HAL and Low-layer drivers' I find in chapter 'FAQs'

Follow the sequence below to use the APIs provided in the HAL drivers:

1. Call HAL_Init() function to initialize the system (data cache, NVIC priority,…).

2. Initialize the system clock by calling HAL_RCC_OscConfig() followed by

HAL_RCC_ClockConfig().

3. Add HAL_IncTick() function under SysTick_Handler() ISR function to enable polling

process when using HAL_Delay() function

4. Start initializing your peripheral by calling HAL_PPP_Init().

5. Implement the hardware low level initialization (Peripheral clock, GPIO, DMA,..) by

calling HAL_PPP_MspInit() inxx_hal_msp.c

6. Start your process operation by calling IO operation functions.

As i understood after the resett, the STM32F7 series is running on HSI clock(It means 16MHz).

And runtime envioroument called on HSI frequncy.

==========

Issues.

==========

1. I have necessity force to start STM32F7 after reset as fast as possible.

How to do it correctly using HAL or Low-layer drivers?

2.I have necessity to check and initialize External SRAM and SDRAM,

before running 'C-runtime envioroument'.

Is it possible using HAL or Low-layer drivers?

For experiments I used Evaluation board with STM32F746G-EVAL2,

Firmware: J-Link ARM / Flasher ARM V4.

My best regards,

Andrij Markovsky
1 REPLY 1
Posted on November 14, 2017 at 17:57

If you don't do anything it will be running at 16 MHz (HSI) when it hits the Reset_Handler code.

It will take additional time for you to start the external oscillator, and configure/lock the PLL to higher frequencies.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..