找回密码
 立即注册

QQ登录

只需一步,快速开始

开启左侧

[Sample Code] MA35D1 RTP GPIO_PowerDown喚醒問題

[复制链接]
匿名  发表于 2024-5-31 15:04:17 |阅读模式
運行RTP GPIO_PowerDown程序, 觸發I/O腳位後. 但M4端無喚醒, 反而A35內核崩潰出現下列訊息. 可能的問題為何?
root@buildroot:/$ [ 1193.427481] remoteproc remoteproc0: stopped remote processor rproc
[ 1201.293872] remoteproc remoteproc0: powering up rproc
[ 1201.299578] remoteproc remoteproc0: Booting fw image GPIO_PowerDown.elf, size 207200
[ 1201.308120] remoteproc remoteproc0: remote processor rproc is now up

root@buildroot:/$

root@buildroot:/$ [ 1285.945765] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[ 1285.951629] rcu:     0-...0: (13 ticks this GP) idle=5d6/0/0x5 softirq=36839/36841 fqs=14960
[ 1285.959848]  (detected by 1, t=60002 jiffies, g=74761, q=11226)
[ 1285.965738] Task dump for CPU 0:
[ 1285.968946] task:swapper/0       state:R  running task     stack:    0 pid:    0 ppid:     0 flags:0x0000002a
[ 1285.978826] Call trace:
[ 1285.981274]  __switch_to+0xe4/0xf8
[ 1285.984634]  0xffff800010d43ed0


回复

使用道具

admin 发表于 2024-5-31 17:15:44 | 显示全部楼层
https://github.com/OpenNuvoton/MPU-Family
请从这个地址更新内核、TFA、示例代码
牛卧堂
回复 支持 反对

使用道具 举报

admin 发表于 2024-5-31 17:18:26 | 显示全部楼层
https://gitee.com/OpenNuvoton 如果GitHub访问有异常 可以去GItee上看下
牛卧堂
回复 支持 反对

使用道具 举报

匿名  发表于 2024-6-14 17:41:22
內核已使用Github://OpenNuvoton/buildroot_2024更新. 問題同樣會發生...
TFA的device tree設定
gpio_s = <PM2_SUBM>,
              <PK9_SUBM>,

測試後問題發生是在設定GPIO_EnableInt後, GPIO觸發狀態改變後, Linux內核過一陣子出現內核崩潰訊息.
RTP Code :
    GPIO_SetMode(PM, BIT2, GPIO_MODE_INPUT);
    GPIO_EnableInt(PM, 2, GPIO_INT_FALLING);
    NVIC_EnableIRQ(GPM_IRQn);
回复 支持 反对

使用道具

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

新唐MCU