Page 1 of 1

VS Code set app offset

Posted: Sat Feb 19, 2022 11:58 am
by daniSi
Dear,

I would like to change the default .bin flash location from factory to the ota partition. The project is not a factory app but ota app. I have found that inside the build folder the file flasher_args.json contains the corresponding arguments, but the problem is that after config changes this value is overwritten. Is there any way to set the offset value which would be then already automatically set inside the flasher_args.json after build?


thank you.

Re: VS Code set app offset

Posted: Mon Feb 21, 2022 6:18 am
by ESP_bignacio
You could customize the partition table as describe here

Re: VS Code set app offset

Posted: Mon Feb 21, 2022 7:11 am
by daniSi
I have my customized partition table with one OTA app, but the problem is that the project by default always flashes the factory app, correct? where this can be changed in the project settings?

regards, Danijel

Re: VS Code set app offset

Posted: Tue Feb 22, 2022 5:42 am
by ESP_bignacio
Did you choose “Custom partition table CSV” in menuconfig ?

Re: VS Code set app offset

Posted: Tue Feb 22, 2022 6:54 am
by daniSi
Yes I have, and the partition binary is as well flashed, the problem is that by default the main program is flashed to the factory partition. Where i can now select that when hitting the build & flash button the firmware binary will be flashed instead of factory partition to the OTA partition?