- Notifications
You must be signed in to change notification settings - Fork1k
variant(f4): add STM32F429I-DISC1 support#2845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Draft
Aymane-ST wants to merge3 commits intostm32duino:mainChoose a base branch fromAymane-ST:DIS_F429Z
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Draft
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletionsREADME.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletionsboards.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletionscmake/boards_db.cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletionsvariants/STM32F3xx/F303R(6-8)T_F334R(6-8)T/variant_NUCLEO_F334R8.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions.../STM32F4xx/F427Z(G-I)T_F429ZET_F429Z(G-I)(T-Y)_F437Z(G-I)T_F439Z(G-I)(T-Y)/CMakeLists.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
216 changes: 216 additions & 0 deletions.../F427Z(G-I)T_F429ZET_F429Z(G-I)(T-Y)_F437Z(G-I)T_F439Z(G-I)(T-Y)/variant_DISCO_F429ZI.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,216 @@ | ||
| /* | ||
| ******************************************************************************* | ||
| * Copyright (c) 2025, STMicroelectronics | ||
| * All rights reserved. | ||
| * | ||
| * This software component is licensed by ST under BSD 3-Clause license, | ||
| * the "License"; You may not use this file except in compliance with the | ||
| * License. You may obtain a copy of the License at: | ||
| * opensource.org/licenses/BSD-3-Clause | ||
| * | ||
| ******************************************************************************* | ||
| */ | ||
| #if defined(ARDUINO_DISCO_F429ZI) | ||
| #include "pins_arduino.h" | ||
| // Digital PinName array | ||
| const PinName digitalPin[] = { | ||
| PF_4, // 0 | ||
| PF_2, // 1 | ||
| PF_0, // 2 | ||
| PC_14, // 3 | ||
| PE_6, // 4 | ||
| PE_4, // 5 | ||
| PE_2, // 6 | ||
| PE_0, // 7 | ||
| PB_8, // 8 | ||
| NC, // 9 - BOOT0 | ||
| PB_6, // 10 | ||
| PB_4, // 11 | ||
| PG_15, // 12 | ||
| PG_13, // 13 | ||
| PG_11, // 14 | ||
| PG_9, // 15 | ||
| PD_7, // 16 | ||
| PD_5, // 17 | ||
| PD_3, // 18 | ||
| PD_1, // 19 | ||
| PC_12, // 20 | ||
| PC_10, // 21 | ||
| PA_14, // 22 | ||
| PA_12, // 23 | ||
| PA_10, // 24 | ||
| PA_8, // 25 | ||
| PC_8, // 26 | ||
| PC_6, // 27 | ||
| PG_7, // 28 | ||
| PG_5, // 29 | ||
| PF_5, // 30 | ||
| PF_3, // 31 | ||
| PF_1, // 32 | ||
| PC_15, // 33 | ||
| PC_13, // 34 | ||
| PE_5, // 35 | ||
| PE_3, // 36 | ||
| PE_1, // 37 | ||
| PB_9, // 38 | ||
| PB_7, // 39 | ||
| PB_5, // 40 | ||
| PB_3, // 41 | ||
| PG_14, // 42 | ||
| PG_12, // 43 | ||
| PG_10, // 44 | ||
| PD_6, // 45 | ||
| PD_4, // 46 | ||
| PD_2, // 47 | ||
| PD_0, // 48 | ||
| PC_11, // 49 | ||
| PA_15, // 50 | ||
| PA_13, // 51 | ||
| PA_11, // 52 | ||
| PA_9, // 53 | ||
| PC_9, // 54 | ||
| PC_7, // 55 | ||
| PG_8, // 56 | ||
| PG_6, // 57 | ||
| PG_4, // 58 | ||
| PF_6, // 59 | ||
| PF_8, // 60 | ||
| PF_10, // 61 | ||
| PH_1, // 62 | ||
| PC_1, // 63 | ||
| PC_3, // 64 | ||
| PA_1, // 65 | ||
| PA_3, // 66 | ||
| PA_5, // 67 | ||
| PA_7, // 68 | ||
| PC_5, // 69 | ||
| PB_1, // 70 | ||
| PF_12, // 71 | ||
| PF_14, // 72 | ||
| PG_0, // 73 | ||
| PE_7, // 74 | ||
| PE_9, // 75 | ||
| PE_11, // 76 | ||
| PE_13, // 77 | ||
| PE_15, // 78 | ||
| PB_11, // 79 | ||
| PB_13, // 80 | ||
| PB_15, // 81 // Not connected SB26 OFF | ||
| PD_9, // 82 | ||
| PD_11, // 83 | ||
| PD_13, // 84 | ||
| PD_15, // 85 | ||
| PG_3, // 86 | ||
| PF_7, // 87 | ||
| PF_9, // 88 | ||
| PH_0, // 89 | ||
| PC_0, // 90 | ||
| PC_2, // 91 | ||
| PA_0, // 92 | ||
| PA_2, // 93 | ||
| PA_4, // 94 | ||
| PA_6, // 95 | ||
| PC_4, // 96 | ||
| PB_0, // 97 | ||
| NC, // 98 - BOOT1 | ||
| PF_11, // 99 | ||
| PF_13, // 100 | ||
| PF_15, // 101 | ||
| PG_1, // 102 | ||
| PE_8, // 103 | ||
| PE_10, // 104 | ||
| PE_12, // 105 | ||
| PE_14, // 106 | ||
| PB_10, // 107 | ||
| PB_12, // 108 | ||
| PB_14, // 109 // Not connected SB27 OFF | ||
| PD_8, // 110 | ||
| PD_10, // 111 | ||
| PD_12, // 112 | ||
| PD_14, // 113 | ||
| PG_2 // 114 | ||
| }; | ||
| // Analog (Ax) pin number array | ||
| const uint32_t analogInputPin[] = { | ||
| 0, // A0, | ||
| 30, // A1, | ||
| 31, // A2, | ||
| 59, // A3, | ||
| 60, // A4, | ||
| 61, // A5, | ||
| 63, // A6, | ||
| 64, // A7, | ||
| 65, // A8, | ||
| 66, // A9, | ||
| 67, // A10, | ||
| 68, // A11, | ||
| 69, // A12, | ||
| 70, // A13, | ||
| 87, // A14, | ||
| 88, // A15, | ||
| 90, // A16, | ||
| 91, // A17, | ||
| 92, // A18, | ||
| 93, // A19, | ||
| 94, // A20, | ||
| 95, // A21, | ||
| 96, // A22, | ||
| 97 // A23, | ||
| }; | ||
| // ---------------------------------------------------------------------------- | ||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
| /** | ||
| * @brief None | ||
| * @param None | ||
| * @retval None | ||
| */ | ||
| WEAK void SystemClock_Config(void) | ||
| { | ||
| RCC_OscInitTypeDef RCC_OscInitStruct = {}; | ||
| RCC_ClkInitTypeDef RCC_ClkInitStruct = {}; | ||
| /** Configure the main internal regulator output voltage | ||
| */ | ||
| __HAL_RCC_PWR_CLK_ENABLE(); | ||
| __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3); | ||
| /** Initializes the RCC Oscillators according to the specified parameters | ||
| * in the RCC_OscInitTypeDef structure. | ||
| */ | ||
| RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; | ||
| RCC_OscInitStruct.HSEState = RCC_HSE_ON; | ||
| RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; | ||
| RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; | ||
| RCC_OscInitStruct.PLL.PLLM = 4; | ||
| RCC_OscInitStruct.PLL.PLLN = 72; | ||
| RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; | ||
| RCC_OscInitStruct.PLL.PLLQ = 3; | ||
| 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_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; | ||
| RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; | ||
| RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; | ||
| RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; | ||
| if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) { | ||
| Error_Handler(); | ||
| } | ||
| } | ||
| #ifdef __cplusplus | ||
| } | ||
| #endif | ||
| #endif /* ARDUINO_DISCO_F429ZI */ |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.