nRF Connect for VSCode Flash command erase all flash(es), need to erase only "app" sector.

I'm building a Zigbee application with nrf5340.

In nRF Connect for VSCode, flash command works to burn network processor flash and application processor flash but erases all flash.

In applicaiton processor flash, I need zboss_nvram and zboss_product_config flash sectors to stay valid while using "Action" -> "Flash"command

I can do it manually using nRF Connect terminal (west flash without --recover options) but I would like to know how to customize Flash action command in VS code to do the same.

I found some info on "Task and binding configuration files" but I was un-successful.

Can someone show me how to do that?

Parents
  • Hello,

    You can flash without using the --erase or --recover command using the normal flash button in VS Code:

    If you press almost anywhere on that blue line, it will just flash with a "--sectorerase", only erasing the flash directly where the application is (but it will not erase the network NVRAM data). If you press the icon to the right, right next to the 3 dots, it will erase all and then flash. It may not be that intuitive, but you don't need to click the icon to the right. Press the text saying "Flash", and it will do what you describe.

    Best regards,

    Edvin

Reply
  • Hello,

    You can flash without using the --erase or --recover command using the normal flash button in VS Code:

    If you press almost anywhere on that blue line, it will just flash with a "--sectorerase", only erasing the flash directly where the application is (but it will not erase the network NVRAM data). If you press the icon to the right, right next to the 3 dots, it will erase all and then flash. It may not be that intuitive, but you don't need to click the icon to the right. Press the text saying "Flash", and it will do what you describe.

    Best regards,

    Edvin

Children
Related