Bootloader and !!! issue

Post Reply
Andy123
Posts: 45
Joined: Sun Jul 17, 2011 6:03 pm

Bootloader and !!! issue

Post by Andy123 » Fri Aug 12, 2011 8:20 pm

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.

User avatar
rtestardi
Posts: 79
Joined: Mon Jun 06, 2011 1:16 am
Location: Boulder, CO USA
Contact:

Re: Bootloader and !!! issue

Post by rtestardi » Sat Aug 13, 2011 12:02 pm

Can somebody point me to HEX file or current/modified source code please.
The source code for the chipKIT bootloader is here: https://github.com/chipKIT32/pic32-Arduino-Bootloader

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

Code: Select all

					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:
Embedded Systems Made Easy: http://www.cpustick.com .....

Andy123
Posts: 45
Joined: Sun Jul 17, 2011 6:03 pm

Re: Bootloader and !!! issue

Post by Andy123 » Sat Aug 13, 2011 4:18 pm

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
Posts: 116
Joined: Sat May 21, 2011 4:26 pm

Re: Bootloader and !!! issue

Post by Mark » Fri Aug 26, 2011 11:50 pm

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

Mark

Post Reply