chipKIT® Development Platform

Inspired by Arduino™

Bootloader and !!! issue

Created Fri, 12 Aug 2011 19:20:29 +0000 by Andy123


Andy123

Fri, 12 Aug 2011 19:20:29 +0000

It appears that booloader for MAX32 (not sure about Uno32) has the same issue as Mega2560 known as "!!!": http://code.google.com/p/arduino/issues/detail?id=392 It switches to the Monitor mode if 3 bytes 0x21 recived in a row - this prevents some applications from downloading, for example some font tables.

I saw at least two modified versions for Mega2560, but not for MAX32.

Can somebody point me to HEX file or current/modified source code please.


rtestardi

Sat, 13 Aug 2011 11:02:32 +0000

Can somebody point me to HEX file or current/modified source code please.

The source code for the chipKIT bootloader is here: [url]https://github.com/chipKIT32/pic32-Arduino-Bootloader[/url]

It seems rcvCharCounter is trying to prevent the !!! from working in the middle of the bootload... Maybe I miss something.

rcvCharCounter++;

				#ifdef _ENABLE_MONITOR_
					if ((theChar == '!') && (rcvCharCounter < 10))
					{
						exPointCntr++;
						if (exPointCntr == 3)
						{
							RunMonitor();
							exPointCntr		=	0;	//	reset back to zero so we dont get in an endless loop
							keepGoing		=	false;
							msgParseState	=	99;	//*	we dont want it do anything
							break;
						}
					}
					else
					{
						exPointCntr	=	0;
					}
				#endif

					switch (msgParseState)
					{
						case ST_START:

Andy123

Sat, 13 Aug 2011 15:18:46 +0000

Thank you for the link

yes, this is corrected bootloader source, just not sure if this one made into production board or not? I see changes made in June.

Actually I also saw Mega2560 correction was to disable monitor completely Thanks


Mark

Fri, 26 Aug 2011 22:50:55 +0000

Yes this is the production code and the bug is NOT in this version. I have tested this extensively

Mark