Comments (12)
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.
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
from infinitime.
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.
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.
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.
from infinitime.
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)...
-
Download the artifact
pinetime-app.out
from GitHub Actions. -
We'll get a ZIP file. Extract the PineTime Firmware Image inside:
pinetime-app.out
-
Flash with PineTime Updater...
-
Run
./run.sh
. SelectLatest Bootloader
to flash the latest bootloader -
Then run
./run.sh
again. SelectDownloaded File
andpinetime-app.out
-
Flash to address
0x0
-
from infinitime.
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.
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.
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.
@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.
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.
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)
- Turn off accelerometer in night mode HOT 3
- Can't connect to Gadgetbridge after Firmware 1.14 update. HOT 5
- Screen shifting upwards HOT 9
- Assert call being removed during compilation, causing NULL pointer dereference in ble_ll_task HOT 6
- Using GDB debugger in devcontainer does not load source map
- Stopwatch lap counter only goes up to 20 laps HOT 1
- Unable to update InfiniTime successfully
- Add unit testing framework and skeleton test project HOT 4
- looping recovery mode,.... infinite loop. ITime. HOT 2
- Not reconnecting to Gadgetbridge HOT 7
- What watch faces currently support weather? HOT 9
- Whats the best way to track what and when the next release HOT 2
- Add active alarm indicator to watch face HOT 4
- Fix Stopwatch Side Button Behavior HOT 1
- Use separate screens for switching off ringing alarm and for alarm configuration
- Firmware update with pinetime-mcuboot-app-dfu-1.14.0.zip and GadgetBridge fails HOT 3
- Wake-up Alarm does not sound in Sleep mode HOT 4
- Text disappears from watchface on chimes HOT 1
- BLE bond deleted after 2 reboots without connectivity to central HOT 3
- PineStore announcement : the current flash chip is EoL, a new one will be used for future PineTime batches
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infinitime.