UART init error #5420
Replies: 1 comment
-
Posted at 2016-09-09 by ClearMemory041063 Try this
Posted at 2016-09-09 by ClearMemory041063 Are you using WEBIDE to access the PICO?
The output:
Attachments: Posted at 2016-09-10 by GeekBot Thank you ClearMemory041063, Uncaught Error: Function "g" not found! Any clue ? Posted at 2016-09-10 by GeekBot Hello, Posted at 2016-09-10 by DrAzzy It looks like the minifier is going berserk and renaming builtin functions. What minification option are you using? Try changing it. Posted at 2016-09-10 by @gfwilliams
Yeah, I reckon you might have gone into settings and turned all the settings up to 'max'? Under Posted at 2016-09-10 by GeekBot Hi Guys Posted at 2016-09-10 by ClearMemory041063 Glad that you have found a solution. Posted at 2016-09-10 by @gfwilliams Just tried it, and setting normal (not module) minification to:
Definitely gives the error. The rest of them are probably fine. Posted at 2016-09-10 by DrAzzy Should the max minification option be removed? If it mangles builtin function names like that, it's not usable for even a simple task. Why have a setting that you know isn't usable? Posted at 2016-09-10 by luwar In general: If you want to minify a JavaScript program with Google Closure Compiler in "Advanced Minification" mode then you need an *.externs file for every library which is not part of the minification step. The builtin functions are not part of the minification. So an extern file is required. Advanced minification is useless without an externs file. I've attached an espruino.externs file which I use for module minification. But it must be built into the WebIDE code to be sent to the minification service. I did it for module minification some time ago: The same simple logic must be built into the WebIDE. Then advanced minification would work there too. But I don't know the source code of the WebIDE. Sorry. Attachments: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-09-09 by GeekBot
Hello,
I use Epruino Pico version 1.86.
The source code is made of this unique line of code:
Serial2.setup(9600, { rx: A3, tx : A2 });
Running it leads to this error :
Same story with:
Serial2.setup(9600,{rx:A3, tx:A2,bytesize:8,parity:'even',stopbits:1});
I feel to be an idiot, since it seems so trivial to use...
Is this normal ?
Any advice is welcome.
Best regards
GeekBot
Beta Was this translation helpful? Give feedback.
All reactions