-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from MikroElektronika/new-feature/boards/6
Merge branch new-feature/boards/6 into master
- Loading branch information
Showing
10 changed files
with
301 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
bsp/board/include/boards/board_nucleo_32_with_stm32f042k6/board.cmake
This file contains 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,5 @@ | ||
if(${_MSDK_BOARD_NAME_} STREQUAL "BOARD_NUCLEO_32_WITH_STM32F042K6") | ||
set(BOARD_PATH "include/boards/board_nucleo_32_with_stm32f042k6") | ||
set(MCU_CARD FALSE) | ||
set(SHIELD FALSE) | ||
endif() |
94 changes: 94 additions & 0 deletions
94
bsp/board/include/boards/board_nucleo_32_with_stm32f042k6/board.h
This file contains 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,94 @@ | ||
/**************************************************************************** | ||
** | ||
** 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 "Nucleo-F042K6" | ||
|
||
#include "hal_target.h" | ||
|
||
// Mapping | ||
#define HEADER_CONNECTOR_CN3_D1 PA9 | ||
#define HEADER_CONNECTOR_CN3_D2 PA10 | ||
#define HEADER_CONNECTOR_CN3_D3 // Pin not routed | ||
#define HEADER_CONNECTOR_CN3_D4 // Pin not routed | ||
#define HEADER_CONNECTOR_CN3_D5 PA12 | ||
#define HEADER_CONNECTOR_CN3_D6 PB0 | ||
#define HEADER_CONNECTOR_CN3_D7 PB7 | ||
#define HEADER_CONNECTOR_CN3_D8 PB6 | ||
#define HEADER_CONNECTOR_CN3_D9 PB1 | ||
#define HEADER_CONNECTOR_CN3_D10 PC14 | ||
#define HEADER_CONNECTOR_CN3_D11 PC15 | ||
#define HEADER_CONNECTOR_CN3_D12 PA8 | ||
#define HEADER_CONNECTOR_CN3_D13 PA11 | ||
#define HEADER_CONNECTOR_CN3_D14 PB5 | ||
#define HEADER_CONNECTOR_CN3_D15 PB4 | ||
|
||
#define HEADER_CONNECTOR_CN4_D1 // Pin not routed | ||
#define HEADER_CONNECTOR_CN4_D2 // Pin not routed | ||
#define HEADER_CONNECTOR_CN4_D3 // Pin not routed | ||
#define HEADER_CONNECTOR_CN4_D4 // Pin not routed | ||
#define HEADER_CONNECTOR_CN4_D5 PA2 | ||
#define HEADER_CONNECTOR_CN4_D6 PA7 | ||
#define HEADER_CONNECTOR_CN4_D7 PA6 | ||
#define HEADER_CONNECTOR_CN4_D8 PA5 | ||
#define HEADER_CONNECTOR_CN4_D9 PA4 | ||
#define HEADER_CONNECTOR_CN4_D10 PA3 | ||
#define HEADER_CONNECTOR_CN4_D11 PA1 | ||
#define HEADER_CONNECTOR_CN4_D12 PA0 | ||
#define HEADER_CONNECTOR_CN4_D13 // Pin not routed | ||
#define HEADER_CONNECTOR_CN4_D14 // Pin not routed | ||
#define HEADER_CONNECTOR_CN4_D15 PB3 | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // _BOARD_H_ | ||
// ------------------------------------------------------------------------- END |
5 changes: 5 additions & 0 deletions
5
bsp/board/include/boards/board_nucleo_32_with_stm32f303k8/board.cmake
This file contains 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,5 @@ | ||
if(${_MSDK_BOARD_NAME_} STREQUAL "BOARD_NUCLEO_32_WITH_STM32F303K8") | ||
set(BOARD_PATH "include/boards/board_nucleo_32_with_stm32f303k8") | ||
set(MCU_CARD FALSE) | ||
set(SHIELD FALSE) | ||
endif() |
94 changes: 94 additions & 0 deletions
94
bsp/board/include/boards/board_nucleo_32_with_stm32f303k8/board.h
This file contains 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,94 @@ | ||
/**************************************************************************** | ||
** | ||
** 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 "Nucleo-F303K8" | ||
|
||
#include "hal_target.h" | ||
|
||
// Mapping | ||
#define HEADER_CONNECTOR_CN3_D1 PA9 | ||
#define HEADER_CONNECTOR_CN3_D2 PA10 | ||
#define HEADER_CONNECTOR_CN3_D3 // Pin not routed | ||
#define HEADER_CONNECTOR_CN3_D4 // Pin not routed | ||
#define HEADER_CONNECTOR_CN3_D5 PA12 | ||
#define HEADER_CONNECTOR_CN3_D6 PB0 | ||
#define HEADER_CONNECTOR_CN3_D7 PB7 | ||
#define HEADER_CONNECTOR_CN3_D8 PB6 | ||
#define HEADER_CONNECTOR_CN3_D9 PB1 | ||
#define HEADER_CONNECTOR_CN3_D10 PC14 | ||
#define HEADER_CONNECTOR_CN3_D11 PC15 | ||
#define HEADER_CONNECTOR_CN3_D12 PA8 | ||
#define HEADER_CONNECTOR_CN3_D13 PA11 | ||
#define HEADER_CONNECTOR_CN3_D14 PB5 | ||
#define HEADER_CONNECTOR_CN3_D15 PB4 | ||
|
||
#define HEADER_CONNECTOR_CN4_D1 // Pin not routed | ||
#define HEADER_CONNECTOR_CN4_D2 // Pin not routed | ||
#define HEADER_CONNECTOR_CN4_D3 // Pin not routed | ||
#define HEADER_CONNECTOR_CN4_D4 // Pin not routed | ||
#define HEADER_CONNECTOR_CN4_D5 PA2 | ||
#define HEADER_CONNECTOR_CN4_D6 PA7 | ||
#define HEADER_CONNECTOR_CN4_D7 PA6 | ||
#define HEADER_CONNECTOR_CN4_D8 PA5 | ||
#define HEADER_CONNECTOR_CN4_D9 PA4 | ||
#define HEADER_CONNECTOR_CN4_D10 PA3 | ||
#define HEADER_CONNECTOR_CN4_D11 PA1 | ||
#define HEADER_CONNECTOR_CN4_D12 PA0 | ||
#define HEADER_CONNECTOR_CN4_D13 // Pin not routed | ||
#define HEADER_CONNECTOR_CN4_D14 // Pin not routed | ||
#define HEADER_CONNECTOR_CN4_D15 PB3 | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // _BOARD_H_ | ||
// ------------------------------------------------------------------------- END |
This file contains 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
This file contains 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,30 @@ | ||
<p align="center"> | ||
<img src="http://www.mikroe.com/img/designs/beta/logo_small.png?raw=true" alt="MikroElektronika"/> | ||
</p> | ||
|
||
--- | ||
|
||
**[BACK TO PREVIOUS FILE](../changelog.md)** | ||
|
||
--- | ||
|
||
# 2024-09-17 | ||
|
||
## Changes | ||
|
||
- [2024-09-17](#2024-09-17) | ||
- [Changes](#changes) | ||
- [NEW HARDWARE](#new-hardware) | ||
|
||
### NEW HARDWARE | ||
|
||
Support added for following hardware: | ||
|
||
+ [Nucleo 32 with STM32F042K6 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-nucleo-boards/nucleo-f042k6.html) | ||
+ [Nucleo 32 with STM32F303K8 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-nucleo-boards/nucleo-f303k8.html) | ||
|
||
--- | ||
|
||
**[BACK TO PREVIOUS FILE](../changelog.md)** | ||
|
||
--- |
16 changes: 16 additions & 0 deletions
16
resources/queries/boards/board_nucleo_32_with_stm32f042k6/Boards.json
This file contains 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,16 @@ | ||
{ | ||
"uid": "NUCLEO_32_WITH_STM32F042K6_MCU", | ||
"name": "Nucleo 32 with STM32F042K6 MCU", | ||
"icon": "images/boards/board-nucleo-32.png", | ||
"default_device": "NULL", | ||
"soldered_device": "STM32F042K6", | ||
"category": "Development Systems", | ||
"mikrobus_count": 0, | ||
"sort_order": 6, | ||
"min_pin_count": 0, | ||
"display_socket": "NO_DISPLAY", | ||
"sdk_config": "{\"_MSDK_BOARD_NAME_\":\"BOARD_NUCLEO_32_WITH_STM32F042K6\"}", | ||
"necto_config": "NULL", | ||
"display": "NO_DISPLAY", | ||
"package_uid": "32/LQFP" | ||
} |
20 changes: 20 additions & 0 deletions
20
resources/queries/boards/board_nucleo_32_with_stm32f042k6/LinkerTables.json
This file contains 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,20 @@ | ||
{ | ||
"board_uid": "NUCLEO_32_WITH_STM32F042K6_MCU", | ||
"tables": [ | ||
{ | ||
"BoardToDevice": { | ||
"device_uid": "STM32F042K6" | ||
} | ||
}, | ||
{ | ||
"BoardToSocket": { | ||
"socket_uid": ["NONE"] | ||
} | ||
}, | ||
{ | ||
"SDKToBoard": { | ||
"sdk_uid": "2.11.2+" | ||
} | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
resources/queries/boards/board_nucleo_32_with_stm32f303k8/Boards.json
This file contains 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,16 @@ | ||
{ | ||
"uid": "NUCLEO_32_WITH_STM32F303K8_MCU", | ||
"name": "Nucleo 32 with STM32F303K8 MCU", | ||
"icon": "images/boards/board-nucleo-32.png", | ||
"default_device": "NULL", | ||
"soldered_device": "STM32F303K8", | ||
"category": "Development Systems", | ||
"mikrobus_count": 0, | ||
"sort_order": 6, | ||
"min_pin_count": 0, | ||
"display_socket": "NO_DISPLAY", | ||
"sdk_config": "{\"_MSDK_BOARD_NAME_\":\"BOARD_NUCLEO_32_WITH_STM32F303K8\"}", | ||
"necto_config": "NULL", | ||
"display": "NO_DISPLAY", | ||
"package_uid": "32/LQFP" | ||
} |
20 changes: 20 additions & 0 deletions
20
resources/queries/boards/board_nucleo_32_with_stm32f303k8/LinkerTables.json
This file contains 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,20 @@ | ||
{ | ||
"board_uid": "NUCLEO_32_WITH_STM32F303K8_MCU", | ||
"tables": [ | ||
{ | ||
"BoardToDevice": { | ||
"device_uid": "STM32F303K8" | ||
} | ||
}, | ||
{ | ||
"BoardToSocket": { | ||
"socket_uid": ["NONE"] | ||
} | ||
}, | ||
{ | ||
"SDKToBoard": { | ||
"sdk_uid": "2.11.2+" | ||
} | ||
} | ||
] | ||
} |