diff --git a/bsp/board/include/boards/board_digilent_cerebot_32mx7/board.cmake b/bsp/board/include/boards/board_digilent_cerebot_32mx7/board.cmake new file mode 100644 index 000000000..1287fcfcd --- /dev/null +++ b/bsp/board/include/boards/board_digilent_cerebot_32mx7/board.cmake @@ -0,0 +1,5 @@ +if(${_MSDK_BOARD_NAME_} STREQUAL "DIGILENT_CEREBOT_32MX7_DEVELOPMENT_BOARD") + set(BOARD_PATH "include/boards/board_digilent_cerebot_32mx7") + set(MCU_CARD FALSE) + set(SHIELD FALSE) +endif() diff --git a/bsp/board/include/boards/board_digilent_cerebot_32mx7/board.h b/bsp/board/include/boards/board_digilent_cerebot_32mx7/board.h new file mode 100644 index 000000000..79f937baa --- /dev/null +++ b/bsp/board/include/boards/board_digilent_cerebot_32mx7/board.h @@ -0,0 +1,167 @@ +/**************************************************************************** +** +** 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 "Digilent Cerebot 32MX7 Development Board" + +#include "hal_target.h" + +// Mapping +#define HEADER_CONNECTOR_CN1_D1 PB2 +#define HEADER_CONNECTOR_CN1_D2 PB3 +#define HEADER_CONNECTOR_CN1_D3 PB4 +#define HEADER_CONNECTOR_CN1_D4 PB6 +#define HEADER_CONNECTOR_CN1_D7 PB7 +#define HEADER_CONNECTOR_CN1_D8 PB8 +#define HEADER_CONNECTOR_CN1_D9 PB9 +#define HEADER_CONNECTOR_CN1_D10 PB10 + +#define HEADER_CONNECTOR_CN2_D1 PE0 +#define HEADER_CONNECTOR_CN2_D2 PE1 +#define HEADER_CONNECTOR_CN2_D3 PE2 +#define HEADER_CONNECTOR_CN2_D4 PE3 +#define HEADER_CONNECTOR_CN2_D7 PE4 +#define HEADER_CONNECTOR_CN2_D8 PE5 +#define HEADER_CONNECTOR_CN2_D9 PE6 +#define HEADER_CONNECTOR_CN2_D10 PE7 + +#define HEADER_CONNECTOR_CN3_D1 PC1 +#define HEADER_CONNECTOR_CN3_D2 PG0 +#define HEADER_CONNECTOR_CN3_D3 PG1 +#define HEADER_CONNECTOR_CN3_D4 PD7 +#define HEADER_CONNECTOR_CN3_D7 PB15 +#define HEADER_CONNECTOR_CN3_D8 PD5 +#define HEADER_CONNECTOR_CN3_D9 PD4 +#define HEADER_CONNECTOR_CN3_D10 PB14 + +#define HEADER_CONNECTOR_CN4_D1 PD9 +#define HEADER_CONNECTOR_CN4_D2 PD0 +#define HEADER_CONNECTOR_CN4_D3 PC4 +#define HEADER_CONNECTOR_CN4_D4 PD10 +#define HEADER_CONNECTOR_CN4_D7 PD1 +#define HEADER_CONNECTOR_CN4_D8 PD2 +#define HEADER_CONNECTOR_CN4_D9 PD3 +#define HEADER_CONNECTOR_CN4_D10 PD12 + +#define HEADER_CONNECTOR_CN5_D1 PD14 +#define HEADER_CONNECTOR_CN5_D2 PF8 +#define HEADER_CONNECTOR_CN5_D3 PF2 +#define HEADER_CONNECTOR_CN5_D4 PD15 +#define HEADER_CONNECTOR_CN5_D7 PA6 +#define HEADER_CONNECTOR_CN5_D8 PA7 +#define HEADER_CONNECTOR_CN5_D9 PA9 +#define HEADER_CONNECTOR_CN5_D10 PA10 + +#define HEADER_CONNECTOR_CN6_D1 PF12 +#define HEADER_CONNECTOR_CN6_D2 PF5 +#define HEADER_CONNECTOR_CN6_D3 PF4 +#define HEADER_CONNECTOR_CN6_D4 PF13 +#define HEADER_CONNECTOR_CN6_D7 PA0 +#define HEADER_CONNECTOR_CN6_D8 PA1 +#define HEADER_CONNECTOR_CN6_D9 PA4 +#define HEADER_CONNECTOR_CN6_D10 PA5 + +// I2C +#define I2C_SCL1 PA14 +#define I2C_SDA1 PA15 +#define I2C_SCL2 PA2 +#define I2C_SDA2 PA3 + +// USB +#define USB_VBUSON PB5 +#define USB_OVCURRENT PE8 +#define USB_USBID PF3 +#define USB_DP PG2 +#define USB_DM PG3 + +// ETHERNET +#define ETH_RXER PB11 +#define ETH_RXD0 PB12 +#define ETH_RXD1 PB13 +#define ETH_TXEN PD6 +#define ETH_MDIO PD8 +#define ETH_MDC PD11 +#define ETH_RST PE9 +#define ETH_TXD1 PF0 +#define ETH_TXD0 PF1 +#define ETH_CRS_DV PG8 +#define ETH_CLK PG9 + +// CAN +#define CAN2_TX PC2 +#define CAN2_RX PC3 +#define CAN1_RX PF12 +#define CAN1_TX PF13 + +// OSCILLATOR +#define OSC_OSC1 PC12 +#define OSC_SOSCI PC13 +#define OSC_SOSCO PC14 +#define OSC_OSC2 PC15 + +// BUTTONS +#define BUTTON_1 PG6 +#define BUTTON_2 PG7 +#define BUTTON_3 PD13 + +// LEDS +#define LED_1 PG12 +#define LED_2 PG13 +#define LED_3 PG14 +#define LED_4 PG15 + + + +#ifdef __cplusplus +} +#endif + +#endif // _BOARD_H_ +// ------------------------------------------------------------------------- END diff --git a/changelog/v2.12.0/changelog.md b/changelog/v2.12.0/changelog.md index 3ee9a3b4a..55551fc36 100644 --- a/changelog/v2.12.0/changelog.md +++ b/changelog/v2.12.0/changelog.md @@ -57,6 +57,7 @@ Support added for following hardware: + **[2024-11-26](./new_hw/2024-11-26.md)** + **[2024-11-27](./new_hw/2024-11-27.md)** + **[2024-11-28](./new_hw/2024-11-28.md)** ++ **[2024-11-29](./new_hw/2024-11-29.md)** --- diff --git a/changelog/v2.12.0/new_hw/2024-11-29.md b/changelog/v2.12.0/new_hw/2024-11-29.md new file mode 100644 index 000000000..ef80e8dc3 --- /dev/null +++ b/changelog/v2.12.0/new_hw/2024-11-29.md @@ -0,0 +1,30 @@ +

+ MikroElektronika +

+ +--- + +**[BACK TO PREVIOUS FILE](../changelog.md)** + +--- + +# 2024-11-29 + +## Changes + +- [2024-11-29](#2024-11-29) + - [Changes](#changes) + - [NEW HARDWARE](#new-hardware) + +### NEW HARDWARE + +Support added for following hardware: + ++ [Digilent Cerebot 32MX7 Development Board](https://mplab-discover.microchip.com/v2/item/com.microchip.portal.evalboard/com.microchip.subcategories.modules-and-peripherals.communication.can.Others/mcu08.tdgl004/1.0.0?view=about) ++ [MCU CARD 5 for Kinetis MKV42F256VLH16](https://www.mikroe.com/mcu-card-5-for-kinetis-mkv42f256vlh16) + +--- + +**[BACK TO PREVIOUS FILE](../changelog.md)** + +--- diff --git a/resources/images/boards/board-digilent-cerebot-32mx7.png b/resources/images/boards/board-digilent-cerebot-32mx7.png new file mode 100644 index 000000000..5ddcf9046 Binary files /dev/null and b/resources/images/boards/board-digilent-cerebot-32mx7.png differ diff --git a/resources/queries/boards/board_digilent_cerebot_32mx7/Boards.json b/resources/queries/boards/board_digilent_cerebot_32mx7/Boards.json new file mode 100644 index 000000000..d0342a89f --- /dev/null +++ b/resources/queries/boards/board_digilent_cerebot_32mx7/Boards.json @@ -0,0 +1,16 @@ +{ + "uid": "DIGILENT_CEREBOT_32MX7_DEVELOPMENT_BOARD", + "name": "Digilent Cerebot 32MX7 Development Board", + "icon": "images/boards/board-digilent-cerebot-32mx7.png", + "default_device": "", + "soldered_device": "PIC32MX795F512L", + "category": "Development Systems", + "mikrobus_count": 0, + "sort_order": 6, + "min_pin_count": 0, + "display_socket": "NO_DISPLAY", + "sdk_config": "{\"_MSDK_BOARD_NAME_\":\"DIGILENT_CEREBOT_32MX7_DEVELOPMENT_BOARD\"}", + "necto_config": "", + "display": "NO_DISPLAY", + "package_uid": "100/TQFP" +} diff --git a/resources/queries/boards/board_digilent_cerebot_32mx7/LinkerTables.json b/resources/queries/boards/board_digilent_cerebot_32mx7/LinkerTables.json new file mode 100644 index 000000000..f327823c6 --- /dev/null +++ b/resources/queries/boards/board_digilent_cerebot_32mx7/LinkerTables.json @@ -0,0 +1,20 @@ +{ + "board_uid": "DIGILENT_CEREBOT_32MX7_DEVELOPMENT_BOARD", + "tables": [ + { + "BoardToDevice": { + "device_uid": "PIC32MX795F512L" + } + }, + { + "BoardToSocket": { + "socket_uid": ["NONE"] + } + }, + { + "SDKToBoard": { + "sdk_uid": "2.11.2+" + } + } + ] +} diff --git a/resources/queries/cards/mcu_card_5_for_kinetis_mkv42f256vlh16/Devices.json b/resources/queries/cards/mcu_card_5_for_kinetis_mkv42f256vlh16/Devices.json new file mode 100644 index 000000000..3cdde88b9 --- /dev/null +++ b/resources/queries/cards/mcu_card_5_for_kinetis_mkv42f256vlh16/Devices.json @@ -0,0 +1,18 @@ +{ + "def_file":"MKV42F256VLH16.json", + "family_uid":"KINETIS_V_SERIES", + "flash":"256", + "icon":"images/mcu_cards/mcu-card-5-for-kinetis.png", + "max_speed":"160.000", + "name":"MCU CARD 5 for Kinetis MKV42F256VLH16", + "ram":"32768", + "sdk_config":"{\"MCU_NAME\":\"MKV42F256VLH16\",\"CORE_NAME\":\"M4EF\",\"_MSDK_HAL_LOW_LEVEL_TARGET_\":\"mikroe\",\"_MSDK_ETH_PHY_CHIP_\":\"NULL\",\"_MSDK_MCU_CARD_NAME_\":\"MCU_CARD_5_FOR_KINETIS\"}", + "necto_config":"", + "uid":"MCU_CARD_5_FOR_KINETIS_MKV42F256VLH16", + "vendor":"NXP", + "compiler_flags":"", + "linker_flags":"", + "tft_socket":"1", + "sdk_support":"1", + "installer_package":"{\"package\":\"mcu_card_5_for_kinetis_mkv42f256vlh16\"}" +} diff --git a/resources/queries/cards/mcu_card_5_for_kinetis_mkv42f256vlh16/LinkerTables.json b/resources/queries/cards/mcu_card_5_for_kinetis_mkv42f256vlh16/LinkerTables.json new file mode 100644 index 000000000..e13d7be3c --- /dev/null +++ b/resources/queries/cards/mcu_card_5_for_kinetis_mkv42f256vlh16/LinkerTables.json @@ -0,0 +1,39 @@ +{ + "device_uid": "MCU_CARD_5_FOR_KINETIS_MKV42F256VLH16", + "tables": [ + { + "BoardToDevice": { + "board_uid": [ + "FUSION_FOR_ARM_V8", + "FUSION_FOR_KINETIS_V8", + "UNI_CLICKER", + "UNI_DS_V8" + ] + } + }, + { + "CompilerToDevice": { + "compiler_uid": [ + "clang-llvm", + "gcc_arm_none_eabi", + "mikrocarm" + ] + } + }, + { + "DeviceToPackage": { + "package_uid": ["64/LQFP"] + } + }, + { + "DeviceToSocket": { + "socket_uid": ["SIBRAIN_SOCKET"] + } + }, + { + "SDKToDevice": { + "sdk_uid": "2.11.2+" + } + } + ] +}