wokwi / wokwi-features

Wokwi Feature requests & Bug Reports
https://wokwi.com
72 stars 17 forks source link

Specific partitions.csv in vscode with wokwi.toml #523

Open Qinka opened 1 year ago

Qinka commented 1 year ago

How can I specific partitions.csv in vscode with wokwi.toml?

I got an error in VSCode, which is the same as when I used wokwi-server without the parameter -p partitions.csv.

urish commented 1 year ago

Partitions.csv is not supported in VS Code. Instead, you should directly use the partition-table.bin file generated by whatever build tool you use.

Wokwi for VS Code doesn't support (yet) multiple .bin files for ESP32, so there are basically two options:

  1. Merge all binary files (bootloader, partition table, etc) into a single one using esptool merge_bin
  2. Generate a .uf2 file that includes everything (bootloader, partition table, app). If you are using esp-idf, idf.py uf2 will generate such file for you. You can then point the firmware configuration in wokwi.toml to that UF2 file.
Qinka commented 1 month ago

I think adding something partition_tabel="path/to/partition.bin" inwokwi.toml` is a good idea.