From: Fabian B. <fa...@bl...> - 2018-09-28 12:54:19
|
Hi Joerg, sorry for the late reply.. It has been a busy week. On 20.09.18 14:08, Joerg Wunsch wrote: > > Basically OK, but: > >> @@ -4132,7 +4132,7 @@ jtag_device_def_type deviceDefinitions[] = { >> fill_b2(32768 / 128), // uiFlashpages >> 0x31, // ucDWDRAddress >> 0x00, // ucDWBasePC >> - 0x00, // ucAllowFullPageBitstream >> + 0x01, // ucAllowFullPageBitstream >> fill_b2(0x3F00), // uiStartSmallestBootLoaderSection >> 1, // EnablePageProgramming >> 0, // ucCacheType > > Are you totally sure about this one? > > As far as I can tell, ucAllowFullPageBitstream is a bit that must only > be set for JTAG debugging on very old devices (ATmega16, ATmega128 > etc.). This value is not listed in Atmels EDBG documentation for debugWIRE targets [1], so I'm not shure if this value is used. Setting Breakpoints did work regardless of this value, if I remember correctly. I captured Atmel Studios behaviour via usbmon, with which this byte was set to 0x01. However the target has been the Xplained Mini with an ATmega328PB on it, so it might be specific for this combination. I'm going to try it with the JTAGICE3 and an ATmega328P next week, if I have the time. Best regards Fabian [1] https://www.microchip.com/webdoc/protocoldocs/section_avr8_setget_params.html#N11DCA |