1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/cpu/esp32
bors[bot] 6b4b7542eb
Merge #19078
19078: cpu/esp32: define FLASHFILE_POS r=benpicco a=gschorcht

### Contribution description

Instead of using a fixed position of the image file in the flash, the variable `FLASHFILE_POS` is used which allows to override the default position of the image in the flash at 0x10000.

This PR is a prerequisite for the `periph_flashpage` implementation PR #19079.

### Testing procedure

Flashing a ESP32x SoC should work with `FLASHFILE_POS=0x20000`, for example:
```
USEMODULE=esp_log_startup FLASHFILE_POS=0x20000 BOARD=esp32-wroom-32 make -j8 -C tests/shell flash
```
The bootloader output should give `00020000` as offset for the `factory` partition
```
I (75) boot: Partition Table:
I (78) boot: ## Label            Usage          Type ST Offset   Length
I (84) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (91) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (97) boot:  2 factory          factory app      00 00 00020000 000199b0
I (104) boot: End of partition table
```
and
```
I (125) esp_image: segment 0: paddr=00020020 vaddr=3f400020 size=02140h (  8512) map
```
during the load of the image.

### Issues/PRs references

Prerequisite for PR #19079

Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2023-01-02 18:18:19 +00:00
..
bin cpu/esp32: compile bootloader from ESP-IDF v4.4 source 2022-06-01 13:31:00 +02:00
bootloader cpu/esp32: set bootloader XTAL frequency configuration to automatic 2022-11-01 03:22:38 +01:00
esp-ble-nimble cpu/esp32: add some debugging info in esp_ble_nimble 2022-08-24 09:05:25 +02:00
esp-eth Revert "esp32/eth: Don't overwrite queued event with RX packet" 2022-09-03 14:11:06 +02:00
esp-idf cpu/esp32: enable tinyUSB package for ESP32-S2 and ESP32-S3 2022-09-30 19:05:51 +02:00
esp-idf-api cpu/esp32: changes for periph/gpio_ll in ESP-IDF interface API 2022-09-02 15:03:45 +02:00
freertos cpu/esp*: move freertos/task to cpu/esp_common 2020-02-21 09:09:34 +01:00
include cpu/esp32x: generate memory.ld from vendor memory.ld.in 2022-12-31 15:30:34 +01:00
ld cpu/esp32x: generate section.ld from section.ld.in 2022-12-31 15:30:34 +01:00
periph cpu/esp32/periph_timer: allow changing callback or freq 2022-11-24 22:38:15 +01:00
vendor/include cpu/esp32: add vendor header file for periph_usbdev 2022-09-27 01:00:57 +02:00
doc_esp32.txt cpu/esp32: split the doc into ESP32x and ESP32 parts 2022-07-18 16:16:26 +02:00
doc_esp32c3.txt cpu/esp32: add ESP32-C3 support in doc 2022-07-21 12:29:38 +02:00
doc_esp32s2.txt cpu/esp32: add ESP32-S2 support in doc 2022-08-23 17:36:13 +02:00
doc_esp32s3.txt cpu/esp32: add ESP32-S3 support in doc 2022-08-07 14:50:50 +02:00
doc.txt cpu/esp32: add BLE support for ESP32-S3 2022-08-26 21:16:09 +02:00
esp32.config cpu/esp32: model Kconfig 2021-12-10 18:54:07 +01:00
esp_ztimer.c cpu/esp32: platform-independent formatting in DEBUG 2022-07-18 13:51:33 +02:00
irq_arch.c cpu/esp32: add USB interrupt for periph_usbdev 2022-09-27 01:00:57 +02:00
Kconfig cpu/esp32: add BLE support for ESP32-S3 2022-08-26 21:16:09 +02:00
Kconfig.common cpu/esp32: add BLE support for ESP32-C3 2022-08-26 17:10:42 +02:00
Kconfig.esp32 cpu/esp32: implement periph_spi_reconfigure 2022-10-08 22:02:49 +02:00
Kconfig.esp32c3 cpu/esp32: implement periph_spi_reconfigure 2022-10-08 22:02:49 +02:00
Kconfig.esp32s2 cpu/esp32s{2,3}: fix MODULE_USBDEV_SYNOPSYS_DWC2 dependency in Kconfig 2022-10-17 20:03:23 +02:00
Kconfig.esp32s3 cpu/esp32s{2,3}: fix MODULE_USBDEV_SYNOPSYS_DWC2 dependency in Kconfig 2022-10-17 20:03:23 +02:00
Makefile cpu/esp32: add NimBLE support for ESP32 2022-08-24 09:05:25 +02:00
Makefile.default cpu: make pm_layered a DEFAULT_MODULE 2021-01-27 13:21:20 +01:00
Makefile.dep cpu/esp32: fix usbdev_synopsys_dwc2 on ztimer_msec 2022-10-17 20:03:04 +02:00
Makefile.features cpu/esp32: implement periph_spi_reconfigure 2022-10-08 22:02:49 +02:00
Makefile.include Merge #19078 2023-01-02 18:18:19 +00:00
startup.c cpu/esp32: small change in assert for ESP32x SoCs 2022-08-05 22:26:44 +02:00
syscalls.c cpu/esp_common: move ESP32 specific locking variables to cpu/esp32 2022-09-01 15:09:58 +02:00