2024-09-09 08:15 PM
Hi,
I am debugging the STM32MP257F-EV1 board with a debugger via JTAG/SWD. The kernel version is 6.1.82.
To provide complete debug access and to prevent the JTAG/SWD from shutting down when the CPU is idle, I think [CONFIG_CPU_IDLE] has to be disabled. But, boot messages from the kernel stop midway after [CONFIG_CPU_IDLE] is disabled.
I have confirmed that the CPU is still executing through the debugger, but the terminal/prompt is not available.
Upon checking. I found that [CONFIG_ARM_PSCI_CPUIDLE] may be the issue. When [CONFIG_CPU_IDLE] is disabled, [CONFIG_ARM_PSCI_CPUIDLE] is automatically disabled as well.
Since various devices use the PSCI driver, I think disabling [CONFIG_ARM_PSCI_CPUIDLE] will render some peripherals in non-usable state. Please see the attached log file "Boot-message.log" for the kernel boot messages.
In this context, I have the following questions:
1. Is there a way to disable CONFIG_ARM_PSCI_CPUIDLE or CONFIG_CPU_IDLE and get the board to work normally?
2. Are there any settings that'll keep the JTAG/SWD enabled always (always accessible)?
The default kernel config file [Kernel-default.config.txt] is attached for reference.
The kernel config that doesn't work is [Kernel-NG.config.txt].
I would appreciate any help. Thank you