diff --git a/bsp/board/include/boards/board_discovery_with_stm32l100rc/board.cmake b/bsp/board/include/boards/board_discovery_with_stm32l100rc/board.cmake new file mode 100644 index 000000000..5536d8c29 --- /dev/null +++ b/bsp/board/include/boards/board_discovery_with_stm32l100rc/board.cmake @@ -0,0 +1,5 @@ +if(${_MSDK_BOARD_NAME_} STREQUAL "KIT_DISCOVERY_WITH_STM32L100RC_MCU") + set(BOARD_PATH "include/boards/board_discovery_with_stm32l100rc") + set(MCU_CARD FALSE) + set(SHIELD FALSE) +endif() diff --git a/bsp/board/include/boards/board_discovery_with_stm32l100rc/board.h b/bsp/board/include/boards/board_discovery_with_stm32l100rc/board.h new file mode 100644 index 000000000..796ee27e0 --- /dev/null +++ b/bsp/board/include/boards/board_discovery_with_stm32l100rc/board.h @@ -0,0 +1,137 @@ +/**************************************************************************** +** +** 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 "STM32L100RC_DISCOVERY" + +#include "hal_target.h" + +// Mapping +#define HEADER_CONNECTOR_CN3_D1 // Pin not routed +#define HEADER_CONNECTOR_CN3_D2 PA14 +#define HEADER_CONNECTOR_CN3_D3 // Pin not routed +#define HEADER_CONNECTOR_CN3_D4 PA13 +#define HEADER_CONNECTOR_CN3_D5 // Pin not routed +#define HEADER_CONNECTOR_CN3_D6 PB3 + +#define HEADER_CONNECTOR_P1_D1 // Pin not routed +#define HEADER_CONNECTOR_P1_D2 // Pin not routed +#define HEADER_CONNECTOR_P1_D3 // Pin not routed +#define HEADER_CONNECTOR_P1_D4 PC13 +#define HEADER_CONNECTOR_P1_D5 PC14 +#define HEADER_CONNECTOR_P1_D6 PC15 +#define HEADER_CONNECTOR_P1_D7 PH0 +#define HEADER_CONNECTOR_P1_D8 PH1 +#define HEADER_CONNECTOR_P1_D9 // Pin not routed +#define HEADER_CONNECTOR_P1_D10 // Pin not routed +#define HEADER_CONNECTOR_P1_D11 PC0 +#define HEADER_CONNECTOR_P1_D12 PC1 +#define HEADER_CONNECTOR_P1_D13 PC2 +#define HEADER_CONNECTOR_P1_D14 PC3 +#define HEADER_CONNECTOR_P1_D15 PA0 +#define HEADER_CONNECTOR_P1_D16 PA1 +#define HEADER_CONNECTOR_P1_D17 PA2 +#define HEADER_CONNECTOR_P1_D18 PA3 +#define HEADER_CONNECTOR_P1_D19 // Pin not routed +#define HEADER_CONNECTOR_P1_D20 // Pin not routed +#define HEADER_CONNECTOR_P1_D21 PA4 +#define HEADER_CONNECTOR_P1_D22 PA5 +#define HEADER_CONNECTOR_P1_D23 PA6 +#define HEADER_CONNECTOR_P1_D24 PA7 +#define HEADER_CONNECTOR_P1_D25 PC4 +#define HEADER_CONNECTOR_P1_D26 PC5 +#define HEADER_CONNECTOR_P1_D27 PB0 +#define HEADER_CONNECTOR_P1_D28 PB1 +#define HEADER_CONNECTOR_P1_D29 PB2 +#define HEADER_CONNECTOR_P1_D30 PB10 +#define HEADER_CONNECTOR_P1_D31 PB11 +#define HEADER_CONNECTOR_P1_D32 PB12 +#define HEADER_CONNECTOR_P1_D33 // Pin not routed + +#define HEADER_CONNECTOR_P2_D1 // Pin not routed +#define HEADER_CONNECTOR_P2_D2 // Pin not routed +#define HEADER_CONNECTOR_P2_D3 PB9 +#define HEADER_CONNECTOR_P2_D4 PB8 +#define HEADER_CONNECTOR_P2_D5 // Pin not routed +#define HEADER_CONNECTOR_P2_D6 // Pin not routed +#define HEADER_CONNECTOR_P2_D7 PB7 +#define HEADER_CONNECTOR_P2_D8 PB6 +#define HEADER_CONNECTOR_P2_D9 PB5 +#define HEADER_CONNECTOR_P2_D10 PB4 +#define HEADER_CONNECTOR_P2_D11 PB3 +#define HEADER_CONNECTOR_P2_D12 PD2 +#define HEADER_CONNECTOR_P2_D13 PC12 +#define HEADER_CONNECTOR_P2_D14 PC11 +#define HEADER_CONNECTOR_P2_D15 PC10 +#define HEADER_CONNECTOR_P2_D16 PA15 +#define HEADER_CONNECTOR_P2_D17 PA14 +#define HEADER_CONNECTOR_P2_D18 // Pin not routed +#define HEADER_CONNECTOR_P2_D19 // Pin not routed +#define HEADER_CONNECTOR_P2_D20 PA13 +#define HEADER_CONNECTOR_P2_D21 PA12 +#define HEADER_CONNECTOR_P2_D22 PA11 +#define HEADER_CONNECTOR_P2_D23 PA10 +#define HEADER_CONNECTOR_P2_D24 PA9 +#define HEADER_CONNECTOR_P2_D25 PA8 +#define HEADER_CONNECTOR_P2_D26 PC9 +#define HEADER_CONNECTOR_P2_D27 PC8 +#define HEADER_CONNECTOR_P2_D28 PC7 +#define HEADER_CONNECTOR_P2_D29 PC6 +#define HEADER_CONNECTOR_P2_D30 PB15 +#define HEADER_CONNECTOR_P2_D31 PB14 +#define HEADER_CONNECTOR_P2_D32 PB13 +#define HEADER_CONNECTOR_P2_D33 // Pin not routed + +#ifdef __cplusplus +} +#endif + +#endif // _BOARD_H_ +// ------------------------------------------------------------------------- END diff --git a/bsp/board/include/boards/board_discovery_with_stm32l152rc/board.cmake b/bsp/board/include/boards/board_discovery_with_stm32l152rc/board.cmake new file mode 100644 index 000000000..9474d03b7 --- /dev/null +++ b/bsp/board/include/boards/board_discovery_with_stm32l152rc/board.cmake @@ -0,0 +1,5 @@ +if(${_MSDK_BOARD_NAME_} STREQUAL "KIT_DISCOVERY_WITH_STM32L152RC_MCU") + set(BOARD_PATH "include/boards/board_discovery_with_stm32l152rc") + set(MCU_CARD FALSE) + set(SHIELD FALSE) +endif() diff --git a/bsp/board/include/boards/board_discovery_with_stm32l152rc/board.h b/bsp/board/include/boards/board_discovery_with_stm32l152rc/board.h new file mode 100644 index 000000000..297f9808b --- /dev/null +++ b/bsp/board/include/boards/board_discovery_with_stm32l152rc/board.h @@ -0,0 +1,120 @@ +/**************************************************************************** +** +** 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 "STM32L152RC_DISCOVERY" + +#include "hal_target.h" + +// Mapping +#define HEADER_CONNECTOR_P1_D1 // Pin not routed +#define HEADER_CONNECTOR_P1_D2 // Pin not routed +#define HEADER_CONNECTOR_P1_D3 // Pin not routed +#define HEADER_CONNECTOR_P1_D4 PC13 +#define HEADER_CONNECTOR_P1_D5 PC14 +#define HEADER_CONNECTOR_P1_D6 PC15 +#define HEADER_CONNECTOR_P1_D7 // Pin not routed +#define HEADER_CONNECTOR_P1_D8 // Pin not routed +#define HEADER_CONNECTOR_P1_D9 // Pin not routed +#define HEADER_CONNECTOR_P1_D10 // Pin not routed +#define HEADER_CONNECTOR_P1_D11 PC0 +#define HEADER_CONNECTOR_P1_D12 PC1 +#define HEADER_CONNECTOR_P1_D13 PC2 +#define HEADER_CONNECTOR_P1_D14 PC3 +#define HEADER_CONNECTOR_P1_D15 PA0 +#define HEADER_CONNECTOR_P1_D16 PA1 +#define HEADER_CONNECTOR_P1_D17 PA2 +#define HEADER_CONNECTOR_P1_D18 PA3 +#define HEADER_CONNECTOR_P1_D19 PA4 +#define HEADER_CONNECTOR_P1_D20 PA5 +#define HEADER_CONNECTOR_P1_D21 PB2 +#define HEADER_CONNECTOR_P1_D22 PB10 +#define HEADER_CONNECTOR_P1_D23 PB11 +#define HEADER_CONNECTOR_P1_D24 PB12 +#define HEADER_CONNECTOR_P1_D25 PB13 +#define HEADER_CONNECTOR_P1_D26 PB14 +#define HEADER_CONNECTOR_P1_D27 PB15 +#define HEADER_CONNECTOR_P1_D28 // Pin not routed + +#define HEADER_CONNECTOR_P2_D1 // Pin not routed +#define HEADER_CONNECTOR_P2_D2 // Pin not routed +#define HEADER_CONNECTOR_P2_D3 PB9 +#define HEADER_CONNECTOR_P2_D4 PB8 +#define HEADER_CONNECTOR_P2_D5 // Pin not routed +#define HEADER_CONNECTOR_P2_D6 // Pin not routed +#define HEADER_CONNECTOR_P2_D7 PB7 +#define HEADER_CONNECTOR_P2_D8 PB6 +#define HEADER_CONNECTOR_P2_D9 PB5 +#define HEADER_CONNECTOR_P2_D10 // Pin not routed +#define HEADER_CONNECTOR_P2_D11 // Pin not routed +#define HEADER_CONNECTOR_P2_D12 PD2 +#define HEADER_CONNECTOR_P2_D13 PC12 +#define HEADER_CONNECTOR_P2_D14 PC11 +#define HEADER_CONNECTOR_P2_D15 PC10 +#define HEADER_CONNECTOR_P2_D16 // Pin not routed +#define HEADER_CONNECTOR_P2_D17 // Pin not routed +#define HEADER_CONNECTOR_P2_D18 // Pin not routed +#define HEADER_CONNECTOR_P2_D19 PA12 +#define HEADER_CONNECTOR_P2_D20 PA11 +#define HEADER_CONNECTOR_P2_D21 PA10 +#define HEADER_CONNECTOR_P2_D22 PA9 +#define HEADER_CONNECTOR_P2_D23 PA8 +#define HEADER_CONNECTOR_P2_D24 PC9 +#define HEADER_CONNECTOR_P2_D25 PC8 +#define HEADER_CONNECTOR_P2_D26 PC7 +#define HEADER_CONNECTOR_P2_D27 PC6 +#define HEADER_CONNECTOR_P2_D28 // Pin not routed + +#ifdef __cplusplus +} +#endif + +#endif // _BOARD_H_ +// ------------------------------------------------------------------------- END diff --git a/changelog/v2.11.4/changelog.md b/changelog/v2.11.4/changelog.md index 1633380a1..29bc5d92a 100644 --- a/changelog/v2.11.4/changelog.md +++ b/changelog/v2.11.4/changelog.md @@ -82,6 +82,7 @@ Support added for following hardware: + **[2024-10-21](./new_hw/2024-10-21.md)** + **[2024-10-22](./new_hw/2024-10-22.md)** + **[2024-10-23](./new_hw/2024-10-23.md)** ++ **[2024-10-24](./new_hw/2024-10-24.md)** --- diff --git a/changelog/v2.11.4/new_hw/2024-10-24.md b/changelog/v2.11.4/new_hw/2024-10-24.md new file mode 100644 index 000000000..6f5e92b64 --- /dev/null +++ b/changelog/v2.11.4/new_hw/2024-10-24.md @@ -0,0 +1,30 @@ +
+ +
+ +--- + +**[BACK TO PREVIOUS FILE](../changelog.md)** + +--- + +# 2024-10-24 + +## Changes + +- [2024-10-24](#2024-10-24) + - [Changes](#changes) + - [NEW HARDWARE](#new-hardware) + +### NEW HARDWARE + +Support added for following hardware: + ++ [Discovery kit with STM32L100RC 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/32l100cdiscovery.html) ++ [Discovery kit with STM32L152RC 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/32l152cdiscovery.html) + +--- + +**[BACK TO PREVIOUS FILE](../changelog.md)** + +--- diff --git a/resources/images/boards/board-kit-discovery-with-stm32l100rc-mcu.png b/resources/images/boards/board-kit-discovery-with-stm32l100rc-mcu.png new file mode 100644 index 000000000..fb91daf58 Binary files /dev/null and b/resources/images/boards/board-kit-discovery-with-stm32l100rc-mcu.png differ diff --git a/resources/images/boards/board-kit-discovery-with-stm32l152rc-mcu.png b/resources/images/boards/board-kit-discovery-with-stm32l152rc-mcu.png new file mode 100644 index 000000000..337a1cc04 Binary files /dev/null and b/resources/images/boards/board-kit-discovery-with-stm32l152rc-mcu.png differ diff --git a/resources/queries/boards/board_discovery_with_stm32l100rc/Boards.json b/resources/queries/boards/board_discovery_with_stm32l100rc/Boards.json new file mode 100644 index 000000000..1795e4eb4 --- /dev/null +++ b/resources/queries/boards/board_discovery_with_stm32l100rc/Boards.json @@ -0,0 +1,16 @@ +{ + "uid": "KIT_DISCOVERY_WITH_STM32L100RC_MCU", + "name": "Discovery kit with STM32L100RC MCU", + "icon": "images/boards/board-kit-discovery-with-stm32l100rc-mcu.png", + "default_device": "", + "soldered_device": "STM32L100RC", + "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_STM32L100RC_MCU\"}", + "necto_config": "", + "display": "NO_DISPLAY", + "package_uid": "64/LQFP" +} diff --git a/resources/queries/boards/board_discovery_with_stm32l100rc/LinkerTables.json b/resources/queries/boards/board_discovery_with_stm32l100rc/LinkerTables.json new file mode 100644 index 000000000..bf958a3b0 --- /dev/null +++ b/resources/queries/boards/board_discovery_with_stm32l100rc/LinkerTables.json @@ -0,0 +1,20 @@ +{ + "board_uid": "KIT_DISCOVERY_WITH_STM32L100RC_MCU", + "tables": [ + { + "BoardToDevice": { + "device_uid": "STM32L100RC" + } + }, + { + "BoardToSocket": { + "socket_uid": ["NONE"] + } + }, + { + "SDKToBoard": { + "sdk_uid": "2.11.2+" + } + } + ] +} diff --git a/resources/queries/boards/board_discovery_with_stm32l152rc/Boards.json b/resources/queries/boards/board_discovery_with_stm32l152rc/Boards.json new file mode 100644 index 000000000..f9af0e2ec --- /dev/null +++ b/resources/queries/boards/board_discovery_with_stm32l152rc/Boards.json @@ -0,0 +1,16 @@ +{ + "uid": "KIT_DISCOVERY_WITH_STM32L152RC_MCU", + "name": "Discovery kit with STM32L152RC MCU", + "icon": "images/boards/board-kit-discovery-with-stm32l152rc-mcu.png", + "default_device": "", + "soldered_device": "STM32L152RC", + "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_STM32L152RC_MCU\"}", + "necto_config": "", + "display": "NO_DISPLAY", + "package_uid": "64/LQFP" +} diff --git a/resources/queries/boards/board_discovery_with_stm32l152rc/LinkerTables.json b/resources/queries/boards/board_discovery_with_stm32l152rc/LinkerTables.json new file mode 100644 index 000000000..224129437 --- /dev/null +++ b/resources/queries/boards/board_discovery_with_stm32l152rc/LinkerTables.json @@ -0,0 +1,20 @@ +{ + "board_uid": "KIT_DISCOVERY_WITH_STM32L152RC_MCU", + "tables": [ + { + "BoardToDevice": { + "device_uid": "STM32L152RC" + } + }, + { + "BoardToSocket": { + "socket_uid": ["NONE"] + } + }, + { + "SDKToBoard": { + "sdk_uid": "2.11.2+" + } + } + ] +}