Test partition supported or not ?

Laurent Louf
Posts: 6
Joined: Wed May 29, 2019 9:03 am

Test partition supported or not ?

Postby Laurent Louf » Wed May 29, 2019 4:02 pm

Hello,

Reading the docs concerning the partitions for the ESP32 https://docs.espressif.com/projects/esp ... ables.html , I read the following
test (0x2) is a reserved subtype for factory test procedures. It is not currently supported by the esp-idf bootloader.
. So I decided to check if the config used to define the GPIO to trigger the booting from the test partition is used somewhere (BOOTLOADER_NUM_PIN_APP_TEST) and yes it is ! From bootloader_start.c :

Code: Select all

#ifdef CONFIG_BOOTLOADER_APP_TEST
        if (bootloader_common_check_long_hold_gpio(CONFIG_BOOTLOADER_NUM_PIN_APP_TEST, CONFIG_BOOTLOADER_HOLD_TIME_GPIO) == 1) {
            ESP_LOGI(TAG, "Detect a boot condition of the test firmware");
            if (bs->test.offset != 0) {
                boot_index = TEST_APP_INDEX;
                return boot_index;
            } else {
                ESP_LOGE(TAG, "Test firmware is not found in partition table");
                return INVALID_INDEX;
            }
        }
#endif
So this seems to be supported (for reference, I'm using esp-idf v3.1.2), is it just the documentation that hasn't been updated or am I missing something here ?

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

Re: Test partition supported or not ?

Postby ESP_Angus » Thu May 30, 2019 12:13 am

It is supported, this line in the documentation is out of date. Will fix ASAP.

Laurent Louf
Posts: 6
Joined: Wed May 29, 2019 9:03 am

Re: Test partition supported or not ?

Postby Laurent Louf » Fri May 31, 2019 4:31 pm

Okay thanks for the quick reply, that's what I thought

Who is online

Users browsing this forum: No registered users and 167 guests