Changeset f16b8fc3 in rtems


Ignore:
Timestamp:
06/10/22 12:00:12 (10 months ago)
Author:
Karel Gardas <karel@…>
Branches:
master
Children:
1d07dfa
Parents:
d068cdb3
git-author:
Karel Gardas <karel@…> (06/10/22 12:00:12)
git-committer:
Karel Gardas <karel@…> (02/05/23 19:42:24)
Message:

bsps/stm32h7: allow config and usage of QSPI memory on stm32h757i-eval BSP

The QSPI memory is initialized and used only when the BSP configure file
sets QSPI memory size to non-zero value. Currently QSPI is run in memory
mapped mode which allows future RTEMS binary linkage and upload into QSPI
memory.

Sponsored-By: Precidata

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/stm32h7/boards/stm/stm32h757i-eval/stm32h7-bspstarthooks.c

    rd068cdb3 rf16b8fc3  
    3636
    3737#include <string.h>
     38
     39#include <stm32h747i_eval_qspi.h>
     40static BSP_QSPI_Init_t QSPinit;
     41
     42void stm32h7_init_qspi(void)
     43{
     44#if defined(STM32H7_MEMORY_QUADSPI_SIZE) && STM32H7_MEMORY_QUADSPI_SIZE > 0
     45    /* let's initialize Quad SPI memory here for memory mapped mode */
     46    /* due to usage of static QSPinit variable please call this function
     47       after bsp_start_clear_bss call since otherwise you would hit uninitialized
     48       variable memory while accessing it and in addition the call to bsp_start_clear_bss
     49       would wipe the variable content later after its initialization here. */
     50    BSP_QSPI_Init(0, &QSPinit);
     51    BSP_QSPI_EnableMemoryMappedMode(0);
     52#endif
     53}
    3854
    3955void bsp_start_hook_0(void)
     
    7692#endif
    7793  bsp_start_clear_bss();
     94  stm32h7_init_qspi();
    7895}
  • bsps/arm/stm32h7/include/bsp.h

    rd068cdb3 rf16b8fc3  
    6363void stm32h7_init_clocks(void);
    6464void stm32h7_init_peripheral_clocks(void);
     65void stm32h7_init_qspi(void);
    6566
    6667/** @} */
  • spec/build/bsps/arm/stm32h7/bspstm32h757i-eval.yml

    rd068cdb3 rf16b8fc3  
    99enabled-by: true
    1010family: stm32h7
    11 includes: []
     11includes:
     12- bsps/arm/stm32h7/boards/stm/stm32h757i-eval
    1213install: []
    1314links:
     
    1718  uid: tststm32h757i-eval
    1819source:
     20- bsps/arm/stm32h7/boards/stm/Components/mt25tl01g/mt25tl01g.c
     21- bsps/arm/stm32h7/boards/stm/stm32h757i-eval/stm32h747i_eval_qspi.c
    1922- bsps/arm/stm32h7/boards/stm/stm32h757i-eval/stm32h7-bspstarthooks.c
    2023- bsps/arm/stm32h7/boards/stm/stm32h757i-eval/stm32h7-config-clk.c
  • spec/build/bsps/arm/stm32h7/optmemquadspisz.yml

    rd068cdb3 rf16b8fc3  
    33- get-integer: null
    44- env-assign: null
     5- define-unquoted: null
    56build-type: option
    67copyrights:
    78- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
    89default:
     10- enabled-by:
     11  - arm/stm32h757i-eval
     12  - arm/stm32h757i-eval-m4
     13  value: 0x08000000
    914- enabled-by: true
    1015  value: 0x00000000
Note: See TracChangeset for help on using the changeset viewer.