RT-Thread / RT-Thread/rt-thread
M0没有SCB_VTOR 不能通过此寄存器恢复MSP
Open
@aozima is already working on this.
Since May 25, 2021.
bug
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
rt_hw_context_switch_to 函数 应判断从SCB_VTOR读出来的值,为0不要去修改Msp,否则后面的代码会执行失败
(M0不是所有的core 都有SCB_VTOR的)
; restore MSP
LDR r0, =SCB_VTOR
LDR r0, [r0]
LDR r0, [r0]
MSR msp, r0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.