Tool/software:
Hi,
I would like to ask is it okay that during use of jtag usb debugging interface is set the PMMRSTIFG and PMMBORIFG?
Tool/software:
Hi,
I would like to ask is it okay that during use of jtag usb debugging interface is set the PMMRSTIFG and PMMBORIFG?
Hi Peter
Could you please tell why you need set these two flag when debugging?
As the description below, the flag is set by hardware when corresponding event occur. I thinks there is no use case that we should manually set these bits.
Best Regards,
Pengfei
Hi,
I don't need to set those flags I am just asking whether it is okay that those flags are set automatically. I have noticed that sometimes both and sometimes just one.
When I am debugging the program I am watching also some flags in that registers and I am just curious if those bits do not indicate some hidden problem. I added those register into check when main program starts and it looks like it is also set when main program starts. So I don't need to set any bits in that registers I just wanna know if it is not indication of any trouble.
Hi Peter
Sorry for late reply. According to the user guide, these two pins shows there is a reset from RST/NMI pin or there is a software BOR.
You mean when you run your program, somethings these two flags set but there is no reset or BOR happened and program runs well?
Best Regards,
Pengfei
Hi!
It is set when I use jtag for debugging and the BOR also after restart.
Thank you for your answer!
Hi Peter,
So there is a BOR reset do occurs after you run your program.
Please check your RST/NMI pin connection and make sure it is pull-up well. And also make sure there is no software BOR in your application code.
Best Regards
Pengfei
**Attention** This is a public forum