3dfba0b90d
Update BLE status when BLE is connected.
JF
2020-06-19 22:20:12 +02:00
b8f9d70667
Use PRIMASK instead of BASEPRI for critical sections in FreeRTOS. This is needed by NimBLE to be able to mask radio interrupt (which has priority 0).
JF
2020-06-19 22:11:21 +02:00
46b8bf9fc1
Add new target (pinetime-graphics) that flash the bootloader logo into the spi flash memory.
JF
2020-06-06 19:28:01 +02:00
e7723598a6
Automatically go to sleep after 5 sec of inactivity. Advertise for 3 minutes at startup and on wake-up. Disable automatic continuous StartAdvertising.
JF
2020-06-01 20:40:11 +02:00
de822cc3a2
Encapsulate DFU Image buffering and writing into spi flash in DfuImage. Add some const in SPI driver.
JF
2020-06-01 18:32:46 +02:00
07f74cee63
DFU : add timeout detection : abort dfu procedure after 10s without any data from the host.
JF
2020-06-01 16:30:24 +02:00
b41a856b9d
Add python script to DFU from a linux PC to the Pinetime
JF
2020-06-01 15:21:58 +02:00
dca559aad5
Improve DFU procedure : - correctly write all bytes to flash - check CRC - Fix bug in notification : they cannot be sent from the control point handler (because it seems you cannot send a notification and a write acknowledge at the same time) using a timer (quick'n'dirty implementation to be improved) - Improve dfu screen - Reset if dfu image is correctly copied into flash and crc is ok.
JF
2020-06-01 09:22:54 +02:00
4717cf0a1d
Add driver for writing into the internal flash. Write the OK flag for mcuboot using this driver.
JF
2020-05-24 20:30:06 +02:00
00451ef05b
Add example scripts to generate mcuboot image, dfu file and program them with openocd.
JF
2020-05-24 17:47:07 +02:00
4154dae01a
Fix race condition in SpiMaster.cpp.
JF
2020-05-24 17:46:43 +02:00
84b996bf3f
Typo in file name. Set version to 0.6.0.
JF
2020-05-24 17:02:45 +02:00
82b4ddc25b
Merge branch 'nimble-ota' of JF/PineTime into develop
JF
2020-05-24 16:58:29 +02:00
331481cd0c
Refactor CMake files to allow building 2 binaries : one standalone and one compatible with mcuboot bootloader (the offset in memory is different).
JF
2020-05-24 16:36:04 +02:00
ce32863693
Fix offset issues in OTA procedure. CRC verification : work in progress (not fully working for now).
JF
2020-05-20 18:39:25 +02:00
8a94750e30
Merge branch 'develop' of JF/PineTime into master
JF
2020-05-17 10:29:13 +02:00
be1ad9b070
Disable logging once again...
JF
2020-05-17 10:25:42 +02:00
79131f4fe3
Improve SPI driver (use a mutex to prevent race conditions).
JF
2020-05-17 09:35:01 +02:00
9753967d8a
Update LittleVGL from 6.1.1 to 6.1.2. It fixes a memory leak when a screen used 2 lv_img objects (occured in Clock).
JF
2020-05-17 09:27:36 +02:00
d6c6ac4cf5
Remove reference to NRF Softdevice in CMake and documentation. Update documentation. Remove Asserts when starting advertising to prevent crash (known bug). Set version 0.5.0.
JF
2020-05-16 16:13:22 +02:00
56fba1c242
Merge branch 'nimble' of git.proxmox3:JF/PineTime into nimble
JF
2020-05-16 15:30:54 +02:00
ee05577dd6
Fix race conditions on SPI and integrate the SPI NOR Flash driver into DFUService (WIP)
JF
2020-05-11 18:50:37 +02:00
d564b3cf15
Fix crash when the computer disconnect from the BLE connection.
JF
2020-04-04 17:41:21 +02:00
211e9795e0
Update Readme, add section about BLE connection troubleshooting
JF
2020-03-29 15:19:39 +02:00
9ad1f05bc6
Improved BLE logging Do not consider service discovery as error Remove dulicated BLE observer
JF
2020-03-29 13:58:06 +02:00
baca0fc3e5
Encapsulate Notification management in NotificationManager. It implement a static array of notifications to avoid dynamic allocation.
JF
2020-03-28 19:05:28 +01:00
68240704c7
Add support for BLE notification (ANS client). Work In Progress!!!
JF
2020-03-25 21:23:40 +01:00
7e9a7e4d5f
Fix bad memory alloaction in sysinfo screen.
JF
2020-03-22 12:14:38 +01:00
fb64ba8fb6
Add new App : Sysinfo. It displays various info about the running system : version, date/time, battery, brightness and resetreason. It contains placeholder for future use (like mac address, uptime,...).
JF
2020-03-22 12:03:17 +01:00