diff --git a/apix-adc-example/README.md b/apix-adc-example/README.md index c56d67d..2185721 100644 --- a/apix-adc-example/README.md +++ b/apix-adc-example/README.md @@ -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 diff --git a/apix-can-examples/README.md b/apix-can-examples/README.md index 7d66bdf..c45334a 100644 --- a/apix-can-examples/README.md +++ b/apix-can-examples/README.md @@ -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 diff --git a/apix-gpio-example/README.md b/apix-gpio-example/README.md index 1fb8723..5676c84 100644 --- a/apix-gpio-example/README.md +++ b/apix-gpio-example/README.md @@ -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) diff --git a/apix-i2c-example/README.md b/apix-i2c-example/README.md index fc75152..3c3663e 100644 --- a/apix-i2c-example/README.md +++ b/apix-i2c-example/README.md @@ -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 diff --git a/apix-pwm-example/README.md b/apix-pwm-example/README.md index 8e98020..fedd188 100644 --- a/apix-pwm-example/README.md +++ b/apix-pwm-example/README.md @@ -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). diff --git a/apix-spi-example/README.md b/apix-spi-example/README.md index f0129e0..b7b9426 100644 --- a/apix-spi-example/README.md +++ b/apix-spi-example/README.md @@ -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 diff --git a/connectcore-demo-example/index.html b/connectcore-demo-example/index.html index bc81543..7a04e48 100644 --- a/connectcore-demo-example/index.html +++ b/connectcore-demo-example/index.html @@ -756,6 +756,7 @@ Digi Demo - Dashboard + diff --git a/connectcore-demo-example/management.html b/connectcore-demo-example/management.html index 3ce3b50..1542142 100644 --- a/connectcore-demo-example/management.html +++ b/connectcore-demo-example/management.html @@ -295,6 +295,7 @@ Digi Demo - Management + diff --git a/connectcore-demo-example/multimedia.html b/connectcore-demo-example/multimedia.html index 393d421..8e5def9 100644 --- a/connectcore-demo-example/multimedia.html +++ b/connectcore-demo-example/multimedia.html @@ -236,6 +236,7 @@ Digi Demo - Multimedia + diff --git a/connectcore-demo-example/network.html b/connectcore-demo-example/network.html index a5e9e11..8cb7a3d 100644 --- a/connectcore-demo-example/network.html +++ b/connectcore-demo-example/network.html @@ -448,6 +448,7 @@ Digi Demo - Network + diff --git a/connectcore-demo-example/static/images/ccmp25-dvk_board.png b/connectcore-demo-example/static/images/ccmp25-dvk_board.png new file mode 100644 index 0000000..cf03906 Binary files /dev/null and b/connectcore-demo-example/static/images/ccmp25-dvk_board.png differ diff --git a/connectcore-demo-example/static/js/ccmp255-dvk.js b/connectcore-demo-example/static/js/ccmp255-dvk.js new file mode 100644 index 0000000..76b5922 --- /dev/null +++ b/connectcore-demo-example/static/js/ccmp255-dvk.js @@ -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); + } +} diff --git a/connectcore-demo-example/static/js/common.js b/connectcore-demo-example/static/js/common.js index a49cbe4..eacfa67 100644 --- a/connectcore-demo-example/static/js/common.js +++ b/connectcore-demo-example/static/js/common.js @@ -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 diff --git a/connectcore-demo-example/static/js/dashboard.js b/connectcore-demo-example/static/js/dashboard.js index 4f979cb..2ef8eb5 100644 --- a/connectcore-demo-example/static/js/dashboard.js +++ b/connectcore-demo-example/static/js/dashboard.js @@ -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; diff --git a/samples-manifest.xml b/samples-manifest.xml index 4819f24..b3b1052 100644 --- a/samples-manifest.xml +++ b/samples-manifest.xml @@ -20,6 +20,7 @@ application takes periodic samples and prints the raw value and the value in mv. ccimx93-dvk ccmp15-dvk ccmp13-dvk + ccmp25-dvk @@ -42,6 +43,7 @@ reception using the selected baudrate. ccimx93-dvk ccmp15-dvk ccmp13-dvk + ccmp25-dvk @@ -65,6 +67,7 @@ whenever an interrupt is generated in the input GPIO. ccimx93-dvk ccmp15-dvk ccmp13-dvk + ccmp25-dvk @@ -87,6 +90,7 @@ Afterward, it reads the data back to validate it (tested with 24FC1026). ccimx93-dvk ccmp15-dvk ccmp13-dvk + ccmp25-dvk @@ -108,6 +112,7 @@ frequencies, and governors. ccimx8mm-dvk ccmp15-dvk ccmp13-dvk + ccmp25-dvk @@ -130,6 +135,7 @@ vice-versa. ccimx8mm-dvk ccmp15-dvk ccmp13-dvk + ccmp25-dvk @@ -152,6 +158,7 @@ the page size and the address size in bytes. ccimx93-dvk ccmp15-dvk ccmp13-dvk + ccmp25-dvk @@ -175,6 +182,7 @@ then the device will reboot automatically after the timeout expires. ccimx93-dvk ccmp15-dvk ccmp13-dvk + ccmp25-dvk @@ -197,6 +205,7 @@ GATT services and characteristics. ccimx93-dvk ccmp15-dvk ccmp13-dvk + ccmp25-dvk @@ -244,6 +253,7 @@ When this request arrives the application sends back the current time. ccimx93-dvk ccmp15-dvk ccmp13-dvk + ccmp25-dvk @@ -268,6 +278,7 @@ The uploads takes place every 10 new samples, that is every 50 seconds. ccimx93-dvk ccmp15-dvk ccmp13-dvk + ccmp25-dvk @@ -291,6 +302,7 @@ to stream `binary_dp`. ccimx93-dvk ccmp15-dvk ccmp13-dvk + ccmp25-dvk @@ -311,6 +323,7 @@ Example application to enable/disable maintenance status. ccimx93-dvk ccmp15-dvk ccmp13-dvk + ccmp25-dvk