-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use 4Bit devices? #210
Comments
0x42000 + 0x3A000 = 0x7C000 Partitions are overlapping! But you still have space between 0x01000 and 0x02000 and also between 0x3C000 and 0x42000. |
Hey thanks for finding that. I changed the sizes to 0x39000 and I use 0 as the 3rd parameter of system_partition_table_regist call but I still get invalid partition table. |
Not sure, but I think the first partition must begin at 0x01000. |
I have read that too and changed that. I am using the rboot boot loader. With nodemcu I put 0x1000 in the OTA1 partition and flash at 0x2000 and don't have any problems. I also read in issue espressif/esptool#377 that the last paramater should be a 1. but if I do that I get a size mismatch error. Setting this to 0 makes the error go away. In that issue it seems to suggest that OTA isn't support with 4Mbit flash. so I change the table to: But I still get an error for system_partition_table_regist. If only the source was available... |
The last parameter is the map type and in your case should be FLASH_SIZE_4M_MAP_256_256. |
Yes, that is 0. I think that I had seen those values when I was working on 32Mbit device last year. |
Maybe try using the original bootloader. I never had any problems with it. |
I gave up on using the partition table. I dumped the symbols for the app_partition.o file and I noticed that it still uses the globals system_rf_cal_sector so I used those directly. |
1 similar comment
I gave up on using the partition table. I dumped the symbols for the app_partition.o file and I noticed that it still uses the globals system_rf_cal_sector so I used those directly. |
I have a 4Mbit device. My partition table is thus:
static const partition_item_t at_partition_table[] = { { SYSTEM_PARTITION_BOOTLOADER, 0x0, 0x1000}, { SYSTEM_PARTITION_OTA_1, 0x2000, 0x3A000}, { SYSTEM_PARTITION_OTA_2, 0x42000, 0x3A000}, { SYSTEM_PARTITION_RF_CAL, 0x7b000, 0x1000}, // 128 - 5 sectors of 4096 { SYSTEM_PARTITION_PHY_DATA, 0x7c000, 0x1000}, { SYSTEM_PARTITION_SYSTEM_PARAMETER, 0x7d000, 0x3000}
The code is small and fits in this partition table and the RF_CAL data is in the usual place. How do I get this work with version 3 of the SDK?
The text was updated successfully, but these errors were encountered: