ccmp25: add support for the ConnectCore MP2 platform

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
Arturo Buzarra 2024-03-05 12:18:06 +01:00
parent 81354f402f
commit a326832902
15 changed files with 207 additions and 2 deletions

View File

@ -9,6 +9,7 @@ application takes periodic samples and prints the raw value and the value in mv.
The ADC lines used in this example are mapped as follows in the Digi boards:
- **ConnectCore MP13 DVK**: ADC1_INP14 (MikroBus socket, J31, Pin 1).
- **ConnectCore MP15 DVK**: AN0 (GPIO connector, J41, Pin 4).
- **ConnectCore MP25 DVK**: ANA0 (GPIO connector, J8, Pin 19).
- **ConnectCore 8M Mini DVK**: MCA_IO1 (channel 1) at XBEE1_UART_TX. By default
this ADC channel is not enabled, you need to modify the device tree.
- **ConnectCore 8M Nano DVK**: MCA_IO1 (channel 1) at XBEE1_UART_TX. By default

View File

@ -24,6 +24,11 @@ The CAN interface for this example depends on the running platform:
- CAN1_H: Pin 2
- CAN1_L: Pin 3
- GND: Pin 4
- **ConnectCore MP25 DVK**: CAN connector of the board (J14).
- 5V: Pin 1
- CAN1_H: Pin 2
- CAN1_L: Pin 3
- GND: Pin 4
- **ConnectCore 8M Mini DVK**: CAN connector of the board (J24).
- 5V: Pin 1
- CAN1_H: Pin 2

View File

@ -15,6 +15,9 @@ The GPIOs lines used in this example are mapped as follows in the Digi boards:
- **ConnectCore MP15 DVK**:
- User button: GPIOA,13 (User Button 1 in the board)
- User led: GPIOC,3 (ULED in the board)
- **ConnectCore MP25 DVK**:
- User button: GPIOF,10 (User Button 1 in the board)
- User led: GPIOF,5 (ULED in the board)
- **ConnectCore 8M Mini DVK**:
- User button: MCA_IO10 (User Button 1 in the board)
- User led: USER_LED1 (User Led 1 in the board)

View File

@ -18,6 +18,11 @@ The I2C connections for this example depend on the running platform:
- GND: Pin 8
- I2C-6 SDA: Pin 6
- I2C-6 SCL: Pin 5
- **ConnectCore MP25 DVK**: MikroBus connector (J40).
- VCC: Pin 7
- GND: Pin 8
- I2C-2 SDA: Pin 6
- I2C-2 SCL: Pin 5
- **ConnectCore 8M Mini DVK**: Expansion connector of the board (J48).
- VCC: Connector J52 Pin 7
- GND: Pin 9

View File

@ -11,6 +11,7 @@ The PWM lines used in this example are mapped as follows in the Digi boards:
- **ConnectCore MP13 DVK**: MikroBus PWM channel 8 - PIN **1** of the MikroBus connector (J31). Need to add the overlay _ov_board_pwm8_ccmp13-dvk.dtbo
- **ConnectCore MP15 DVK**: MikroBus PWM channel 4 - PIN **1** of the MikroBus connector (J31).
- **ConnectCore MP25 DVK**: MikroBus PWM channel 4 - PIN **1** of the MikroBus connector (J40).
- **ConnectCore 8M Mini DVK**: MCA PWM0 channel 2 connected to the LED1.
- **ConnectCore 8M Nano DVK**: MCA PWM0 channel 2 connected to the LED1.
- **ConnectCore 8X SBC Pro**: MCA PWM2 channel 0 - Pin **A3** of the Expansion connector (J20).

View File

@ -25,6 +25,13 @@ The SPI connections for this example depends on the running platform:
- SPI-0 MISO: 5
- SPI-0 MOSI: 6
- SPI-0 SS0: 3
- **ConnectCore MP25 DVK**: MikroBus connector (J39).
- VCC: Pin 7
- GND: Pin 8
- SPI-0 CLK: 4
- SPI-0 MISO: 5
- SPI-0 MOSI: 6
- SPI-0 SS0: 3
- **ConnectCore 8X SBC Pro**: Expansion connector of the board (J27).
- VCC: Pin D1
- GND: Pin C1

