This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
probe-run assumes stack fits within a memory region #415
Labels
type: enhancement
Enhancement or feature request
Describe the bug
The memory map for the RP2040 in probe-rs describes a 256 KiB block at
0x2000_0000
(SRAM_REGION_0 .. SRAM_REGION_3, striped) and then two 4 KiB blocks at0x2004_0000
(SRAM_REGION_4) and0x2004_1000
(SRAM_REGION_5).probe-rs finds the reset stack pointer, and then assumes that the stack must lie within a single memory region.
I have written an application where the top of stack is at
0x2004_1000
and I have 8 KiB of space allocated - 4 KiB from a SRAM_REGION_4 and then 4 KiB from the top of the striped region. The regions are consecutive, so this works fine.However, probe-run tells me I only have 4096 bytes of stack (not 8192 bytes) and thus tells me I have used all of my stack, when I have not.
To Reproduce
Steps to reproduce the behavior:
memory.x:
Expected and observed behavior
probe-run could:
config.toml
The contents of your project's
.cargo/config.toml
fileProbe details
Operating System:
Linux
The text was updated successfully, but these errors were encountered: