Hello,
I recently updated my system to Torizon OS 7 and encountered two major issues when trying to run my application on the Cortex-M4 and enable SPI communication.
Issue 1: Cortex-M4 Program Prevents System Booting
I have a project where I load a program onto the Cortex-M4 and communicate with it via rpmsg from Linux. The setup worked perfectly on Torizon OS 6, but after upgrading to Torizon OS 7, the system fails to boot whenever I load my M4 program. The kernel does not start, and the board continuously reboots.
I also tried running the Hello World example from the MCUXpresso SDK, but it resulted in the same issue. However, when I remove the uploaded program form U-Boot, the system boots normally.
I followed these instructions for loading the M4 firmware:
How to Load Binaries on Cortex-M
Hello World Cortex-M Example
Issue 2: SPI Device Missing Under /sys/bus/spi/devices
After updating to Torizon OS 7 and applying my device tree overlay, I am no longer able to find the SPI device under /sys/bus/spi/devices
.
Here is my device tree overlay:
/dts-v1/;
/plugin/;
/ {
compatible = "toradex,colibri-imx8x-eval-v3";
};
&lpspi2 {
status = "okay";
spi-slave;
slave@0 {
compatible = "toradex,evalspi";
reg = <0>; // Chip select 0
spi-max-frequency = <2000000>;
spi-cpha; // Clock phase
spi-cpol; // Clock polarity
status = "okay";
};
};
&mcp2515 {
status = "disabled";
};
This exact setup worked on Torizon OS 6, but now the SPI device does not appear under /sys/bus/spi/devices.
Has anyone encountered similar issues after updating to Torizon OS 7?
Any insights on what changes might be affecting the M4 boot process or SPI device detection?
Software and Hardware infos:
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 6.6.54-7.1.0-g3493ccd66900 #1-Torizon SMP PREEMPT Tue Dec 17 21:04:41 UTC 2024
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.0/torizon/73741213d16339fd40639896f377654090019de0802df51ff67e7c55e2ef3b44/0
Distro name: NAME="Torizon OS"
Distro version: VERSION_ID=7.1.0-build.4
Distro variant: VARIANT="Docker"
Hostname: colibri-imx8x-15339097
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Colibri iMX8QXP on Colibri Evaluation Board V3
Toradex version: 0038 V1.0E
Serial number: 15339097
Processor arch: aarch64
------------------------------------------------------------
Thanks in advance for your help!