ESP32 bare-metal configuration

ret0_0
Posts: 1
Joined: Thu Sep 20, 2018 1:08 am

ESP32 bare-metal configuration

Postby ret0_0 » Thu Sep 20, 2018 1:15 am

I'm interested in working on a custom (toy/academic) RTOS for the ESP32. Do you have a bare-metal example project that does not use FreeRTOS? As an example, it would call call_start_cpu0() {while(1); } and provide a routine for flashing. I believe I have the elf file compiled correctly but I am unable to use esptool to program the image and run.

Thanks!

ESP_Angus
Posts: 1318
Joined: Sun May 08, 2016 4:11 am

Re: ESP32 bare-metal configuration

Postby ESP_Angus » Thu Sep 20, 2018 5:51 am

Hi ret0,

Unfortunately there is no example of this kind.

You should be able to get something similar by following the steps used to build the IDF bootloader, though. You can build the bootloader in IDF with "make V=1 bootloader" to see all of the commands involved in building it - adapt the linker script and the esptool.py elf2image and flashing commands from here and you should be able to get something booting.

Return to “ESP32 IDF”

Who is online

Users browsing this forum: Bing [Bot] and 11 guests