diff options
| author | hathach <[email protected]> | 2026-08-17 01:02:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-08-18 22:07:49 +0700 |
| commit | af5354349156d3d1bb0f2533ad802f1e1c5a6ffb (patch) | |
| tree | 3e78e835ac6ca75c793c3078aeca48d9753ebce3 /examples/host/libusb_api/src | |
| parent | 5baf5925c8b6a033de85e3b5537ea879de75e3da (diff) | |
bsp(lpc11u37): move the main stack to the USB SRAM bank
The 8 KB main bank is packed tightly enough that only ~280 bytes remained above
.bss, and interrupt frames overflowed into the topmost task stack - a hard fault
in cdc_msc_freertos. Put the MSP at the top of the 2 KB USB SRAM bank, which
nothing else uses in either build system, so the stack no longer shrinks as .bss
grows. The Make build's CFG_TUSB_MEM_SECTION placement of endpoint buffers into
that bank is dropped so both build systems agree on the layout.
The headroom assert is written as an addition rather than a subtraction, since
linker script arithmetic is unsigned and an overflowing bank would underflow the
difference into a huge positive value and pass silently.
Diffstat (limited to 'examples/host/libusb_api/src')
0 files changed, 0 insertions, 0 deletions
