Repository navigation
[bsp][esp32-c3] match IRAM wildcards on Windows paths - #11847
cms19859230182-lang wants to merge 2 commits into
Conversation
Object paths on Windows use backslashes, so the forward-slash globs left _global_interrupt_handler in flash and the vector JAL could not reach it.
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
A question mark matches any one character, so *bt?* also matches libbtdm. Restrict that separator to a slash.
|
板子测过的是 #11816 那份同样的链接脚本。ESP32-C3 DevKitM-1,COM10 能进 msh。这份是按现在的 master 重做的,没有再烧。 |
Summary
sections.ldwildcards used/, so Windows object paths missedriscv\interrupt.o._global_interrupt_handlerstayed in flash. The vectorJALcould not reach it (relocation truncated to fit: R_RISCV_JAL).?, which matches both/and\. Comments are unchanged.btglobs are*bt[/\\]*instead. A bare?also matcheslibbtdm.Test plan
sconsexit 0.rtthread.binis 463568 bytes,textis 389484._global_interrupt_handleris at0x40388efciniram0_0_seg.BSP_USING_GPIOandBSP_USING_UARTstay on. SPI stays off.RT_USING_SPI,BSP_USING_SPIandBSP_USING_SPI2added:sconsexit 0.rtthread.binis 487280 bytes. The link includesdrv_spi.o.spi_bus_initializeis passedSPI_DMA_CH_AUTO(3). Restoringrtconfig.hreturns the 463568-byte image.btglob change, the default image was linked again: still 463568 bytes,text389484, handler still at0x40388efc.text371334.