When should I "pristine build" and "erase and flash" to the board?

I noticed in the nRF extension in VS Code, there are the "pristine build" and "erase and flash to the board" options. I was curious when I should use these options instead of a normal build and flash.

Thank you!

Parents Reply Children
  • Hello,

    Thank you for your patience with this!

    tonyl02 said:
    Thank you for your reply!

    No problem, I am happy to help! :) 

    tonyl02 said:
    I was wondering what the input files are exactly, besides the prj.conf file.

    The input files are the CMakelists/prj.conf/devicetree files, and you can view them in the Visual Studio Code editor in the application explorer pane.

    tonyl02 said:
    Also, I was wondering when I need to do "erase and flash to board" instead of a normal flash? 

    Erasing also makes sure to delete the UICR and flash memory, so if you are working with an application who is making changes to these areas you might want to use 'erase and flash' to ensure that no information is stored there from the previous run of your application.

    Best regards,
    Karl

Related