From b92ae53e610992eb2e5acaf95260adac01fd2229 Mon Sep 17 00:00:00 2001 From: umtkyck Date: Mon, 3 Jun 2024 12:53:40 +0300 Subject: [PATCH 01/15] STM32H7B0VBTX board variant added to the boards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I added this variant and tested everyhing works like expected for STM32H7B0VBT. I tested specificly for STM32H7B0VBT in my project but I added the other boards like in Add a new vatiant wiki. Please update the wiki the memory part should not updated like in wiki otherwise it is not working because of cortex m7 it need partial memories. --- README.md | 2 + boards.txt | 56 ++++++ .../generic_clock.c | 56 +++++- .../ldscript.ld | 175 ++++++++++++++++++ 4 files changed, 287 insertions(+), 2 deletions(-) create mode 100644 variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld diff --git a/README.md b/README.md index e2ffa20280..95ebfa6dd9 100644 --- a/README.md +++ b/README.md @@ -583,6 +583,8 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d | :green_heart: | STM32H757AI | Generic Board | *2.0.0* | | | :green_heart: | STM32H757II | Generic Board | *2.0.0* | | | :green_heart: | STM32H757XI | Generic Board | *2.7.0* | | +| :yellow_heart: | STM32H7B0VBTX | Generic Board | *2.7.0* | | +| :yellow_heart: | STM32H7B0VBTX | Generic Board | *2.7.0* | | ### Generic STM32L0 boards diff --git a/boards.txt b/boards.txt index 2f3e214836..41026d937d 100644 --- a/boards.txt +++ b/boards.txt @@ -7967,6 +7967,62 @@ GenH7.menu.pnum.GENERIC_H757XIHX.build.board=GENERIC_H757XIHX GenH7.menu.pnum.GENERIC_H757XIHX.build.product_line=STM32H757xx GenH7.menu.pnum.GENERIC_H757XIHX.build.variant=STM32H7xx/H742X(G-I)H_H743X(G-I)H_H745X(G-I)H_H747X(G-I)H_H750XBH_H753XIH_H755XIH_H757XIH +# Generic H7A3VGHx +GenH7.menu.pnum.GENERIC_H7A3VGHX=Generic H7A3VGHx +GenH7.menu.pnum.GENERIC_H7A3VGHX.upload.maximum_size=1048576 +GenH7.menu.pnum.GENERIC_H7A3VGHX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7A3VGHX.build.board=GENERIC_H7A3VGHX +GenH7.menu.pnum.GENERIC_H7A3VGHX.build.product_line=STM32H7A3xx +GenH7.menu.pnum.GENERIC_H7A3VGHX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T) + +# Generic H7A3VIHx +GenH7.menu.pnum.GENERIC_H7A3VIHX=Generic H7A3VIHx +GenH7.menu.pnum.GENERIC_H7A3VIHX.upload.maximum_size=2097152 +GenH7.menu.pnum.GENERIC_H7A3VIHX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7A3VIHX.build.board=GENERIC_H7A3VIHX +GenH7.menu.pnum.GENERIC_H7A3VIHX.build.product_line=STM32H7A3xx +GenH7.menu.pnum.GENERIC_H7A3VIHX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T) + +# Generic H7A3VGTx +GenH7.menu.pnum.GENERIC_H7A3VGTX=Generic H7A3VGTx +GenH7.menu.pnum.GENERIC_H7A3VGTX.upload.maximum_size=1048576 +GenH7.menu.pnum.GENERIC_H7A3VGTX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7A3VGTX.build.board=GENERIC_H7A3VGTX +GenH7.menu.pnum.GENERIC_H7A3VGTX.build.product_line=STM32H7A3xx +GenH7.menu.pnum.GENERIC_H7A3VGTX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T) + +# Generic H7A3VITx +GenH7.menu.pnum.GENERIC_H7A3VITX=Generic H7A3VITx +GenH7.menu.pnum.GENERIC_H7A3VITX.upload.maximum_size=2097152 +GenH7.menu.pnum.GENERIC_H7A3VITX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7A3VITX.build.board=GENERIC_H7A3VITX +GenH7.menu.pnum.GENERIC_H7A3VITX.build.product_line=STM32H7A3xx +GenH7.menu.pnum.GENERIC_H7A3VITX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T) + +# Generic H7B0VBTx +GenH7.menu.pnum.GENERIC_H7B0VBTX=Generic H7B0VBTx +GenH7.menu.pnum.GENERIC_H7B0VBTX.upload.maximum_size=131072 +GenH7.menu.pnum.GENERIC_H7B0VBTX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7B0VBTX.build.board=GENERIC_H7B0VBTX +GenH7.menu.pnum.GENERIC_H7B0VBTX.build.product_line=STM32H7B0xx +GenH7.menu.pnum.GENERIC_H7B0VBTX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T) + +# Generic H7B3VIHx +GenH7.menu.pnum.GENERIC_H7B3VIHX=Generic H7B3VIHx +GenH7.menu.pnum.GENERIC_H7B3VIHX.upload.maximum_size=2097152 +GenH7.menu.pnum.GENERIC_H7B3VIHX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7B3VIHX.build.board=GENERIC_H7B3VIHX +GenH7.menu.pnum.GENERIC_H7B3VIHX.build.product_line=STM32H7B3xx +GenH7.menu.pnum.GENERIC_H7B3VIHX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T) + +# Generic H7B3VITx +GenH7.menu.pnum.GENERIC_H7B3VITX=Generic H7B3VITx +GenH7.menu.pnum.GENERIC_H7B3VITX.upload.maximum_size=2097152 +GenH7.menu.pnum.GENERIC_H7B3VITX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7B3VITX.build.board=GENERIC_H7B3VITX +GenH7.menu.pnum.GENERIC_H7B3VITX.build.product_line=STM32H7B3xx +GenH7.menu.pnum.GENERIC_H7B3VITX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T) + # Upload menu GenH7.menu.upload_method.swdMethod=STM32CubeProgrammer (SWD) GenH7.menu.upload_method.swdMethod.upload.protocol=0 diff --git a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c index 677df04f74..08b22f7392 100644 --- a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c +++ b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c @@ -23,8 +23,60 @@ */ WEAK void SystemClock_Config(void) { - /* SystemClock_Config can be generated by STM32CubeMX */ -#warning "SystemClock_Config() is empty. Default clock at reset is used." + RCC_OscInitTypeDef RCC_OscInitStruct = {}; + RCC_ClkInitTypeDef RCC_ClkInitStruct = {}; + + /*AXI clock gating */ + RCC->CKGAENR = 0xFFFFFFFF; + + /** Supply configuration update enable + */ + HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY); + + /** Configure the main internal regulator output voltage + */ + __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE0); + + while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {} + + /** Initializes the RCC Oscillators according to the specified parameters + * in the RCC_OscInitTypeDef structure. + */ + RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI; + RCC_OscInitStruct.HSIState = RCC_HSI_DIV1; + RCC_OscInitStruct.HSICalibrationValue = 64; + RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; + RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI; + RCC_OscInitStruct.PLL.PLLM = 4; + RCC_OscInitStruct.PLL.PLLN = 12; + RCC_OscInitStruct.PLL.PLLP = 2; + RCC_OscInitStruct.PLL.PLLQ = 2; + RCC_OscInitStruct.PLL.PLLR = 2; + RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_3; + RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE; + RCC_OscInitStruct.PLL.PLLFRACN = 4096; + if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) + { + Error_Handler(); + } + + /** Initializes the CPU, AHB and APB buses clocks + */ + RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK + |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2 + |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1; + RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; + RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1; + RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV1; + RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2; + RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2; + RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2; + RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2; + + if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) + { + Error_Handler(); + } } #endif /* ARDUINO_GENERIC_* */ diff --git a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld new file mode 100644 index 0000000000..4ca68607a9 --- /dev/null +++ b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld @@ -0,0 +1,175 @@ +/* +****************************************************************************** +** +** File : LinkerScript.ld +** +** Author : STM32CubeIDE +** +** Abstract : Linker script for STM32H7 series +** 128Kbytes FLASH and 1376Kbytes RAM +** +** Set heap size, stack size and stack location according +** to application requirements. +** +** Set memory bank area and size if external memory is used. +** +** Target : STMicroelectronics STM32 +** +** Distribution: The file is distributed as is, without any warranty +** of any kind. +** +***************************************************************************** +** @attention +** +** Copyright (c) 2023 STMicroelectronics. +** All rights reserved. +** +** This software is licensed under terms that can be found in the LICENSE file +** in the root directory of this software component. +** If no LICENSE file comes with this software, it is provided AS-IS. +** +**************************************************************************** +*/ + +/* Entry Point */ +ENTRY(Reset_Handler) + +/* Highest address of the user mode stack */ +_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of RAM */ +/* Generate a link error if heap and stack don't fit into RAM */ +_Min_Heap_Size = 0x200; /* required amount of heap */ +_Min_Stack_Size = 0x400; /* required amount of stack */ + +/* Specify the memory areas */ +MEMORY +{ + ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K + FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 128K + DTCMRAM1 (xrw) : ORIGIN = 0x20000000, LENGTH = 64K + DTCMRAM2 (xrw) : ORIGIN = 0x20010000, LENGTH = 64K + RAM (xrw) : ORIGIN = 0x24000000, LENGTH = 1024K + RAM_CD (xrw) : ORIGIN = 0x30000000, LENGTH = 128K + RAM_SRD (xrw) : ORIGIN = 0x38000000, LENGTH = 32K +} + +/* Define output sections */ +SECTIONS +{ + /* The startup code goes first into FLASH */ + .isr_vector : + { + . = ALIGN(4); + KEEP(*(.isr_vector)) /* Startup code */ + . = ALIGN(4); + } >FLASH + + /* The program code and other data goes into FLASH */ + .text : + { + . = ALIGN(4); + *(.text) /* .text sections (code) */ + *(.text*) /* .text* sections (code) */ + *(.glue_7) /* glue arm to thumb code */ + *(.glue_7t) /* glue thumb to arm code */ + *(.eh_frame) + + KEEP (*(.init)) + KEEP (*(.fini)) + + . = ALIGN(4); + _etext = .; /* define a global symbols at end of code */ + } >FLASH + + /* Constant data goes into FLASH */ + .rodata : + { + . = ALIGN(4); + *(.rodata) /* .rodata sections (constants, strings, etc.) */ + *(.rodata*) /* .rodata* sections (constants, strings, etc.) */ + . = ALIGN(4); + } >FLASH + + .ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH + .ARM : { + __exidx_start = .; + *(.ARM.exidx*) + __exidx_end = .; + } >FLASH + + .preinit_array : + { + PROVIDE_HIDDEN (__preinit_array_start = .); + KEEP (*(.preinit_array*)) + PROVIDE_HIDDEN (__preinit_array_end = .); + } >FLASH + + .init_array : + { + PROVIDE_HIDDEN (__init_array_start = .); + KEEP (*(SORT(.init_array.*))) + KEEP (*(.init_array*)) + PROVIDE_HIDDEN (__init_array_end = .); + } >FLASH + + .fini_array : + { + PROVIDE_HIDDEN (__fini_array_start = .); + KEEP (*(SORT(.fini_array.*))) + KEEP (*(.fini_array*)) + PROVIDE_HIDDEN (__fini_array_end = .); + } >FLASH + + /* used by the startup to initialize data */ + _sidata = LOADADDR(.data); + + /* Initialized data sections goes into RAM, load LMA copy after code */ + .data : + { + . = ALIGN(4); + _sdata = .; /* create a global symbol at data start */ + *(.data) /* .data sections */ + *(.data*) /* .data* sections */ + *(.RamFunc) /* .RamFunc sections */ + *(.RamFunc*) /* .RamFunc* sections */ + + . = ALIGN(4); + _edata = .; /* define a global symbol at data end */ + } >RAM AT> FLASH + + /* Uninitialized data section */ + . = ALIGN(4); + .bss : + { + /* This is used by the startup in order to initialize the .bss section */ + _sbss = .; /* define a global symbol at bss start */ + __bss_start__ = _sbss; + *(.bss) + *(.bss*) + *(COMMON) + + . = ALIGN(4); + _ebss = .; /* define a global symbol at bss end */ + __bss_end__ = _ebss; + } >RAM + + /* User_heap_stack section, used to check that there is enough RAM left */ + ._user_heap_stack : + { + . = ALIGN(8); + PROVIDE ( end = . ); + PROVIDE ( _end = . ); + . = . + _Min_Heap_Size; + . = . + _Min_Stack_Size; + . = ALIGN(8); + } >RAM + + /* Remove information from the standard libraries */ + /DISCARD/ : + { + libc.a ( * ) + libm.a ( * ) + libgcc.a ( * ) + } + + .ARM.attributes 0 : { *(.ARM.attributes) } +} From cc8f5e5cd75c89a217b3158040935583b431b438 Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:33:10 +0300 Subject: [PATCH 02/15] Update README.md Co-authored-by: Frederic Pillon Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 95ebfa6dd9..065ac5818e 100644 --- a/README.md +++ b/README.md @@ -583,8 +583,10 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d | :green_heart: | STM32H757AI | Generic Board | *2.0.0* | | | :green_heart: | STM32H757II | Generic Board | *2.0.0* | | | :green_heart: | STM32H757XI | Generic Board | *2.7.0* | | -| :yellow_heart: | STM32H7B0VBTX | Generic Board | *2.7.0* | | -| :yellow_heart: | STM32H7B0VBTX | Generic Board | *2.7.0* | | +| :yellow_heart: | STM32H7A3VGHX
STM32H7A3VGTX | Generic Board | **2.8.0** | | +| :yellow_heart: | STM32H7A3VIHX
STM32H7A3VITX | Generic Board | **2.8.0** | | +| :yellow_heart: | STM32H7B0VBTX | Generic Board | **2.8.0** | | +| :yellow_heart: | STM32H7B3VIHX
STM32H7B3VITX | Generic Board | **2.8.0** | | ### Generic STM32L0 boards From c1bd92281cd0443c04648d5afa40149c3071ff83 Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:33:17 +0300 Subject: [PATCH 03/15] Update variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld Co-authored-by: Frederic Pillon Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- .../STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld index 4ca68607a9..e0adc66dbe 100644 --- a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld +++ b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld @@ -44,7 +44,7 @@ _Min_Stack_Size = 0x400; /* required amount of stack */ MEMORY { ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K - FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 128K + FLASH (rx) : ORIGIN = 0x08000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET DTCMRAM1 (xrw) : ORIGIN = 0x20000000, LENGTH = 64K DTCMRAM2 (xrw) : ORIGIN = 0x20010000, LENGTH = 64K RAM (xrw) : ORIGIN = 0x24000000, LENGTH = 1024K From 4387668ce5c6ab4b8a8f57b2faa678b57d29668a Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:33:23 +0300 Subject: [PATCH 04/15] Update variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld Co-authored-by: Frederic Pillon Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- .../STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld index e0adc66dbe..250245f11a 100644 --- a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld +++ b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/ldscript.ld @@ -47,7 +47,7 @@ MEMORY FLASH (rx) : ORIGIN = 0x08000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET DTCMRAM1 (xrw) : ORIGIN = 0x20000000, LENGTH = 64K DTCMRAM2 (xrw) : ORIGIN = 0x20010000, LENGTH = 64K - RAM (xrw) : ORIGIN = 0x24000000, LENGTH = 1024K + RAM (xrw) : ORIGIN = 0x24000000, LENGTH = LD_MAX_DATA_SIZE RAM_CD (xrw) : ORIGIN = 0x30000000, LENGTH = 128K RAM_SRD (xrw) : ORIGIN = 0x38000000, LENGTH = 32K } From afe24e86fd334b3f0f0ea135d0c304592d005ae4 Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:33:29 +0300 Subject: [PATCH 05/15] Update boards.txt Co-authored-by: Frederic Pillon Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- boards.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards.txt b/boards.txt index 41026d937d..ecc99ccc54 100644 --- a/boards.txt +++ b/boards.txt @@ -8002,7 +8002,7 @@ GenH7.menu.pnum.GENERIC_H7A3VITX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT # Generic H7B0VBTx GenH7.menu.pnum.GENERIC_H7B0VBTX=Generic H7B0VBTx GenH7.menu.pnum.GENERIC_H7B0VBTX.upload.maximum_size=131072 -GenH7.menu.pnum.GENERIC_H7B0VBTX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7B0VBTX.upload.maximum_data_size=1048576 GenH7.menu.pnum.GENERIC_H7B0VBTX.build.board=GENERIC_H7B0VBTX GenH7.menu.pnum.GENERIC_H7B0VBTX.build.product_line=STM32H7B0xx GenH7.menu.pnum.GENERIC_H7B0VBTX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T) From d5569f8ad0c43bf9e7cf082479d1a05e5e61b682 Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:33:36 +0300 Subject: [PATCH 06/15] Update boards.txt Co-authored-by: Frederic Pillon Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- boards.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards.txt b/boards.txt index ecc99ccc54..33e79c8f00 100644 --- a/boards.txt +++ b/boards.txt @@ -8010,7 +8010,7 @@ GenH7.menu.pnum.GENERIC_H7B0VBTX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT # Generic H7B3VIHx GenH7.menu.pnum.GENERIC_H7B3VIHX=Generic H7B3VIHx GenH7.menu.pnum.GENERIC_H7B3VIHX.upload.maximum_size=2097152 -GenH7.menu.pnum.GENERIC_H7B3VIHX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7B3VIHX.upload.maximum_data_size=1048576 GenH7.menu.pnum.GENERIC_H7B3VIHX.build.board=GENERIC_H7B3VIHX GenH7.menu.pnum.GENERIC_H7B3VIHX.build.product_line=STM32H7B3xx GenH7.menu.pnum.GENERIC_H7B3VIHX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T) From 93f7f5a3b39df46807cca39e0673a7b11595d434 Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:33:43 +0300 Subject: [PATCH 07/15] Update boards.txt Co-authored-by: Frederic Pillon Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- boards.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards.txt b/boards.txt index 33e79c8f00..722054357f 100644 --- a/boards.txt +++ b/boards.txt @@ -8018,7 +8018,7 @@ GenH7.menu.pnum.GENERIC_H7B3VIHX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT # Generic H7B3VITx GenH7.menu.pnum.GENERIC_H7B3VITX=Generic H7B3VITx GenH7.menu.pnum.GENERIC_H7B3VITX.upload.maximum_size=2097152 -GenH7.menu.pnum.GENERIC_H7B3VITX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7B3VITX.upload.maximum_data_size=1048576 GenH7.menu.pnum.GENERIC_H7B3VITX.build.board=GENERIC_H7B3VITX GenH7.menu.pnum.GENERIC_H7B3VITX.build.product_line=STM32H7B3xx GenH7.menu.pnum.GENERIC_H7B3VITX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T) From dda2326c0c6614a1f66f18fdd37e96fa99322d66 Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:33:52 +0300 Subject: [PATCH 08/15] Update boards.txt Co-authored-by: Frederic Pillon Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- boards.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards.txt b/boards.txt index 722054357f..844de26fd9 100644 --- a/boards.txt +++ b/boards.txt @@ -7994,7 +7994,7 @@ GenH7.menu.pnum.GENERIC_H7A3VGTX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT # Generic H7A3VITx GenH7.menu.pnum.GENERIC_H7A3VITX=Generic H7A3VITx GenH7.menu.pnum.GENERIC_H7A3VITX.upload.maximum_size=2097152 -GenH7.menu.pnum.GENERIC_H7A3VITX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7A3VITX.upload.maximum_data_size=1048576 GenH7.menu.pnum.GENERIC_H7A3VITX.build.board=GENERIC_H7A3VITX GenH7.menu.pnum.GENERIC_H7A3VITX.build.product_line=STM32H7A3xx GenH7.menu.pnum.GENERIC_H7A3VITX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T) From 2fa7b179e88e0ad842f974e42beef63d9e85212a Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:33:58 +0300 Subject: [PATCH 09/15] Update boards.txt Co-authored-by: Frederic Pillon Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- boards.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards.txt b/boards.txt index 844de26fd9..418c4d8f39 100644 --- a/boards.txt +++ b/boards.txt @@ -7970,7 +7970,7 @@ GenH7.menu.pnum.GENERIC_H757XIHX.build.variant=STM32H7xx/H742X(G-I)H_H743X(G-I)H # Generic H7A3VGHx GenH7.menu.pnum.GENERIC_H7A3VGHX=Generic H7A3VGHx GenH7.menu.pnum.GENERIC_H7A3VGHX.upload.maximum_size=1048576 -GenH7.menu.pnum.GENERIC_H7A3VGHX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7A3VGHX.upload.maximum_data_size=1048576 GenH7.menu.pnum.GENERIC_H7A3VGHX.build.board=GENERIC_H7A3VGHX GenH7.menu.pnum.GENERIC_H7A3VGHX.build.product_line=STM32H7A3xx GenH7.menu.pnum.GENERIC_H7A3VGHX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T) From 62a785e576891671831e2f30452638dfb5a784d4 Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:34:03 +0300 Subject: [PATCH 10/15] Update variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c Co-authored-by: Frederic Pillon Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- .../H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c index 08b22f7392..c123a7d0f0 100644 --- a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c +++ b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c @@ -55,8 +55,7 @@ WEAK void SystemClock_Config(void) RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_3; RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE; RCC_OscInitStruct.PLL.PLLFRACN = 4096; - if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - { + if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) { Error_Handler(); } From 71b916046c99ed61644ff3dee18df3af82326a42 Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:34:10 +0300 Subject: [PATCH 11/15] Update variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c Co-authored-by: Frederic Pillon Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- .../H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c index c123a7d0f0..f63214770d 100644 --- a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c +++ b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c @@ -72,8 +72,7 @@ WEAK void SystemClock_Config(void) RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2; RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2; - if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) - { + if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) { Error_Handler(); } } From 034d8c23c95255a8ee51cff516f2aae30f83a7ef Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:34:19 +0300 Subject: [PATCH 12/15] Update variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c Co-authored-by: Frederic Pillon Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- .../H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c index f63214770d..347b49e13e 100644 --- a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c +++ b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c @@ -61,9 +61,9 @@ WEAK void SystemClock_Config(void) /** Initializes the CPU, AHB and APB buses clocks */ - RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2 - |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1; + RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK + | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2 + | RCC_CLOCKTYPE_D3PCLK1 | RCC_CLOCKTYPE_D1PCLK1; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1; RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV1; From 62be59b9a45cd47046041644178e57d34d4bb5e8 Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:35:25 +0300 Subject: [PATCH 13/15] Update boards.txt Co-authored-by: Frederic Pillon Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- boards.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards.txt b/boards.txt index 418c4d8f39..c733fcaee0 100644 --- a/boards.txt +++ b/boards.txt @@ -7986,7 +7986,7 @@ GenH7.menu.pnum.GENERIC_H7A3VIHX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT # Generic H7A3VGTx GenH7.menu.pnum.GENERIC_H7A3VGTX=Generic H7A3VGTx GenH7.menu.pnum.GENERIC_H7A3VGTX.upload.maximum_size=1048576 -GenH7.menu.pnum.GENERIC_H7A3VGTX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7A3VGTX.upload.maximum_data_size=1048576 GenH7.menu.pnum.GENERIC_H7A3VGTX.build.board=GENERIC_H7A3VGTX GenH7.menu.pnum.GENERIC_H7A3VGTX.build.product_line=STM32H7A3xx GenH7.menu.pnum.GENERIC_H7A3VGTX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T) From 6f4b0c1a6dd6e64b086b12324315da5448ee86de Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Tue, 4 Jun 2024 09:56:16 +0300 Subject: [PATCH 14/15] Update generic_clock.c I added space character as it in the test error Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- .../H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c index 347b49e13e..604aac142a 100644 --- a/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c +++ b/variants/STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)/generic_clock.c @@ -37,7 +37,7 @@ WEAK void SystemClock_Config(void) */ __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE0); - while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {} + while (!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {} /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. From 8738d2f2967f2e4a9fe4b9de42adb43d94288bf4 Mon Sep 17 00:00:00 2001 From: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> Date: Tue, 4 Jun 2024 15:22:24 +0300 Subject: [PATCH 15/15] Update boards.txt Signed-off-by: Aurentiaco35 <140486360+Aurentiaco35@users.noreply.github.com> --- boards.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards.txt b/boards.txt index c733fcaee0..3f9bc707bf 100644 --- a/boards.txt +++ b/boards.txt @@ -7978,7 +7978,7 @@ GenH7.menu.pnum.GENERIC_H7A3VGHX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT # Generic H7A3VIHx GenH7.menu.pnum.GENERIC_H7A3VIHX=Generic H7A3VIHx GenH7.menu.pnum.GENERIC_H7A3VIHX.upload.maximum_size=2097152 -GenH7.menu.pnum.GENERIC_H7A3VIHX.upload.maximum_data_size=1458176 +GenH7.menu.pnum.GENERIC_H7A3VIHX.upload.maximum_data_size=1048576 GenH7.menu.pnum.GENERIC_H7A3VIHX.build.board=GENERIC_H7A3VIHX GenH7.menu.pnum.GENERIC_H7A3VIHX.build.product_line=STM32H7A3xx GenH7.menu.pnum.GENERIC_H7A3VIHX.build.variant=STM32H7xx/H7A3V(G-I)(H-T)_H7B0VBT_H7B3VI(H-T)