-
Hello! I am working on migrating my current project from arduino Nano to LogicGreen boards. I have managed almost everything to work properly with LG except one last thing: I need to add an option to programmable reset the board from the sketch. Code that works fine with Nano (and other AVRs) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I found some explanations about software reset in the databook: https://raw.githubusercontent.com/dbuezas/lgt8fx/master/docs/LGT8FX8P_databook_v1.0.5-English.pdf "Software reset: LGT8FX8P has a reset register specially triggered by software. User can reset MCU via this "Software Reset is triggered via operation at 6th bit of VDTCR register." |
Beta Was this translation helpful? Give feedback.
-
Jumping to the zero address should actually work too. I wonder if the bootloader gets confused somehow because some register is in the wrong state If the suggestion from @LaZsolt doesn't work either, here are a couple of extra ways:
https://github.com/qub1750ul/Arduino_SoftwareReset/blob/master/src/SoftwareReset.hpp |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the reply. Operating with VDTCR register works very well. Here is the reset function code if someone needs it:
|
Beta Was this translation helpful? Give feedback.
I found some explanations about software reset in the databook: https://raw.githubusercontent.com/dbuezas/lgt8fx/master/docs/LGT8FX8P_databook_v1.0.5-English.pdf
"Software reset: LGT8FX8P has a reset register specially triggered by software. User can reset MCU via this
software."
"Software Reset is triggered via operation at 6th bit of VDTCR register."