Commit Graph

23 Commits

Author SHA1 Message Date
Rhys Mainwaring 5b935a3838 AP_HAL_ESP32: update cmake minimum version
- The ESP32 API guide states the cmake version must be 3.16 or greater.

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2024-12-15 08:55:04 -06:00
Rhys Mainwaring d1cbf30286 AP_HAL_ESP32: add targets to measure static memory sizes
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2024-12-12 23:16:48 -06:00
Rhys Mainwaring 3c561e215f AP_HAL_ESP32: set default cpu frequency to 240MHz
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2024-12-10 10:32:47 +11:00
Thomas Watson 535f6875a8 AP_HAL_ESP32: move generated sdkconfig to build folder
Ensures it gets cleaned with `./waf clean`. Users will hopefully delete
and not be confused by the old one as it will now show up as an
untracked file.
2024-12-10 10:32:47 +11:00
ARg 1ef0f1a63f AP_HAL_ESP32: Migration of ESP32 targets from idf 4.4 to 5.3 consisting of:
- modification of CMakeLists to use new component names of idf 5.3;
- removing big sdkconfig, which changes a lot, when upgrading idf and to use sdkconfig.defaults, which contain only non default defines;
- Updated idf installation packages list, according to espressif documentation;
- Updated README.md to reflect changes in sdkconfig handling;
- Fixed WDT in Scheduler, it was broken with idf 5.3;
- fixed compilation issues with GCC 13 (which is used by idf 5.3);
- fixed bug in case when HAL_ESP32_WIFI defined as 0 (disable wifi)
- Added ESP32 targets sdkconfig (auto generated) to .gitignore
2024-10-01 09:25:35 +10:00
David 'Buzz' Bussenschutt 792941d4de AP_HAL_ESP32: bigger instruction cache on s3 helps performance 2024-09-06 11:52:32 +10:00
David Buzz 61e83dcd0e AP_HAL_ESP32: improve the reported LOOP_RATE on esp32s3 to similar loop rate to classic esp32
getting a loop rate of around 130 on both now

source modules/esp_idf/export.sh

./waf configure --board=esp32s3empty --debug
./waf copter
cd build/esp32buzz/esp-idf_build/
ninja menuconfig

./waf configure --board=esp32buzz --debug
./waf copter
cd build/esp32buzz/esp-idf_build/
ninja menuconfig

and try to get both the resulting modified sdkconfig as smiilar as possible - this causes s3 to use qio, which is faster, and also puts the wifi stuff onto CORE1 on both configs.

s3:
loop_rate: actual: 148.097137Hz, expected: 400Hz
loop_rate: actual: 147.908691Hz, expected: 400Hz

classic:
loop_rate: actual: 188.718842Hz, expected: 400Hz
loop_rate: actual: 191.819748Hz, expected: 400Hz
2024-09-03 11:04:10 +10:00
David 'Buzz' Bussenschutt 529d783e0e AP_HAL_ESP32: automatic S3 sdkconfig changes generated by IDF 2024-05-29 13:12:37 +10:00
David Buzz 73afd26465 AP_HAL_ESP32: bugfixes
bump  tick rate to 1kz to match chibios

experimentally make delay_microseconds not delay, and only yield ( vTaskDelay yields to higher-priority tasks )

ESP32 disable all watchdogs

emit info to console to tell user where to connect tcp/udp and what ports

comment out bad code throwing a ptr error
2024-03-03 07:29:35 +11:00
David Buzz 08a09d04dc HAL_ESP32: bring S3's sdkconfig closer to classic , and optimise wifi on classic 2024-01-07 18:37:56 +11:00
David Buzz 9e8c16d15e AP_HAL_ESP32: S3 also needs change to storage sector size to 128K
just completing this PR for the S3..
fa70a56a65
2024-01-07 18:37:04 +11:00
David Buzz b9ac504d0d AP_HAL_ESP32: prevent watchdog while booting with slow things like sdcards 2024-01-07 08:32:44 +11:00
Andrew Tridgell 687c5887af HAL_ESP32: allow for building of examples and tool firmware on ESP32
use waf build target to find the right library name
2023-12-31 09:55:16 +11:00
Andrew Tridgell 4b908077c2 HAL_ESP32: push S3 to 500Hz 2023-12-31 09:55:02 +11:00
Andrew Tridgell e2f82ed9bc HAL_ESP32: added esp32s3empty target 2023-12-31 09:55:02 +11:00
Rhys Mainwaring fa70a56a65 AP_HAL_ESP32: change storage sector size to 128K
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-09-01 10:34:27 +10:00
Nicholas Kruzan 575422fdf5 AP_HAL_ESP32: new mcu: esp32s3 2023-05-26 10:54:01 -07:00
Nicholas Kruzan 9744b2d483 AP_HAL_ESP32: move esp32 specific idf build stuff to subfolder
AP_HAL_ESP32: move esp32 specific idf build stuff to subfolder
2023-05-26 10:54:01 -07:00
Nicholas Kruzan 8967ed0ad1 AP_HAL_ESP32: idf-v4.4 updates
update wifi drivers

nick: fix build warning

In file included from ../../libraries/AP_HAL_ESP32/WiFiUdpDriver.cpp:26:
../../modules/esp_idf/components/esp_event/include/esp_event_loop.h:2:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp]
 #warning "esp_event_loop.h is deprecated, please include esp_event.h instead"

AP_HAL_ESP32: idf-v4.4 updates

AP_HAL_ESP32: sdkconfig updates
2023-05-15 10:27:25 +10:00
David Buzz 9a63fc2d30 AP_HAL_ESP32: 4.2 updated sdkconfig 2023-05-02 14:38:03 +10:00
Buzz 1e11921646 AP_HAL_ESP32: add esp32 build to CI
with binaries

less verbose

ESP32: fix bootloader build - reduce esp32 bootloader compile size and capture binaries
2022-11-28 20:32:22 +11:00
Nicholas Kruzan d42a287db0 AP_HAL_ESP32: partitions.csv - increase app partition to 3M 2022-04-05 08:41:11 +10:00
Buzz bb8998bdef AP_HAL_ESP32: new HAL layer for esp32
see libraries/AP_HAL_ESP32/README.md for more.

Author: Charles Villard <charlesvillard10@gmail.com>
Author: Buzz <davidbuzz@gmail.com>
2021-11-01 17:40:31 +11:00