diff --git a/bsp/board/include/boards/board_discovery_with_stm32g031j6/board.cmake b/bsp/board/include/boards/board_discovery_with_stm32g031j6/board.cmake new file mode 100644 index 000000000..799cc099f --- /dev/null +++ b/bsp/board/include/boards/board_discovery_with_stm32g031j6/board.cmake @@ -0,0 +1,5 @@ +if(${_MSDK_BOARD_NAME_} STREQUAL "KIT_DISCOVERY_WITH_STM32G031J6_MCU") + set(BOARD_PATH "include/boards/board_discovery_with_stm32g031j6") + set(MCU_CARD FALSE) + set(SHIELD FALSE) +endif() diff --git a/bsp/board/include/boards/board_discovery_with_stm32g031j6/board.h b/bsp/board/include/boards/board_discovery_with_stm32g031j6/board.h new file mode 100644 index 000000000..da5ce00ef --- /dev/null +++ b/bsp/board/include/boards/board_discovery_with_stm32g031j6/board.h @@ -0,0 +1,71 @@ +/**************************************************************************** +** +** Copyright (C) ${COPYRIGHT_YEAR} MikroElektronika d.o.o. +** Contact: https://www.mikroe.com/contact +** +** This file is part of the mikroSDK package +** +** Commercial License Usage +** +** Licensees holding valid commercial NECTO compilers AI licenses may use this +** file in accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The MikroElektronika Company. +** For licensing terms and conditions see +** https://www.mikroe.com/legal/software-license-agreement. +** For further information use the contact form at +** https://www.mikroe.com/contact. +** +** +** GNU Lesser General Public License Usage +** +** Alternatively, this file may be used for +** non-commercial projects under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** The above copyright notice and this permission notice shall be +** included in all copies or substantial portions of the Software. +** +** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** OF MERCHANTABILITY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +** TO THE WARRANTIES FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT +** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE +** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +** +****************************************************************************/ +/*! + * @file board.h + * @brief Main board pin mapping. + */ + +#ifndef _BOARD_H_ +#define _BOARD_H_ + +#ifdef __cplusplus +extern "C" +{ +#endif + +#define BOARD_NAME "STM32G031J6_DISCOVERY" + +#include "hal_target.h" + +// Mapping +#define HEADER_CONNECTOR_U5_D1 // Pin not routed +#define HEADER_CONNECTOR_U5_D2 // Pin not routed +#define HEADER_CONNECTOR_U5_D3 // Pin not routed +#define HEADER_CONNECTOR_U5_D4 // Pin not routed +#define HEADER_CONNECTOR_U5_D5 // Pin not routed +#define HEADER_CONNECTOR_U5_D6 PA12 +#define HEADER_CONNECTOR_U5_D7 PA13 +#define HEADER_CONNECTOR_U5_D8 PA14 + +#ifdef __cplusplus +} +#endif + +#endif // _BOARD_H_ +// ------------------------------------------------------------------------- END diff --git a/bsp/board/include/boards/board_discovery_with_stm32g474re/board.cmake b/bsp/board/include/boards/board_discovery_with_stm32g474re/board.cmake new file mode 100644 index 000000000..0945b0620 --- /dev/null +++ b/bsp/board/include/boards/board_discovery_with_stm32g474re/board.cmake @@ -0,0 +1,5 @@ +if(${_MSDK_BOARD_NAME_} STREQUAL "KIT_DISCOVERY_WITH_STM32G474RE_MCU") + set(BOARD_PATH "include/boards/board_discovery_with_stm32g474re") + set(MCU_CARD FALSE) + set(SHIELD FALSE) +endif() diff --git a/bsp/board/include/boards/board_discovery_with_stm32g474re/board.h b/bsp/board/include/boards/board_discovery_with_stm32g474re/board.h new file mode 100644 index 000000000..b61aa7881 --- /dev/null +++ b/bsp/board/include/boards/board_discovery_with_stm32g474re/board.h @@ -0,0 +1,126 @@ +/**************************************************************************** +** +** Copyright (C) ${COPYRIGHT_YEAR} MikroElektronika d.o.o. +** Contact: https://www.mikroe.com/contact +** +** This file is part of the mikroSDK package +** +** Commercial License Usage +** +** Licensees holding valid commercial NECTO compilers AI licenses may use this +** file in accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The MikroElektronika Company. +** For licensing terms and conditions see +** https://www.mikroe.com/legal/software-license-agreement. +** For further information use the contact form at +** https://www.mikroe.com/contact. +** +** +** GNU Lesser General Public License Usage +** +** Alternatively, this file may be used for +** non-commercial projects under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** The above copyright notice and this permission notice shall be +** included in all copies or substantial portions of the Software. +** +** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** OF MERCHANTABILITY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +** TO THE WARRANTIES FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT +** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE +** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +** +****************************************************************************/ +/*! + * @file board.h + * @brief Main board pin mapping. + */ + +#ifndef _BOARD_H_ +#define _BOARD_H_ + +#ifdef __cplusplus +extern "C" +{ +#endif + +#define BOARD_NAME "STM32G474RE_DISCOVERY" + +#include "hal_target.h" + +// Mapping +#define HEADER_CONNECTOR_CN8_D1 // Pin not routed +#define HEADER_CONNECTOR_CN8_D2 // Pin not routed +#define HEADER_CONNECTOR_CN8_D3 // Pin not routed +#define HEADER_CONNECTOR_CN8_D4 // Pin not routed +#define HEADER_CONNECTOR_CN8_D5 // Pin not routed +#define HEADER_CONNECTOR_CN8_D6 // Pin not routed +#define HEADER_CONNECTOR_CN8_D7 // Pin not routed +#define HEADER_CONNECTOR_CN8_D8 PC9 +#define HEADER_CONNECTOR_CN8_D9 PC8 +#define HEADER_CONNECTOR_CN8_D10 PC7 +#define HEADER_CONNECTOR_CN8_D11 PC6 +#define HEADER_CONNECTOR_CN8_D12 PB15 +#define HEADER_CONNECTOR_CN8_D13 PB14 +#define HEADER_CONNECTOR_CN8_D14 PB13 +#define HEADER_CONNECTOR_CN8_D15 PB12 +#define HEADER_CONNECTOR_CN8_D16 PB11 +#define HEADER_CONNECTOR_CN8_D17 PC5 +#define HEADER_CONNECTOR_CN8_D18 PB10 +#define HEADER_CONNECTOR_CN8_D19 PB1 +#define HEADER_CONNECTOR_CN8_D20 PB0 +#define HEADER_CONNECTOR_CN8_D21 PB2 +#define HEADER_CONNECTOR_CN8_D22 PC4 +#define HEADER_CONNECTOR_CN8_D23 PA7 +#define HEADER_CONNECTOR_CN8_D24 PA6 +#define HEADER_CONNECTOR_CN8_D25 PA5 +#define HEADER_CONNECTOR_CN8_D26 PA4 +#define HEADER_CONNECTOR_CN8_D27 PA3 +#define HEADER_CONNECTOR_CN8_D28 PA2 +#define HEADER_CONNECTOR_CN8_D29 PA1 +#define HEADER_CONNECTOR_CN8_D30 PA0 +#define HEADER_CONNECTOR_CN8_D31 PC3 + +#define HEADER_CONNECTOR_CN9_D1 // Pin not routed +#define HEADER_CONNECTOR_CN9_D2 // Pin not routed +#define HEADER_CONNECTOR_CN9_D3 // Pin not routed +#define HEADER_CONNECTOR_CN9_D4 PA8 +#define HEADER_CONNECTOR_CN9_D5 PA9 +#define HEADER_CONNECTOR_CN9_D6 PA10 +#define HEADER_CONNECTOR_CN9_D7 PA11 +#define HEADER_CONNECTOR_CN9_D8 PA12 +#define HEADER_CONNECTOR_CN9_D9 PA13 +#define HEADER_CONNECTOR_CN9_D10 PA14 +#define HEADER_CONNECTOR_CN9_D11 PA15 +#define HEADER_CONNECTOR_CN9_D12 PC10 +#define HEADER_CONNECTOR_CN9_D13 PC11 +#define HEADER_CONNECTOR_CN9_D14 PC12 +#define HEADER_CONNECTOR_CN9_D15 PD2 +#define HEADER_CONNECTOR_CN9_D16 PB3 +#define HEADER_CONNECTOR_CN9_D17 PB4 +#define HEADER_CONNECTOR_CN9_D18 PB5 +#define HEADER_CONNECTOR_CN9_D19 PB6 +#define HEADER_CONNECTOR_CN9_D20 PB7 +#define HEADER_CONNECTOR_CN9_D21 PB8 +#define HEADER_CONNECTOR_CN9_D22 PB9 +#define HEADER_CONNECTOR_CN9_D23 PC13 +#define HEADER_CONNECTOR_CN9_D24 PC14 +#define HEADER_CONNECTOR_CN9_D25 PC15 +#define HEADER_CONNECTOR_CN9_D26 PF0 +#define HEADER_CONNECTOR_CN9_D27 PF1 +#define HEADER_CONNECTOR_CN9_D28 PC0 +#define HEADER_CONNECTOR_CN9_D29 PC1 +#define HEADER_CONNECTOR_CN9_D30 PG10 +#define HEADER_CONNECTOR_CN9_D31 PC2 + +#ifdef __cplusplus +} +#endif + +#endif // _BOARD_H_ +// ------------------------------------------------------------------------- END diff --git a/changelog/v2.11.4/changelog.md b/changelog/v2.11.4/changelog.md index a27b3d2d6..9c26c6b2e 100644 --- a/changelog/v2.11.4/changelog.md +++ b/changelog/v2.11.4/changelog.md @@ -80,6 +80,7 @@ Support added for following hardware: + **[2024-10-18](./new_hw/2024-10-18.md)** + **[2024-10-21](./new_hw/2024-10-21.md)** ++ **[2024-10-22](./new_hw/2024-10-22.md)** --- diff --git a/changelog/v2.11.4/new_hw/2024-10-22.md b/changelog/v2.11.4/new_hw/2024-10-22.md new file mode 100644 index 000000000..883287e2d --- /dev/null +++ b/changelog/v2.11.4/new_hw/2024-10-22.md @@ -0,0 +1,30 @@ +