View File

@ -756,6 +756,7 @@ Digi Demo - Dashboard
<script type="text/javascript" src="./static/js/sidebar.js"></script>
<script type="text/javascript" src="./static/js/ccmp133-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccmp157-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccmp255-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccimx6ulsbc.js"></script>
<script type="text/javascript" src="./static/js/ccimx8mm-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccimx8m-nano.js"></script>

View File

@ -295,6 +295,7 @@ Digi Demo - Management
<script type="text/javascript" src="./static/js/sidebar.js"></script>
<script type="text/javascript" src="./static/js/ccmp133-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccmp157-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccmp255-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccimx6ulsbc.js"></script>
<script type="text/javascript" src="./static/js/ccimx8mm-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccimx8m-nano.js"></script>

View File

@ -236,6 +236,7 @@ Digi Demo - Multimedia
<script type="text/javascript" src="./static/js/sidebar.js"></script>
<script type="text/javascript" src="./static/js/ccmp133-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccmp157-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccmp255-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccimx6ulsbc.js"></script>
<script type="text/javascript" src="./static/js/ccimx8mm-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccimx8m-nano.js"></script>

View File

@ -448,6 +448,7 @@ Digi Demo - Network
<script type="text/javascript" src="./static/js/sidebar.js"></script>
<script type="text/javascript" src="./static/js/ccmp133-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccmp157-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccmp255-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccimx6ulsbc.js"></script>
<script type="text/javascript" src="./static/js/ccimx8mm-dvk.js"></script>
<script type="text/javascript" src="./static/js/ccimx8m-nano.js"></script>

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 KiB

View File

