Skip to content

Commit

Permalink
Do not send the SLEEP command to the SPI NOR Flash to prevent the boo…
Browse files Browse the repository at this point in the history
…tloader from being stuck in an infinite loop (because it cannot initialize the chip while it's in sleep mode).

Version 0.8.3.
  • Loading branch information
JF002 committed Oct 27, 2020
1 parent b6a910e commit e1ac466
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(pinetime VERSION 0.8.2 LANGUAGES C CXX ASM)
project(pinetime VERSION 0.8.3 LANGUAGES C CXX ASM)

set(NRF_TARGET "nrf52")

Expand Down
5 changes: 4 additions & 1 deletion src/SystemTask/SystemTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ void SystemTask::Work() {
ReloadIdleTimer();
break;
case Messages::OnDisplayTaskSleeping:
spiNorFlash.Sleep();
// BUG : Bootloader v4.1.7 cannot wake the chip up and enters into an infinite loop, which bricks devices.
// Sleep mode is disabled until we can detect the version of the bootloader and enable sleep mode on
// supported versions only
//spiNorFlash.Sleep();
lcd.Sleep();
touchPanel.Sleep();

Expand Down

0 comments on commit e1ac466

Please sign in to comment.