Building Espruino for Puck #2011
Replies: 10 comments
-
Posted at 2016-12-19 by @gfwilliams try The normal build will try and merge with the bootloader, which needs building with However that merged hex file is only really any good if you've got a debugger connected to the Puck - for wireless firmware updates you want the Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-19 by stevie4711 Thanks, that worked! I will have to tested it later today, but at least I could build. Just for reference, installing nrfutil on Mac needs the following: sudo pip install --ignore-installed six nrfutil |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-19 by @gfwilliams Great - thanks for letting me know! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-19 by stevie4711 Okay, I have uploaded the new firmware to the Puck and can confirm that it works fine. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-20 by ChristianW @stevie4711 thanks for sharing the pip command. However, I had to install gcc-arm to do the build (OS X Sierra here, using homebrew): Will still have to test the compiled ZIP though to verify that it works... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-20 by stevie4711 You are welcome! For gcc what I did was actually to just download the arm gcc binary distribution, unpack to some location and put it in the path. That way I can have multiple different versions and can just set the path from some project related build script. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-08 by ChristianW OK - given I have managed to create a working ZIP for OTA flashing. A test cycle is quite complex and time consuming:
Any hints or howtos to do it via serial connection from the commandline?
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-08 by @gfwilliams Afraid not - ideally you'd connect the GND, SWD, and SWCK pads to something like an nRF52832DK board, then you can use Having said that, I actually do a lot of development on a nRF52832DK board as it's easier, and then flash the Pucks only when needed (I made a jig with pogo pins to make it faster/easier) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-08 by ChristianW OK thanks. Ordered the board. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-08 by @gfwilliams It's the S132 softdevice you need: http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.softdevices52/dita/softdevices/s130/s130.html?cp=2_3_0 (and the S130 for nRF51 - they're pretty much identical API-wise) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-18 by stevie4711
Hi @gfwilliams,
I tried building the Espruino firmware for the Puck myself. I am doing it from a Mac, checked out the top of the master from github.
I started the build with
Building works mostly, lots of warnings, but no apparent errors. I get to the stage where it links the firmware. That seems to work. Then it fails with the following log:
Any advise? What am I doing wrong?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions