When start the second core of rp2040, MbedOS Fault and halt.
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 28/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- arduino, cpp, raspberry-pi
- 领域
- embedded-iot
调研方向
该报告提供了一个使用 pico/multicore.h 的最小 Arduino multicore sketch,以及一个已捕获的 MbedOS HardFault,但没有指明任何仓库文件或测试。首先在 RP2040 平台上复现它,并确定是否支持 multicore;完成的标准是确定原因,或通过已验证的结果记录受支持的限制。
由索引模型根据 Issue 内容生成。
描述
This is my test code for multicore, with PIO arduino framework:
#include "Arduino.h"
#include "pico/multicore.h"
void setup() {
multicore_reset_core1();
multicore_launch_core1(core1_entry);
}
void loop() {
}
void core1_entry() {
pinMode(LED_BUILTIN, OUTPUT);
while(1) {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(200); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(200); // wait for a second
}
}
But the code halt at the start, and serial output these:
InitPioProgram!
++ MbedOS Fault Handler ++
FaultType: HardFault
Context:
R0 : FFFFFFDC
R1 : 2000B970
R2 : 2000B92C
R3 : 20000448
R4 : 000000C8
R5 : 00000019
R6 : 00000179
R7 : 1000355D
R8 : FFFFFFFF
R9 : FFFFFFFF
R10 : FFFFFFFF
R11 : FFFFFFFF
R12 : FFFFFFFF
SP : 20040FB0
LR : FFFFFFF9
PC : 10000334
xPSR : A100000B
PSP : FFFFFFFC
MSP : 20040F90
CPUID: 410CC601
Mode : Handler
Priv : Privileged
Stack: MSP
-- MbedOS Fault Handler --
++ MbedOS Error Info ++
Error Status: 0x80FF013D Code: 317 Module: 255
Error Message: Fault exception
Location: 0x10000334
Error Value: 0x2000B7A4
Current Thread: rtx_idle <handler> Id: 0x2000B92C Entry: 0x100055FD StackSize: 0x200 StackMem: 0x200088C0 SP: 0x20040FB0
For more info, visit: https://mbed.com/s/error?error=0x80FF013D&osver=61501&core=0x410CC601&comp=2&ver=110300&tgt=RASPBERRY_PI...
-- MbedOS Error Info --
Is the muticore not be supported?
- 主要语言
- Python
- 星标
- 96
- 派生
- 142
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
platformio/platform-raspberrypi 的其他 Issue
-
Pico 2 and 2w未关闭board request
难度 3/5 1-2 天 新手友好度 55/100
-
board request
难度 4/5 3-5 天 新手友好度 45/100
-
board request
难度 4/5 3-5 天 新手友好度 35/100
-
feature
难度 4/5 3-5 天 新手友好度 30/100
platformio/platform-raspberrypi#86 · 1 个 reaction ·
-
board request
难度 5/5 一周以上 新手友好度 25/100
platformio/platform-raspberrypi#87 · 2 个 reaction ·
查看 platformio/platform-raspberrypi 的全部 Issue
相似的 Issue
-
docs(contributing): the two things that silently block a PR可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭available documentation good first issue
难度 1/5 1-3 小时 新手友好度 95/100
Nixitov/Riptide-Native#944 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
JTHCode/secretguard#24 ·
维护者通常 1 天内回复
-
area: middleware documentation good first issue
难度 2/5 1-3 小时 新手友好度 88/100
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
good first issue
难度 1/5 1 小时以内 新手友好度 95/100
omarelshamy25x/shamy-hijri#63 ·
维护者通常 1 天内回复