+ MikroElektronika +

+ +--- + +**[BACK TO PREVIOUS FILE](../changelog.md)** + +--- + +# 2024-10-22 + +## Changes + +- [2024-10-22](#2024-10-22) + - [Changes](#changes) + - [NEW HARDWARE](#new-hardware) + +### NEW HARDWARE + +Support added for following hardware: + ++ [Discovery kit with STM32G031J6 MCU](https://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-discovery-kits/stm32g0316-disco.html) ++ [Discovery kit with STM32G474RE MCU](https://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-discovery-kits/b-g474e-dpow1.html) + +--- + +**[BACK TO PREVIOUS FILE](../changelog.md)** + +--- diff --git a/resources/images/boards/board-kit-discovery-with-stm32g031j6-mcu.png b/resources/images/boards/board-kit-discovery-with-stm32g031j6-mcu.png new file mode 100644 index 000000000..ac71a559a Binary files /dev/null and b/resources/images/boards/board-kit-discovery-with-stm32g031j6-mcu.png differ diff --git a/resources/images/boards/board-kit-discovery-with-stm32g474re-mcu.png b/resources/images/boards/board-kit-discovery-with-stm32g474re-mcu.png new file mode 100644 index 000000000..833e80545 Binary files /dev/null and b/resources/images/boards/board-kit-discovery-with-stm32g474re-mcu.png differ diff --git a/resources/queries/boards/board_discovery_with_stm32g031j6/Boards.json b/resources/queries/boards/board_discovery_with_stm32g031j6/Boards.json new file mode 100644 index 000000000..a8072bd92 --- /dev/null +++ b/resources/queries/boards/board_discovery_with_stm32g031j6/Boards.json @@ -0,0 +1,16 @@ +{ + "uid": "KIT_DISCOVERY_WITH_STM32G031J6_MCU", + "name": "Discovery kit with STM32G031J6 MCU", + "icon": "images/boards/board-kit-discovery-with-stm32g031j6-mcu.png", + "default_device": "", + "soldered_device": "STM32G031J6", + "category": "Starter boards", + "mikrobus_count": 0, + "sort_order": 7, + "min_pin_count": 0, + "display_socket": "NO_DISPLAY", + "sdk_config": "{\"_MSDK_BOARD_NAME_\":\"KIT_DISCOVERY_WITH_STM32G031J6_MCU\"}", + "necto_config": "", + "display": "NO_DISPLAY", + "package_uid": "8/SO" +} diff --git a/resources/queries/boards/board_discovery_with_stm32g031j6/LinkerTables.json b/resources/queries/boards/board_discovery_with_stm32g031j6/LinkerTables.json new file mode 100644 index 000000000..1b8c679e0 --- /dev/null +++ b/resources/queries/boards/board_discovery_with_stm32g031j6/LinkerTables.json @@ -0,0 +1,20 @@ +{ + "board_uid": "KIT_DISCOVERY_WITH_STM32G031J6_MCU", + "tables": [ + { + "BoardToDevice": { + "device_uid": "STM32G031J6" + } + }, + { + "BoardToSocket": { + "socket_uid": ["NONE"] + } + }, + { + "SDKToBoard": { + "sdk_uid": "2.11.2+" + } + } + ] +} diff --git a/resources/queries/boards/board_discovery_with_stm32g474re/Boards.json b/resources/queries/boards/board_discovery_with_stm32g474re/Boards.json new file mode 100644 index 000000000..0ceac6d4c --- /dev/null +++ b/resources/queries/boards/board_discovery_with_stm32g474re/Boards.json @@ -0,0 +1,16 @@ +{ + "uid": "KIT_DISCOVERY_WITH_STM32G474RE_MCU", + "name": "Discovery kit with STM32G474RE MCU", + "icon": "images/boards/board-kit-discovery-with-stm32g474re-mcu.png", + "default_device": "", + "soldered_device": "STM32G474RE", + "category": "Starter boards", + "mikrobus_count": 0, + "sort_order": 7, + "min_pin_count": 0, + "display_socket": "NO_DISPLAY", + "sdk_config": "{\"_MSDK_BOARD_NAME_\":\"KIT_DISCOVERY_WITH_STM32G474RE_MCU\"}", + "necto_config": "", + "display": "NO_DISPLAY", + "package_uid": "64/LQFP" +} diff --git a/resources/queries/boards/board_discovery_with_stm32g474re/LinkerTables.json b/resources/queries/boards/board_discovery_with_stm32g474re/LinkerTables.json new file mode 100644 index 000000000..a3097498e --- /dev/null +++ b/resources/queries/boards/board_discovery_with_stm32g474re/LinkerTables.json @@ -0,0 +1,20 @@ +{ + "board_uid": "KIT_DISCOVERY_WITH_STM32G474RE_MCU", + "tables": [ + { + "BoardToDevice": { + "device_uid": "STM32G474RE" + } + }, + { + "BoardToSocket": { + "socket_uid": ["NONE"] + } + }, + { + "SDKToBoard": { + "sdk_uid": "2.11.2+" + } + } + ] +}