Git Product home page Git Product logo

Comments (12)

lupyuen avatar lupyuen commented on August 28, 2024 1

Sure no problem :-) I'm sorry that you had to get the first batch of PineTime watches, the upcoming batch will have built-in wireless flashing support.

Now that you have figured out how to build the firmware in the cloud, maybe you could experiment with Clock.cpp and make your own watch face :-)

https://lupyuen.github.io/pinetime-rust-mynewt/articles/pinetime#programming-with-pinetime

from infinitime.

lupyuen avatar lupyuen commented on August 28, 2024 1

Sure I understand. We have a newcomer who developed their own Watch Face without a PineTime, by simply editing Clock.cpp and building with GitHub Actions.

We'll have a tutorial on that soon (written by our newcomer). Check with me on Twitter or Mastodon for updates :-)

https://twitter.com/MisterTechBlog

https://qoto.org/@lupyuen

from infinitime.

lupyuen avatar lupyuen commented on August 28, 2024

Hi: Building the firmware on Windows may be tricky... Would you like to try building in the GitHub Cloud with GitHub Actions? Here are the steps...

https://lupyuen.github.io/pinetime-rust-mynewt/articles/cloud

from infinitime.

lupyuen avatar lupyuen commented on August 28, 2024

Oh sorry if you browse the article a little more you'll see this fix, please try this...

If we see this error...

/home/runner/work/Pinetime/Pinetime/src/drivers/TwiMaster.cpp:1:10: fatal error: sdk/integration/nrfx/nrfx_log.h: No such file or directory
 #include <sdk/integration/nrfx/nrfx_log.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [src/CMakeFiles/pinetime-app.dir/drivers/TwiMaster.cpp.o] Error 1

Browse to...

https://github.com/ACCOUNT_NAME/Pinetime/blob/master/src/drivers/TwiMaster.cpp

(Change ACCOUNT_NAME to our GitHub Account Name)

Edit the first two lines...

#include <sdk/integration/nrfx/nrfx_log.h>
#include <sdk/modules/nrfx/hal/nrf_gpio.h>

To...

#include <nrfx_log.h>
#include <nrf_gpio.h>

Click Commit Changes to save the file.

This triggers a new Firmware Build, which should succeed now.

from infinitime.

thibww67 avatar thibww67 commented on August 28, 2024

Thank you for your answers !

Yes I noticed this just after I wrote my comment, it works and I managed to download the ZIP file.
The last problem is that Nrf Connect seems to have change a little bit and I can't find the way to download the zip with the DFU. on Android.

Screenshot_20200811-131737_nRF Connect

from infinitime.

lupyuen avatar lupyuen commented on August 28, 2024

Cool great! I think you need to flash the wired way the first time, after that nRF Connect will work.

Look in the "Other Options" section questions 4 and 5...

https://lupyuen.github.io/pinetime-rust-mynewt/articles/cloud#other-options

Do you have a Raspberry Pi? We will need to unprotect the Flash ROM with pinetime-updater as explained here...

https://github.com/lupyuen/pinetime-updater/blob/master/README.md#remove-flash-rom-protection

Then we can use pinetime-updater to flash the file pinetime-app.out (note that it's not the same as the other ZIP file)...

  1. Download the artifact pinetime-app.out from GitHub Actions.

  2. We'll get a ZIP file. Extract the PineTime Firmware Image inside: pinetime-app.out

  3. Flash with PineTime Updater...

    • Run ./run.sh. Select Latest Bootloader to flash the latest bootloader

    • Then run ./run.sh again. Select Downloaded File and pinetime-app.out

    • Flash to address 0x0

from infinitime.

lupyuen avatar lupyuen commented on August 28, 2024

If you're still stuck, come chat with us on the PineTime Chatroom on Discord / Matrix / Telegram / IRC: https://wiki.pine64.org/index.php/PineTime#Community

from infinitime.

thibww67 avatar thibww67 commented on August 28, 2024

Yes I still stuck because I have no Raspberry available right now..
I just managed to launch the Cmake command with OpenOCD but it changes nothing.
I posted a thread on Pine64.
Thank you for your time !

from infinitime.

thibww67 avatar thibww67 commented on August 28, 2024

The project is very interesting but unfortunately I can not yet build the code on my Windows, and even if I build it, I don't really know if it is possible to flash it over USB.

But thank you for all your answers !

from infinitime.

borgmanJeremy avatar borgmanJeremy commented on August 28, 2024

@thibww67 I have not tried it myself, but I think you should be able to build it on windows using windows subsystem for linux (WSL).

from infinitime.

JF002 avatar JF002 commented on August 28, 2024

I did not try to compile this project on windows, but this would be a nice addition. PR welcome :)

The documentation about NRFConnect is valid only if you've already programmed this project on your Pinetime. The stock firmware does not work that way.

You'll need a SWD debugger to program the firmware into your pinetime. And, as the Pinetime comes with the memory protected, you need a debugger than is able to unlock it (jlink, raspberrypi,...).
The memory won't be locked in the next batch, but it's not available yet...

from infinitime.

JF002 avatar JF002 commented on August 28, 2024

I'm closing this issue as there's no activity for more than a month. @thibww67 reopen it if necessary.

from infinitime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.