Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.enterSafeMode() does not work #751

Closed
kennethlimcp opened this issue Dec 2, 2015 · 4 comments

Comments

@kennethlimcp
Copy link
Contributor

commented Dec 2, 2015

Tested on 2 Photon with 0.4.7 firmware:

void setup(){

}

void loop(){
      System.enterSafeMode();
}

The devices would continuously reboot for some reason and enter safe mode after many tries (very randomly)

@m-mcgowan m-mcgowan added this to the 0.4.9 milestone Dec 14, 2015

@monkbroc

This comment has been minimized.

Copy link
Member

commented Dec 15, 2015

Make sure your Photons have at least bootloader version 5.

This program fails to enter safe mode for bootloader 4 but works fine for bootloader 5.

#include "application.h"

void setup() {
  Serial.begin(9600);
  delay(200);
  Serial.println(HAL_Bootloader_Get_Flag(BOOTLOADER_FLAG_VERSION));
  delay(200);
}

void loop() {
  System.enterSafeMode();
}
@m-mcgowan

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2015

That's a great point. The system firmware that this was included should update the bootloader, iirc. @kennethlimcp what version of system firmware is this running against?

@monkbroc

This comment has been minimized.

Copy link
Member

commented Dec 15, 2015

bootloader_platform_6.c hasn't been updated in 3 months. That's the mechanism for automatic bootloader updates, right?

@kennethlimcp

This comment has been minimized.

Copy link
Contributor Author

commented Dec 15, 2015

{"p":6,"m":[{"s":16384,"l":"m","vc":30,"vv":30,"f":"b","n":"0","v":4,"d":[]},
{"s":262144,"l":"m","vc":30,"vv":30,"f":"s","n":"1","v":8,"d":[]},
{"s":262144,"l":"m","vc":30,"vv":30,"f":"s","n":"2","v":8,"d":[{"f":"s","n":"1","v":8,"_":""}]},
{"s":131072,"l":"m","vc":30,"vv":30,"u":"C99D612B3E3746B6FA32AD031F24D114E124055FF19DA62C8
5B1E339683D0105","f":"u","n":"1","v":3,"d":[{"f":"s","n":"2","v":8,"_":""}]},
{"s":131072,"l":"f","vc":30,"vv":0,"d":[]}]}

@m-mcgowan m-mcgowan closed this in f53b09c Jan 18, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.