VS Code set app offset

daniSi
Posts: 47
Joined: Thu Dec 23, 2021 9:43 am

VS Code set app offset

Postby daniSi » Sat Feb 19, 2022 11:58 am

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.

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: VS Code set app offset

Postby ESP_bignacio » Mon Feb 21, 2022 6:18 am

You could customize the partition table as describe here

daniSi
Posts: 47
Joined: Thu Dec 23, 2021 9:43 am

Re: VS Code set app offset

Postby daniSi » Mon Feb 21, 2022 7:11 am

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

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: VS Code set app offset

Postby ESP_bignacio » Tue Feb 22, 2022 5:42 am

Did you choose “Custom partition table CSV” in menuconfig ?

daniSi
Posts: 47
Joined: Thu Dec 23, 2021 9:43 am

Re: VS Code set app offset

Postby daniSi » Tue Feb 22, 2022 6:54 am

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?

Who is online

Users browsing this forum: No registered users and 33 guests