code restarting randomly and printing interrupt vector table automatically

I am facing one issue for last few days. my code is restarting at any time and sometimes it hangs also. To resolve this issue I have use watchdog but watchdog isn’t working either. every time I have to force restart the device. Today at the time of debugging I saw one table is printing on my serial monitor randomly. I don’t know where it came from?. I searched it on google and found that it is an interrupt vector table.

0000 = 94 0C 1C 22 ⸮P⸮⸮⸮⸮⸮ ⸮⸮T⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮/f⸮ ⸮ӑ⸮/f⸮ ⸮ӑ⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮⸮⸮⸮/D⸮ ⸮⸮⸮⸮/ ⸮⸮ϓߓ⸮ͷ޷i⸮⸮⸮⸮⸮⸮ߑϑ ⸮⸮⸮⸮⸮⸮⸮ϓߓ⸮ͷ޷z⸮i⸮⸮⸮⸮⸮⸮⸮⸮ߑϑ⸮⸮⸮⸮⸮ ⸮/⸮⸮/⸮⸮ ⸮/⸮⸮⸮ ⸮eN ⸮eNo⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮ߒ⸮⸮⸮⸮⸮ϓߓͷ޷⸮U⸮ ⸮⸮⸮޿⸮Ϳ[J⸮⸮a⸮⸮a⸮⸮⸮⸮⸮⸮!⸮⸮⸮[⸮O\⸮⸮!⸮⸮⸮[⸮OLg⸮s⸮⸮⸮[⸮O⸮⸮G"⸮⸮.⸮,⸮$⸮g⸮v⸮⸮⸮⸮⸮Go,,001C22 >003844
// - 0002 = 94 0C 1C 53 ⸮P⸮⸮⸮⸮⸮ ⸮⸮T⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮/f⸮ ⸮ӑ⸮/f⸮ ⸮ӑ⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮⸮⸮⸮/D⸮ ⸮⸮⸮⸮/ ⸮⸮ϓߓ⸮ͷ޷i⸮⸮⸮⸮⸮⸮ߑϑ ⸮⸮⸮⸮⸮⸮⸮ϓߓ⸮ͷ޷z⸮i⸮⸮⸮⸮⸮⸮⸮⸮ߑϑ⸮⸮⸮⸮⸮ ⸮/⸮⸮/⸮⸮ ⸮/⸮⸮⸮ ⸮eN ⸮eNo⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮ߒ⸮⸮⸮⸮⸮ϓߓͷ޷⸮U⸮ ⸮⸮⸮޿⸮Ϳ[J⸮⸮a⸮⸮a⸮⸮⸮⸮⸮⸮!⸮⸮⸮[⸮O\⸮⸮!⸮⸮⸮[⸮OLg⸮s⸮⸮⸮[⸮O⸮⸮G"⸮⸮.⸮,⸮$⸮g⸮v⸮⸮⸮⸮⸮Go,,001C53 >0038A6
/0 - 0004 = 94 0C 1C 53 ⸮P⸮⸮⸮⸮⸮ ⸮⸮T⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮/f⸮ ⸮ӑ⸮/f⸮ ⸮ӑ⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮⸮⸮⸮/D⸮ ⸮⸮⸮⸮/ ⸮⸮ϓߓ⸮ͷ޷i⸮⸮⸮⸮⸮⸮ߑϑ ⸮⸮⸮⸮⸮⸮⸮ϓߓ⸮ͷ޷z⸮i⸮⸮⸮⸮⸮⸮⸮⸮ߑϑ⸮⸮⸮⸮⸮ ⸮/⸮⸮/⸮⸮ ⸮/⸮⸮⸮ ⸮eN ⸮eNo⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮ߒ⸮⸮⸮⸮⸮ϓߓͷ޷⸮U⸮ ⸮⸮⸮޿⸮Ϳ[J⸮⸮a⸮⸮a⸮⸮⸮⸮⸮⸮!⸮⸮⸮[⸮O\⸮⸮!⸮⸮⸮[⸮OLg⸮s⸮⸮⸮[⸮O⸮⸮G"⸮⸮.⸮,⸮$⸮g⸮v⸮⸮⸮⸮⸮Go,,001C53 >0038A6
0’ - 0006 = 94 0C 1C 53 ⸮P⸮⸮⸮⸮⸮ ⸮⸮T⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮/f⸮ ⸮ӑ⸮/f⸮ ⸮ӑ⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮⸮⸮⸮/D⸮ ⸮⸮⸮⸮/ ⸮⸮ϓߓ⸮ͷ޷i⸮⸮⸮⸮⸮⸮ߑϑ ⸮⸮⸮⸮⸮⸮⸮ϓߓ⸮ͷ޷z⸮i⸮⸮⸮⸮⸮⸮⸮⸮ߑϑ⸮⸮⸮⸮⸮ ⸮/⸮⸮/⸮⸮ ⸮/⸮⸮⸮ ⸮eN ⸮eNo⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮ߒ⸮⸮⸮⸮⸮ϓߓͷ޷⸮U⸮ ⸮⸮⸮޿⸮Ϳ[J⸮⸮a⸮⸮a⸮⸮⸮⸮⸮⸮!⸮⸮⸮[⸮O\⸮⸮!⸮⸮⸮[⸮OLg⸮s⸮⸮⸮[⸮O⸮⸮G"⸮⸮.⸮,⸮$⸮g⸮v⸮⸮⸮⸮⸮Go,,001C53 >0038A6
0( - 0008 = 94 0C 1C 53 ⸮P⸮⸮⸮⸮⸮ ⸮⸮T⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮/f⸮ ⸮ӑ⸮/f⸮ ⸮ӑ⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮⸮⸮⸮/D⸮ ⸮⸮⸮⸮/ ⸮⸮ϓߓ⸮ͷ޷i⸮⸮⸮⸮⸮⸮ߑϑ ⸮⸮⸮⸮⸮⸮⸮ϓߓ⸮ͷ޷z⸮i⸮⸮⸮⸮⸮⸮⸮⸮ߑϑ⸮⸮⸮⸮⸮ ⸮/⸮⸮/⸮⸮ ⸮/⸮⸮⸮ ⸮eN ⸮eNo⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮ߒ⸮⸮⸮⸮⸮ϓߓͷ޷⸮U⸮ ⸮⸮⸮޿⸮Ϳ[J⸮⸮a⸮⸮a⸮⸮⸮⸮⸮⸮!⸮⸮⸮[⸮O\⸮⸮!⸮⸮⸮[⸮OLg⸮s⸮⸮⸮[⸮O⸮⸮G"⸮⸮.⸮,⸮$⸮g⸮v⸮⸮⸮⸮⸮Go,,001C53 >0038A6
0) - 000A = 94 0C 1C 53 ⸮P⸮⸮⸮⸮⸮ ⸮⸮T⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮/f⸮ ⸮ӑ⸮/f⸮ ⸮ӑ⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮⸮⸮⸮/D⸮ ⸮⸮⸮⸮/ ⸮⸮ϓߓ⸮ͷ޷i⸮⸮⸮⸮⸮⸮ߑϑ ⸮⸮⸮⸮⸮⸮⸮ϓߓ⸮ͷ޷z⸮i⸮⸮⸮⸮⸮⸮⸮⸮ߑϑ⸮⸮⸮⸮⸮ ⸮/⸮⸮/⸮⸮ ⸮/⸮⸮⸮ ⸮eN ⸮eNo⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮ߒ⸮⸮⸮⸮⸮ϓߓͷ޷⸮U⸮ ⸮⸮⸮޿⸮Ϳ[J⸮⸮a⸮⸮a⸮⸮⸮⸮⸮⸮!⸮⸮⸮[⸮O\⸮⸮!⸮⸮⸮[⸮OLg⸮s⸮⸮⸮[⸮O⸮⸮G"⸮⸮.⸮,⸮$⸮g⸮v⸮⸮⸮⸮⸮Go,,001C53 >0038A6
0* - 000C = 94 0C 1C 53 ⸮P⸮⸮⸮⸮⸮ ⸮⸮T⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮/f⸮ ⸮ӑ⸮/f⸮ ⸮ӑ⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮⸮⸮⸮/D⸮ ⸮⸮⸮⸮/ ⸮⸮ϓߓ⸮ͷ޷i⸮⸮⸮⸮⸮⸮ߑϑ ⸮⸮⸮⸮⸮⸮⸮ϓߓ⸮ͷ޷z⸮i⸮⸮⸮⸮⸮⸮⸮⸮ߑϑ⸮⸮⸮⸮⸮ ⸮/⸮⸮/⸮⸮ ⸮/⸮⸮⸮ ⸮eN ⸮eNo⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮ߒ⸮⸮⸮⸮⸮ϓߓͷ޷⸮U⸮ ⸮⸮⸮޿⸮Ϳ[J⸮⸮a⸮⸮a⸮⸮⸮⸮⸮⸮!⸮⸮⸮[⸮O\⸮⸮!⸮⸮⸮[⸮OLg⸮s⸮⸮⸮[⸮O⸮⸮G"⸮⸮.⸮,⸮$⸮g⸮v⸮⸮⸮⸮⸮Go,,001C53 >0038A6
0+ - 000E = 94 0C 1C 53 ⸮P⸮⸮⸮⸮⸮ ⸮⸮T⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮/f⸮ ⸮ӑ⸮/f⸮ ⸮ӑ⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮⸮⸮⸮/D⸮ ⸮⸮⸮⸮/ ⸮⸮ϓߓ⸮ͷ޷i⸮⸮⸮⸮⸮⸮ߑϑ ⸮⸮⸮⸮⸮⸮⸮ϓߓ⸮ͷ޷z⸮i⸮⸮⸮⸮⸮⸮⸮⸮ߑϑ⸮⸮⸮⸮⸮ ⸮/⸮⸮/⸮⸮ ⸮/⸮⸮⸮ ⸮eN ⸮eNo⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮ߒ⸮⸮⸮⸮⸮ϓߓͷ޷⸮U⸮ ⸮⸮⸮޿⸮Ϳ[J⸮⸮a⸮⸮a⸮⸮⸮⸮⸮⸮!⸮⸮⸮[⸮O\⸮⸮!⸮⸮⸮[⸮OLg⸮s⸮⸮⸮[⸮O⸮⸮G"⸮⸮.⸮,⸮$⸮g⸮v⸮⸮⸮⸮⸮Go,,001C53 >0038A6
0, - 0010 = 94 0C 1C 53 ⸮P⸮⸮⸮⸮⸮ ⸮⸮T⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮/f⸮ ⸮ӑ⸮/f⸮ ⸮ӑ⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮⸮⸮⸮/D⸮ ⸮⸮⸮⸮/ ⸮⸮ϓߓ⸮ͷ޷i⸮⸮⸮⸮⸮⸮ߑϑ ⸮⸮⸮⸮⸮⸮⸮ϓߓ⸮ͷ޷z⸮i⸮⸮⸮⸮⸮⸮⸮⸮ߑϑ⸮⸮⸮⸮⸮ ⸮/⸮⸮/⸮⸮ ⸮/⸮⸮⸮ ⸮eN ⸮eNo⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮ߒ⸮⸮⸮⸮⸮ϓߓͷ޷⸮U⸮ ⸮⸮⸮޿⸮Ϳ[J⸮⸮a⸮⸮a⸮⸮⸮⸮⸮⸮!⸮⸮⸮[⸮O\⸮⸮!⸮⸮⸮[⸮OLg⸮s⸮⸮⸮[⸮O⸮⸮G"⸮⸮.⸮,⸮$⸮g⸮v⸮⸮⸮⸮⸮Go,,001C53 >0038A6
0- - 0012 = 94 0C 1C 53 ⸮P⸮⸮⸮⸮⸮ ⸮⸮T⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮/f⸮ ⸮ӑ⸮/f⸮ ⸮ӑ⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮⸮⸮⸮/D⸮ ⸮⸮⸮⸮/ ⸮⸮ϓߓ⸮ͷ޷i⸮⸮⸮⸮⸮⸮ߑϑ ⸮⸮⸮⸮⸮⸮⸮ϓߓ⸮ͷ޷z⸮i⸮⸮⸮⸮⸮⸮⸮⸮ߑϑ⸮⸮⸮⸮⸮ ⸮/⸮⸮/⸮⸮ ⸮/⸮⸮⸮ ⸮eN ⸮eNo⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮ߒ⸮⸮⸮⸮⸮ϓߓͷ޷⸮U⸮ ⸮⸮⸮޿⸮Ϳ[J⸮⸮a⸮⸮a⸮⸮⸮⸮⸮⸮!⸮⸮⸮[⸮O\⸮⸮!⸮⸮⸮[⸮OLg⸮s⸮⸮⸮[⸮O⸮⸮G"⸮⸮.⸮,⸮$⸮g⸮v⸮⸮⸮⸮⸮Go,,001C53 >0038A6
0. - 0014 = 94 0C 1C 53 ⸮P⸮⸮⸮⸮⸮ ⸮⸮T⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮#⸮4⸮⸮e⸮⸮/f⸮ ⸮ӑ⸮/f⸮ ⸮ӑ⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮Q⸮⸮/D⸮ ⸮⸮⸮⸮/D⸮ ⸮⸮⸮⸮/ ⸮⸮ϓߓ⸮ͷ޷i⸮⸮⸮⸮⸮⸮ߑϑ ⸮⸮⸮⸮⸮⸮⸮ϓߓ⸮

Please help me to resolve this issue. for better understanding, I am attaching log file also.

New Text Document.txt (42.4 KB)

I think that there may be a problem with your code. Or maybe a problem in a circuit. Or a defective "device". Or maybe sunspots?

Can't be sunspots. There aren't any today. But maybe it's a lack of sunspots. Or a lack of code, or circuit diagram.

So much data. Not a drop of information.

Pete