@ -0,0 +1,163 @@
/*
* Copyright (C) 2024, Digi International Inc.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
class CCMP255 extends ConnectCoreDevice {
// Public constants.
static DEVICE_TYPE = "ccmp255-dvk";
static PLATFORM_NAME = "ConnectCore MP255";
// Variables.
BOARD_IMAGE = "ccmp25-dvk_board.png";
BOARD_IMAGE_SCALE = 82;
CPU_COMPONENT_VISIBLE = true;
CPU_COMPONENT_HAS_PANEL = true;
CPU_COMPONENT_HAS_ARROW = true;
CPU_COMPONENT_PANEL_ALWAYS_VISIBLE = false;
CPU_COMPONENT_PANEL_ORIENTATION = VALUE_RIGHT;
CPU_COMPONENT_PANEL_HORIZONTAL_PERCENT = 61.5;
CPU_COMPONENT_PANEL_VERTICAL_PERCENT = 43;
CPU_COMPONENT_ARROW_PERCENT = 52.5;
CPU_COMPONENT_AREA_TOP_PERCENT = 48.5;
CPU_COMPONENT_AREA_LEFT_PERCENT = 40;
CPU_COMPONENT_AREA_WIDTH_PERCENT = 7.2;
CPU_COMPONENT_AREA_HEIGHT_PERCENT = 9.6;
MEMORY_COMPONENT_VISIBLE = true;
MEMORY_COMPONENT_HAS_PANEL = true;
MEMORY_COMPONENT_HAS_ARROW = true;
MEMORY_COMPONENT_PANEL_ALWAYS_VISIBLE = false;
MEMORY_COMPONENT_PANEL_ORIENTATION = VALUE_BOTTOM;
MEMORY_COMPONENT_PANEL_HORIZONTAL_PERCENT = 25;
MEMORY_COMPONENT_PANEL_VERTICAL_PERCENT = 62;
MEMORY_COMPONENT_ARROW_PERCENT = 43;
MEMORY_COMPONENT_AREA_TOP_PERCENT = 37.4;
MEMORY_COMPONENT_AREA_LEFT_PERCENT = 38.3;
MEMORY_COMPONENT_AREA_WIDTH_PERCENT = 9.8;
MEMORY_COMPONENT_AREA_HEIGHT_PERCENT = 9.2;
WIFI_BT_COMPONENT_VISIBLE = true;
WIFI_BT_COMPONENT_HAS_PANEL = true;
WIFI_BT_COMPONENT_HAS_ARROW = true;
WIFI_BT_COMPONENT_PANEL_ALWAYS_VISIBLE = false;
WIFI_BT_COMPONENT_PANEL_ORIENTATION = VALUE_LEFT;
WIFI_BT_COMPONENT_PANEL_HORIZONTAL_PERCENT = 57;
WIFI_BT_COMPONENT_PANEL_VERTICAL_PERCENT = 22;
WIFI_BT_COMPONENT_ARROW_PERCENT = 41.5;
WIFI_BT_COMPONENT_AREA_TOP_PERCENT = 37.5;
WIFI_BT_COMPONENT_AREA_LEFT_PERCENT = 49.5;
WIFI_BT_COMPONENT_AREA_WIDTH_PERCENT = 5.9;
WIFI_BT_COMPONENT_AREA_HEIGHT_PERCENT = 7.9;
ETHERNET0_COMPONENT_VISIBLE = true;
ETHERNET0_COMPONENT_HAS_PANEL = true;
ETHERNET0_COMPONENT_HAS_ARROW = true;
ETHERNET0_COMPONENT_PANEL_ALWAYS_VISIBLE = false;
ETHERNET0_COMPONENT_PANEL_ORIENTATION = VALUE_TOP;
ETHERNET0_COMPONENT_PANEL_HORIZONTAL_PERCENT = 61;
ETHERNET0_COMPONENT_PANEL_VERTICAL_PERCENT = 22.5;
ETHERNET0_COMPONENT_ARROW_PERCENT = 62.5;
ETHERNET0_COMPONENT_AREA_TOP_PERCENT = 2;
ETHERNET0_COMPONENT_AREA_LEFT_PERCENT = 58.5;
ETHERNET0_COMPONENT_AREA_WIDTH_PERCENT = 9.8;
ETHERNET0_COMPONENT_AREA_HEIGHT_PERCENT = 17;
ETHERNET1_COMPONENT_VISIBLE = true;
ETHERNET1_COMPONENT_HAS_PANEL = true;
ETHERNET1_COMPONENT_HAS_ARROW = true;
ETHERNET1_COMPONENT_PANEL_ALWAYS_VISIBLE = false;
ETHERNET1_COMPONENT_PANEL_ORIENTATION = VALUE_TOP;
ETHERNET1_COMPONENT_PANEL_HORIZONTAL_PERCENT = 5;
ETHERNET1_COMPONENT_PANEL_VERTICAL_PERCENT = 22.5;
ETHERNET1_COMPONENT_ARROW_PERCENT = 32.5;
ETHERNET1_COMPONENT_AREA_TOP_PERCENT = 2;
ETHERNET1_COMPONENT_AREA_LEFT_PERCENT = 29.2;
ETHERNET1_COMPONENT_AREA_WIDTH_PERCENT = 9.8;
ETHERNET1_COMPONENT_AREA_HEIGHT_PERCENT = 17;
CONSOLE_COMPONENT_VISIBLE = true;
CONSOLE_COMPONENT_HAS_PANEL = false;
CONSOLE_COMPONENT_HAS_ARROW = false;
CONSOLE_COMPONENT_PANEL_ALWAYS_VISIBLE = false;
CONSOLE_COMPONENT_AREA_TOP_PERCENT = 22.1;
CONSOLE_COMPONENT_AREA_LEFT_PERCENT = 89.8;
CONSOLE_COMPONENT_AREA_WIDTH_PERCENT = 4.9;
CONSOLE_COMPONENT_AREA_HEIGHT_PERCENT = 6.2;
VIDEO_COMPONENT_VISIBLE = true;
VIDEO_COMPONENT_HAS_PANEL = true;
VIDEO_COMPONENT_HAS_ARROW = true;
VIDEO_COMPONENT_PANEL_ALWAYS_VISIBLE = false;
VIDEO_COMPONENT_PANEL_ORIENTATION = VALUE_BOTTOM;
VIDEO_COMPONENT_PANEL_HORIZONTAL_PERCENT = 55;
VIDEO_COMPONENT_PANEL_VERTICAL_PERCENT = 51.8;
VIDEO_COMPONENT_ARROW_PERCENT = 89;
VIDEO_COMPONENT_AREA_TOP_PERCENT = 49.5;
VIDEO_COMPONENT_AREA_LEFT_PERCENT = 86.8;
VIDEO_COMPONENT_AREA_WIDTH_PERCENT = 8.4;
VIDEO_COMPONENT_AREA_HEIGHT_PERCENT = 11.8;
AUDIO_COMPONENT_VISIBLE = true;
AUDIO_COMPONENT_HAS_PANEL = true;
AUDIO_COMPONENT_HAS_ARROW = true;
AUDIO_COMPONENT_PANEL_ALWAYS_VISIBLE = false;
AUDIO_COMPONENT_PANEL_ORIENTATION = VALUE_TOP;
AUDIO_COMPONENT_PANEL_HORIZONTAL_PERCENT = 0;
AUDIO_COMPONENT_PANEL_VERTICAL_PERCENT = 20;
AUDIO_COMPONENT_ARROW_PERCENT = 18;
AUDIO_COMPONENT_AREA_TOP_PERCENT = 5;
AUDIO_COMPONENT_AREA_LEFT_PERCENT = 17.8;
AUDIO_COMPONENT_AREA_WIDTH_PERCENT = 5.3;
AUDIO_COMPONENT_AREA_HEIGHT_PERCENT = 11.6;
LED_COMPONENT_VISIBLE = true;
LED_COMPONENT_HAS_PANEL = true;
LED_COMPONENT_HAS_ARROW = false;
LED_COMPONENT_PANEL_ALWAYS_VISIBLE = true;
LED_COMPONENT_PANEL_ORIENTATION = VALUE_BOTTOM;
LED_COMPONENT_PANEL_HORIZONTAL_PERCENT = 69;
LED_COMPONENT_PANEL_VERTICAL_PERCENT = 10;
LED_COMPONENT_AREA_TOP_PERCENT = 26;
LED_COMPONENT_AREA_LEFT_PERCENT = 10;
LED_COMPONENT_AREA_WIDTH_PERCENT = 1.8;
LED_COMPONENT_AREA_HEIGHT_PERCENT = 4;
FLASH_MEMORY_COMPONENT_VISIBLE = true;
FLASH_MEMORY_COMPONENT_HAS_PANEL = true;
FLASH_MEMORY_COMPONENT_HAS_ARROW = true;
FLASH_MEMORY_COMPONENT_PANEL_ALWAYS_VISIBLE = false;
FLASH_MEMORY_COMPONENT_PANEL_ORIENTATION = VALUE_TOP;
FLASH_MEMORY_COMPONENT_PANEL_HORIZONTAL_PERCENT = 40;
FLASH_MEMORY_COMPONENT_PANEL_VERTICAL_PERCENT = 60.2;
FLASH_MEMORY_COMPONENT_ARROW_PERCENT = 50;
FLASH_MEMORY_COMPONENT_AREA_TOP_PERCENT = 50;
FLASH_MEMORY_COMPONENT_AREA_LEFT_PERCENT = 48;
FLASH_MEMORY_COMPONENT_AREA_WIDTH_PERCENT = 8;
FLASH_MEMORY_COMPONENT_AREA_HEIGHT_PERCENT = 9;
// Capabilities
SUPPORTS_VIDEO_BRIGHTNESS = false;
SUPPORTS_DUAL_ETHERNET = true;
// Misc info
PCB_COLOR = ID_COLOR_BLUE;
// Constructor.
constructor(deviceData) {
super(CCMP255.DEVICE_TYPE, CCMP255.PLATFORM_NAME, deviceData);
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2022, 2023, Digi International Inc.
* Copyright 2022-2024, Digi International Inc.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this

View File

@ -1,5 +1,5 @@
/*
* Copyright 2022, 2023, Digi International Inc.
* Copyright (C) 2022-2024, Digi International Inc.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
@ -376,6 +376,9 @@ function createDevice(deviceData) {
case CCMP133.DEVICE_TYPE:
device = new CCMP133(deviceData);
break;
case CCMP255.DEVICE_TYPE:
device = new CCMP255(deviceData);
break;
case CCIMX93.DEVICE_TYPE:
device = new CCIMX93(deviceData);
break;

View File

@ -20,6 +20,7 @@ application takes periodic samples and prints the raw value and the value in mv.
<platform>ccimx93-dvk</platform>
<platform>ccmp15-dvk</platform>
<platform>ccmp13-dvk</platform>
<platform>ccmp25-dvk</platform>
</platforms>
</sample>
<sample id="apix-can-samples">
@ -42,6 +43,7 @@ reception using the selected baudrate.
<platform>ccimx93-dvk</platform>
<platform>ccmp15-dvk</platform>
<platform>ccmp13-dvk</platform>
<platform>ccmp25-dvk</platform>
</platforms>
</sample>
<sample id="apix-gpio-sample">
@ -65,6 +67,7 @@ whenever an interrupt is generated in the input GPIO.
<platform>ccimx93-dvk</platform>
<platform>ccmp15-dvk</platform>
<platform>ccmp13-dvk</platform>
<platform>ccmp25-dvk</platform>
</platforms>
</sample>
<sample id="apix-i2c-sample">
@ -87,6 +90,7 @@ Afterward, it reads the data back to validate it (tested with 24FC1026).
<platform>ccimx93-dvk</platform>
<platform>ccmp15-dvk</platform>
<platform>ccmp13-dvk</platform>
<platform>ccmp25-dvk</platform>
</platforms>
</sample>
<sample id="apix-pm-sample">
@ -108,6 +112,7 @@ frequencies, and governors.
<platform>ccimx8mm-dvk</platform>
<platform>ccmp15-dvk</platform>
<platform>ccmp13-dvk</platform>
<platform>ccmp25-dvk</platform>
</platforms>
</sample>
<sample id="apix-pwm-sample">
@ -130,6 +135,7 @@ vice-versa.
<platform>ccimx8mm-dvk</platform>
<platform>ccmp15-dvk</platform>
<platform>ccmp13-dvk</platform>
<platform>ccmp25-dvk</platform>
</platforms>
</sample>
<sample id="apix-spi-sample">
@ -152,6 +158,7 @@ the page size and the address size in bytes.
<platform>ccimx93-dvk</platform>
<platform>ccmp15-dvk</platform>
<platform>ccmp13-dvk</platform>
<platform>ccmp25-dvk</platform>
</platforms>
</sample>
<sample id="apix-watchdog-sample">
@ -175,6 +182,7 @@ then the device will reboot automatically after the timeout expires.
<platform>ccimx93-dvk</platform>
<platform>ccmp15-dvk</platform>
<platform>ccmp13-dvk</platform>
<platform>ccmp25-dvk</platform>
</platforms>
</sample>
<sample id="ble-gat-server-example">
@ -197,6 +205,7 @@ GATT services and characteristics.
<platform>ccimx93-dvk</platform>
<platform>ccmp15-dvk</platform>
<platform>ccmp13-dvk</platform>
<platform>ccmp25-dvk</platform>
</platforms>
</sample>
<sample id="caam-blob-example">
@ -244,6 +253,7 @@ When this request arrives the application sends back the current time.
<platform>ccimx93-dvk</platform>
<platform>ccmp15-dvk</platform>
<platform>ccmp13-dvk</platform>
<platform>ccmp25-dvk</platform>
</platforms>
</sample>
<sample id="cccs-upload-data-points-example">
@ -268,6 +278,7 @@ The uploads takes place every 10 new samples, that is every 50 seconds.
<platform>ccimx93-dvk</platform>
<platform>ccmp15-dvk</platform>
<platform>ccmp13-dvk</platform>
<platform>ccmp25-dvk</platform>
</platforms>
</sample>
<sample id="cccs-upload-binary-file-example">
@ -291,6 +302,7 @@ to stream `binary_dp`.
<platform>ccimx93-dvk</platform>
<platform>ccmp15-dvk</platform>
<platform>ccmp13-dvk</platform>
<platform>ccmp25-dvk</platform>
</platforms>
</sample>
<sample id="cccs-maintenance-status-example">
@ -311,6 +323,7 @@ Example application to enable/disable maintenance status.
<platform>ccimx93-dvk</platform>
<platform>ccmp15-dvk</platform>
<platform>ccmp13-dvk</platform>
<platform>ccmp25-dvk</platform>
</platforms>
</sample>
</samples>