Comments (11)
There was an error in the documentation (Readme.md). When you type make -j
, it builds all the targets at once : the code + additional targets that programs the pinetime with JLink.
You should use this command to just build the project : $ make -j pinetime-app
I've just commited an update to the doc that takes this into account.
from infinitime.
@JF002 Thanks! I built per above then flashed via:
make FLASH_SOFTDEVICE
make FLASH_pinetime-app
and everything works correctly, but the display is blank - is this expected? To be clear, I've had no problems w/ other projects, the display works fine, etc. Thanks!
from infinitime.
No, this is not expected... The display should show something (battery level, and the time, 00:00 by default).
Did you try to push the button to see if it wakes the display up?
EDIT : if the softdevice is not flashed properly, the soft enters into a reset loop. Could you check that the soft device programming is ok? Here is the ouput of make FLASH_SOFTDEVICE
using JLink:
$ make FLASH_SOFTDEVICE
[100%] flashing SoftDevice
Parsing hex file.
Erasing page at address 0x0.
Erasing page at address 0x1000.
Erasing page at address 0x2000.
Erasing page at address 0x3000.
Erasing page at address 0x4000.
Erasing page at address 0x5000.
Erasing page at address 0x6000.
Erasing page at address 0x7000.
Erasing page at address 0x8000.
Erasing page at address 0x9000.
Erasing page at address 0xA000.
Erasing page at address 0xB000.
Erasing page at address 0xC000.
Erasing page at address 0xD000.
Erasing page at address 0xE000.
Erasing page at address 0xF000.
Erasing page at address 0x10000.
Erasing page at address 0x11000.
Erasing page at address 0x12000.
Erasing page at address 0x13000.
Erasing page at address 0x14000.
Erasing page at address 0x15000.
Erasing page at address 0x16000.
Erasing page at address 0x17000.
Erasing page at address 0x18000.
Erasing page at address 0x19000.
Erasing page at address 0x1A000.
Erasing page at address 0x1B000.
Erasing page at address 0x1C000.
Erasing page at address 0x1D000.
Erasing page at address 0x1E000.
Erasing page at address 0x1F000.
Erasing page at address 0x20000.
Erasing page at address 0x21000.
Erasing page at address 0x22000.
Erasing page at address 0x23000.
Erasing page at address 0x24000.
Erasing page at address 0x25000.
Applying system reset.
Checking that the area to write is not protected.
Programming device.
Applying system reset.
Run.
[100%] Built target FLASH_SOFTDEVICE
from infinitime.
@JF002 yes I pushed the button. 👉 ⏯️
The softdevice (and app) seems to be flashing OK:
make FLASH_SOFTDEVICE
[100%] flashing SoftDevice
Parsing hex file.
Erasing page at address 0x0.
Erasing page at address 0x1000.
Erasing page at address 0x2000.
Erasing page at address 0x3000.
Erasing page at address 0x4000.
Erasing page at address 0x5000.
Erasing page at address 0x6000.
Erasing page at address 0x7000.
Erasing page at address 0x8000.
Erasing page at address 0x9000.
Erasing page at address 0xA000.
Erasing page at address 0xB000.
Erasing page at address 0xC000.
Erasing page at address 0xD000.
Erasing page at address 0xE000.
Erasing page at address 0xF000.
Erasing page at address 0x10000.
Erasing page at address 0x11000.
Erasing page at address 0x12000.
Erasing page at address 0x13000.
Erasing page at address 0x14000.
Erasing page at address 0x15000.
Erasing page at address 0x16000.
Erasing page at address 0x17000.
Erasing page at address 0x18000.
Erasing page at address 0x19000.
Erasing page at address 0x1A000.
Erasing page at address 0x1B000.
Erasing page at address 0x1C000.
Erasing page at address 0x1D000.
Erasing page at address 0x1E000.
Erasing page at address 0x1F000.
Erasing page at address 0x20000.
Erasing page at address 0x21000.
Erasing page at address 0x22000.
Erasing page at address 0x23000.
Erasing page at address 0x24000.
Erasing page at address 0x25000.
Applying system reset.
Checking that the area to write is not protected.
Programming device.
Applying system reset.
Run.
[100%] Built target FLASH_SOFTDEVICE
make FLASH_pinetime-app
[ 98%] Built target pinetime-app
[100%] flashing pinetime-app.hex
Parsing hex file.
Erasing page at address 0x26000.
Erasing page at address 0x27000.
Erasing page at address 0x28000.
Erasing page at address 0x29000.
Erasing page at address 0x2A000.
Erasing page at address 0x2B000.
Erasing page at address 0x2C000.
Erasing page at address 0x2D000.
Erasing page at address 0x2E000.
Erasing page at address 0x2F000.
Erasing page at address 0x30000.
Erasing page at address 0x31000.
Erasing page at address 0x32000.
Erasing page at address 0x33000.
Erasing page at address 0x34000.
Erasing page at address 0x35000.
Erasing page at address 0x36000.
Erasing page at address 0x37000.
Erasing page at address 0x38000.
Erasing page at address 0x39000.
Erasing page at address 0x3A000.
Erasing page at address 0x3B000.
Erasing page at address 0x3C000.
Erasing page at address 0x3D000.
Erasing page at address 0x3E000.
Erasing page at address 0x3F000.
Erasing page at address 0x40000.
Erasing page at address 0x41000.
Erasing page at address 0x42000.
Erasing page at address 0x43000.
Erasing page at address 0x44000.
Erasing page at address 0x45000.
Erasing page at address 0x46000.
Erasing page at address 0x47000.
Erasing page at address 0x48000.
Erasing page at address 0x49000.
Erasing page at address 0x4A000.
Erasing page at address 0x4B000.
Erasing page at address 0x4C000.
Erasing page at address 0x4D000.
Erasing page at address 0x4E000.
Erasing page at address 0x4F000.
Applying system reset.
Checking that the area to write is not protected.
Programming device.
Applying system reset.
Run.
[100%] Built target FLASH_pinetime-app
Is there anything else you'd like me to try to help determine what might be happening?
from infinitime.
Well I've no idea :/
Could you try to update your code to the latest commit? In 8daa830, a hardware reset if applied to the display, because sometimes, the display would not wakeup from sleep. Maybe it'll solve your issue?
from infinitime.
@JF002 OK, so this is really weird, but I can repro it reliably, so...LMK what you think: I pulled the latest and flashed - same blank screen as always; so I tried running RTT terminal
to see if any output etc. (none) - and then - I tried re-flashing (while RTT terminal
was running) - and after flashing the softdevice, the display came alive for the first time ever! Cool! So I flashed the app, and the display went blank. 🤕 I then flashed the bosmoment firmware as a palate cleanser, and the display resulted in a mixed state of both - e.g. your date was still mostly visible (guessing there was no full refresh). So then I stopped RTT terminal
and flashed the softdevice, then your firmware - blank as always; so I re-flashed the softdevice like last time: nothing - in fact, an error:
.
.
Erasing page at address 0x25000.
Applying system reset.
Checking that the area to write is not protected.
Programming device.
Segmentation fault (core dumped)
make[3]: *** [src/CMakeFiles/FLASH_SOFTDEVICE.dir/build.make:58: src/CMakeFiles/FLASH_SOFTDEVICE] Error 139
make[2]: *** [CMakeFiles/Makefile2:125: src/CMakeFiles/FLASH_SOFTDEVICE.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:132: src/CMakeFiles/FLASH_SOFTDEVICE.dir/rule] Error 2
make: *** [Makefile:131: FLASH_SOFTDEVICE] Error 2
Sooooo I did it again with RTT terminal
running: SUCCESS - the display is back!! I am really confused as to why this worked, but...wanted to let you know! 😵 🚀
from infinitime.
All of this is really weird...
In my case, I only flash my firmware (haven't tried other projects yet) using jlink without any issue. Did you try to apply a (full / hard) reset on the MCU after the programming? I think it's possible using nrfjprog
and JLinkExe
.
from infinitime.
@JF002 do you mean like nrfjprog ---pinreset
?
from infinitime.
There are 3 options : --reset
, --pinreset
and --debugreset
. To be honest, I don't know what are the differences between these 3 options, but you could try them out.
from infinitime.
@ishotjr Do you still have this issue?
from infinitime.
I'm closing this issue because there is no new activity for a long time...
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 8
- 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 2
- 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.