From e1ac466a97218d8ff8f196a71feed97b047ad5e4 Mon Sep 17 00:00:00 2001 From: JF Date: Tue, 27 Oct 2020 11:41:53 +0100 Subject: [PATCH] Do not send the SLEEP command to the SPI NOR Flash to prevent the bootloader from being stuck in an infinite loop (because it cannot initialize the chip while it's in sleep mode). Version 0.8.3. --- CMakeLists.txt | 2 +- src/SystemTask/SystemTask.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f65a4397..468e045b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/src/SystemTask/SystemTask.cpp b/src/SystemTask/SystemTask.cpp index a4e63560..2df5e74b 100644 --- a/src/SystemTask/SystemTask.cpp +++ b/src/SystemTask/SystemTask.cpp @@ -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();