tmedicci opened a new pull request, #18941:
URL: https://github.com/apache/nuttx/pull/18941
## Summary
* arch/risc-v: Clear BSS section for RISC-V-based Espressif SoCs
* Always clear the BSS section before calling `bootloader_init`. This is
necessary because, otherwise, `bootloader_init` may fail even before
`bootloader_clear_bss_section` is called again by that function.
## Impact
Impact on user: No.
Impact on build: No.
Impact on hardware: No.
Impact on documentation: No.
Impact on security: No.
Impact on compatibility: No.
## Testing
There is no specific test for it. It is just an improvement to ensure the
firmware boots up. `ostest` can be used to test it.
### Building
```
make -j distclean
./tools/configure.sh -S esp32p4-function-ev-board:ostest
make flash ESPTOOL_PORT=/dev/ttyACM0
picocom -b 115200 /dev/ttyUSB1
```
### Running
Just run `ostest`.
### Results
```
nsh> ostest
stdio_test: write fd=1
stdio_test: Standard I/O Check: printf
stdio_test: write fd=2
...
Final memory usage:
VARIABLE BEFORE AFTER
======== ======== ========
arena 769a0 769a0
ordblks 2 5
mxordblk 72620 6dd10
uordblks 4328 43b8
fordblks 72678 725e8
user_main: Exiting
ostest_main: Exiting with status 0
nsh>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]