esptool 是否应该为 system_partition_table_regist() 提供 `map`?(ESPTOOL-138)
作者: bitmandu创建于 2018年11月20日更新于 2020年12月10日
Version 3.0 (released August 2018) of the Non-OS SDK requires calling system_partition_table_regist() in user_pre_init to register the project's partition table (see the [README][1] and [Partition Table][2] documentation). The last argument of system_partition_table_regist() is map:
uint32_t map: flash map. The value of this parameter should be the same as the flash map selected during the compilation and downloading. Otherwise, it may cause abnormal startup. It is recommended that MarcoSPI_FLASH_SIZE_MAP, which stores the value of flash map during the compilation, is passed to this parameter. ([API Reference][3], section 3.3.50)
内容来源: espressif/esptool