You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • Oh, so I can have both? Two lines of watchdog pinging in .boot0 and rest in .bootcde? And the IDE will not clear the other one at upload? That would be best. Will try. Thanks.
    EDIT:
    It works, I saved just watchdog setup and kicking code into .boot1 and it gets run together with main code, IDE does not touch it and uploading works also with reset before upload! Also as a bonus when I hold button for 6 seconds it reboots and does not start .bootcde because I still hold the button at boot time. So the code is not automatically started which is what is best when there is some bug that needs watchdog reset. All this still without your recent changes.
    Your changes however fix the auto mode that could cause similar unexpected isssues after reset()

About

Avatar for fanoush @fanoush started