Since the class "MainMenu" was used within a static variable the initialization of the object (constructor call) was done before Arduino library startup. It always caused a crash when using AVRStudio with JTAG debugger (caused from calling the LCD initialization / the lot of I/O work / the stack used during this calls). By moving the LCD_INIT out of the constructor and using an explicit call inside of Arduino setup() implementation immediately fixed all problems and the JTAG debugger runs fine.
|
|
||
300 |
|
300 |
|
301 |
|
301 |
|
302 |
|
302 |
|
|
303 |
|
|
|
304 |
|
|
303 |
|
305 |
|
304 |
|
306 |
|
305 |
|
307 |
|
|
|
||
134 |
|
134 |
|
135 |
|
135 |
|
136 |
|
136 |
|
137 |
|
|
|
|
137 |
|
|
138 |
|
138 |
|
139 |
|
139 |
|
140 |
|
140 |
|
141 |
|
141 |
|
|
142 |
|
|
142 |
|
143 |
|
143 |
|
144 |
|
144 |
|
145 |
|
|
|
||
99 |
|
99 |
|
100 |
|
100 |
|
101 |
|
101 |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
102 |
|
105 |
|
103 |
|
106 |
|
104 |
|
107 |
|
|
|
||
306 |
|
309 |
|
307 |
|
310 |
|
308 |
|
311 |
|
309 |
|
|
|
310 |
|
|
|
311 |
|
|
|
312 |
|
|
|
313 |
|
312 |
|
314 |
|
313 |
|
315 |
|
314 |
|