You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Robert Alexa <ro...@gmail.com> on 2022/10/25 08:54:03 UTC

NuttX protected mode on ESP32

Hi all,

I've been trying to boot NuttX in protected mode on my ESP32-Wroom board,
but I'm running into a few issues unfortunately.

Below is a small excerpt taken from my Ubuntu (running on a VMWare
workstation) illustrating the commands I am currently using in order to try
and flash the board.

root@vagrant:~/nuttxspace/nuttx# ./tools/configure.sh -l esp32-devkitc:knsh
root@vagrant:~/nuttxspace/nuttx# make -j4
root@vagrant:~/nuttxspace/nuttx# esptool.py --chip esp32 --port
/dev/ttyUSB0 --baud 115200 write_flash 0x1000
../esp-bins/bootloader-esp32.bin 0x8000
../esp-bins/partition-table-esp32.bin 0x10000 nuttx.bin 0x90000
nuttx_user.bin

This, however, leaves the board in an unusable state - the flashing is
successful, but a fault is triggered at boot time. I'm attaching a .txt
file to this email with the complete error dump.

Could someone please explain what I am doing wrong?

Thanks,
Robert

Re: NuttX protected mode on ESP32

Posted by Gustavo Henrique Nihei <gh...@gmail.com>.
Hi Robert,

The list of commands you've posted is missing the "make bootloader" command.
The "esp32-devkitc:knsh" configuration defines the
"CONFIG_ESP32_BOOTLOADER_BUILD_FROM_SOURCE"
entry, which requires that the bootloader firmware image be built from
source.
This is because when Protected Mode for ESP32 is enabled, the build system
must apply some patches on top of the bootloader sources.
Please, let me know if that solves the problem.

Best regards,
Gustavo.

On Tue, Oct 25, 2022 at 5:54 AM Robert Alexa <ro...@gmail.com>
wrote:

> Hi all,
>
> I've been trying to boot NuttX in protected mode on my ESP32-Wroom board,
> but I'm running into a few issues unfortunately.
>
> Below is a small excerpt taken from my Ubuntu (running on a VMWare
> workstation) illustrating the commands I am currently using in order to try
> and flash the board.
>
> root@vagrant:~/nuttxspace/nuttx# ./tools/configure.sh -l
> esp32-devkitc:knsh
> root@vagrant:~/nuttxspace/nuttx# make -j4
> root@vagrant:~/nuttxspace/nuttx# esptool.py --chip esp32 --port
> /dev/ttyUSB0 --baud 115200 write_flash 0x1000
> ../esp-bins/bootloader-esp32.bin 0x8000
> ../esp-bins/partition-table-esp32.bin 0x10000 nuttx.bin 0x90000
> nuttx_user.bin
>
> This, however, leaves the board in an unusable state - the flashing is
> successful, but a fault is triggered at boot time. I'm attaching a .txt
> file to this email with the complete error dump.
>
> Could someone please explain what I am doing wrong?
>
> Thanks,
> Robert
>


-- 
Gustavo Henrique Nihei