Trying to change partition table
Posted: Fri Jul 21, 2017 4:37 pm
Hello, I'm having trouble trying to change the partition table to use the rest of our 16M flash chip with espressif's nvs api.
I created the custom .csv and specified its location in menuconfig, where I also updated the app start address and saved the sdkconfig file. Next, I run "make partition_table" which generates the binary partition table from the custom csv. when I run make and flash the esp32, the chip is stuck in a reset loop that appears to come from nvs_flash_init_custom() (based on the printed Backtrace). This suggests that the application image is being loaded correctly, but the nvs driver does not have the correct symbols defined to properly initialize its flash partition.
I've played with the order, size, and offsets of the three lines in the default singleapp_partition table to get a custom csv. typically these attempts look something like...
note: I get the following warning when exiting menuconfig...
/sdkconfig:84 symbol value '' invalid for PHY_DATA_OFFSET
sdkconfig line 84 appears to supply no value for CONFIG_PHY_DATA_OFFSET, and this is overwritten whenever make is invoked. My guess is that there is an additional setting file I need to edit or my project structure is somehow throwing off the make system.
Josh
I created the custom .csv and specified its location in menuconfig, where I also updated the app start address and saved the sdkconfig file. Next, I run "make partition_table" which generates the binary partition table from the custom csv. when I run make and flash the esp32, the chip is stuck in a reset loop that appears to come from nvs_flash_init_custom() (based on the printed Backtrace). This suggests that the application image is being loaded correctly, but the nvs driver does not have the correct symbols defined to properly initialize its flash partition.
I've played with the order, size, and offsets of the three lines in the default singleapp_partition table to get a custom csv. typically these attempts look something like...
Code: Select all
# Name, Type, SubType, Offset, Size, Flags
phy_init, data, phy, 0xf000, 0x1000,
factory, app, factory, 0x10000, 1M,
nvs, data, nvs, , 12M,
/sdkconfig:84 symbol value '' invalid for PHY_DATA_OFFSET
sdkconfig line 84 appears to supply no value for CONFIG_PHY_DATA_OFFSET, and this is overwritten whenever make is invoked. My guess is that there is an additional setting file I need to edit or my project structure is somehow throwing off the make system.
Josh