compile and download to flash #5047
Replies: 1 comment
-
Posted at 2015-10-13 by alexanderbrevig Did you follow all the steps from building from windows VM and flashing from VM? Posted at 2015-10-13 by anthony Hi, Thanks, Posted at 2015-10-13 by @gfwilliams That's an odd one - are you flashing with As the Espruino board uses a bootloader, the binary that you build needs to be flashed at an offset of +10kB - so you need a special command to flash your binary, But if you're flashing using The binary you download from the website is 10kB bigger - it has the bootloader stuck on the front of it, which is why you can flash it to the default address. Posted at 2015-10-13 by anthony Hi,
still Posted at 2015-10-13 by @gfwilliams Wow, ok - it looks like what you're doing is spot on. What's the compiler version ( Mine is 4.8.4 (https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q3-update/+download/gcc-arm-none-eabi-4_8-2014q3-20140805-linux.tar.bz2) - I did notice something was up with Espruino compiles using the newer compiler a while back, but haven't had a chance to track it down. Posted at 2015-10-13 by anthony Hi Gordon, [anthony@localhost blog]$ arm-none-eabi-gcc --version Posted at 2015-10-13 by @gfwilliams Yeah, sorry about that - I reckon that's your problem. I just checked and the compiler I had trouble with here was a 4.9. I'll update the docs. I have no idea what the problem is though - obviously it's pretty frustrating. Last time there was a problem like this it was actually some register accesses in ST's USB library that were put out of order (I'm still not convinced it wasn't a compiler bug). Posted at 2015-10-13 by @gfwilliams Actually no, forget that - I just finished compiling with Potentially it's still a bit flaky though. I've just uploaded my build - maybe you could see if that works? Attachments: Posted at 2015-10-13 by anthony Hi Gordon, I tested the Attachment, it is still not working,maybe the board I'm using is different from yours. Posted at 2015-10-13 by @gfwilliams Oh - sorry, I've been stupid. That was an image for a pico board. I'll try one for a normal Espruino Posted at 2015-10-13 by @gfwilliams And I was right originally I'm afraid. The 4.9 compiler doesn't compile for the Espruino board for some reason (USB ends up broken). If you use the 4.8.4 compiler I linked then it should work. Posted at 2015-10-13 by anthony Hi Gordon, I tested 4.8.4 compiler, Posted at 2015-10-13 by @gfwilliams Quick update on this - However compiling without any optimisations sucks - you have to disable pretty much everything to get it to build. Until we find out what the issue is I think it's best to use the older compiler. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-10-13 by anthony
Hi,
I have a espruino rev 1.3b board and I'm using linux throuth virtual box.
I compiled the project, download, reset , in windows device manager, it is recognised as an
unknown device
, but I download the official one from [ espruino](http://www.espruino.com/binaries/git/commit_date/?C=M;O=D bin), it works fine, a com port.I tried these command:
anybody can help me?
Thanks,
Anthony
Beta Was this translation helpful? Give feedback.
All reactions