chipKIT® Development Platform

Inspired by Arduino™

Failure to reload program

Created Wed, 06 Aug 2014 22:19:31 +0000 by edmondson@ieee.org


edmondson@ieee.org

Wed, 06 Aug 2014 22:19:31 +0000

Ok, I was working on my new program, made a few changes in MPIDE, and then hit the download button. I get the Uploading to I/O Board, my application resets and runs, and the progress bar halts at around 12%. I have a bunch of messages in the status box like:
at java.util.regex.Pattern$Loop.match(Pattern.java:4295) at java.util.regex.Pattern$GroupTail.match(Pattern.java:4227) at java.util.regex.Pattern$BranchConn.match(Pattern.java:4078) at java.util.regex.Pattern$CharProperty.match(Pattern.java:3345) at java.util.regex.Pattern$Branch.match(Pattern.java:4114) at java.util.regex.Pattern$GroupHead.match(Pattern.java:4168) at java.util.regex.Pattern$Loop.match(Pattern.java:4295) at java.util.regex.Pattern$GroupTail.match(Pattern.java:4227) at java.util.regex.Pattern$BranchConn.match(Pattern.java:4078) at java.util.regex.Pattern$CharProperty.match(Pattern.java:3345) at java.util.regex.Pattern$Branch.match(Pattern.java:4114) at java.util.regex.Pattern$GroupHead.match(Pattern.java:4168) at java.util.regex.Pattern$Loop.match(Pattern.java:4295) at java.util.regex.Pattern$GroupTail.match(Pattern.java:4227) at java.util.regex.Pattern$BranchConn.match(Pattern.java:4078) at java.util.regex.Pattern$CharProperty.match(Pattern.java:3345)

Anyone seen this before, and have any ideas how to solve it? I need to get on with my troubleshooting!


JesseN

Thu, 07 Aug 2014 00:47:57 +0000

Hi,

Which chipkit board are you using and what version of MPIDE are you using? Try compiling and loading an example sketch such as the blinkyLed and see if you get the same error. Make sure the right serial com port is selected and the board too.

--Jesse


majenko

Thu, 07 Aug 2014 10:07:51 +0000

That looks like the preprocessor failing to parse your sketch. Check your comments, they are the most common cause of the parser failing - especially an unterminated multi-line comment.


edmondson@ieee.org

Thu, 07 Aug 2014 22:12:52 +0000

Sorry, didn't get a chance to re-post yesterday.

Finally found the problem. It was a syntax error in the middle of things that drove the pre-processor nutso. It happened when I went to reload my software after a couple of minor changes onto the Max32, so I thought it was something entirely different.

Fun part was that the error was no where near where I was making changes, so I have no idea why they happened!


edmondson@ieee.org

Tue, 18 Nov 2014 19:16:59 +0000

Just for grins and giggles, I ran into this problem again today! What caused it? I had a line: Serial.print("Serial Number: );

Note that there is no ending " before the closing parenthesis! No error, it just sent the pre-processor into a tizzy!

Is there somewhere you can file bug reports for MPIDE?


majenko

Tue, 18 Nov 2014 19:23:06 +0000

Post them on Github:

[url]https://github.com/chipKIT32/chipKIT32-MAX/issues[/url]

Or just use UECIDE as I completely re-wrote the preprocessor from scratch and it's perfectly happy with missing quotes:

Error at line 51 in file CardInfo.pde
/home/matt/.uecide/cores/chipKIT/libraries/SD/examples/CardInfo/CardInfo.pde:51:1: error: missing terminating " character
/home/matt/.uecide/cores/chipKIT/libraries/SD/examples/CardInfo/CardInfo.pde: In function 'void setup()':
Error at line 56 in file CardInfo.pde
/home/matt/.uecide/cores/chipKIT/libraries/SD/examples/CardInfo/CardInfo.pde:56:39: error: expected ')' before ';' token
Failed compiling sketch