@avtolstoy,
Not sure what is going on with the app built for 1.4.4 - would have been my testing. Starting again to ensure that we are on the same page, apologies for this.
FYI: here is my startup:
// ----------------------------
// Startup code that runs early
// ----------------------------
STARTUP(
Keyboard.begin(); // Allows the HID device attach for the first time after boot with *both* Serial and Keyboard
Serial1.begin(115200L); // 2017-10-25 To stop, or at least reduce, spurious output upon start up
// High baud rate seems to help too.
// If EVT_II is using GPIO P1S6 for KEYPAD_ROW_1, must add
// But we are not, but leave it in anyway
System.disableFeature(FEATURE_WIFI_POWERSAVE_CLOCK);
// Refer https://community.particle.io/t/application-softap-http-pages-issue/22499/4
// Be sure to initialize the softAP pages in a STARTUP() macro so they
// are setup *before* the device connects to the internet.
//
// If it is initialized in the setup() method, then SoftAP pages
// won’t be available until the device has connected to the cloud.
softap_set_application_page_handler(myPage, nullptr);
);
Here is what I am doing right now on the errant device:
Serial inspect
Platform: 8 - P1
Modules
Bootloader module #0 - version 400, main location, 16384 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 1500, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 207
System module #2 - version 1500, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 1500
Bootloader module #0 - version 400
User module #1 - version 6, main location, 131072 bytes max size
UUID: FF158A...
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 1406
- Device is now at a different location (ie different Access Point), was breathing white (expected)
- Could not enter Listening mode… (bad)
- Put it into Safe Mode
- Could enter Listening mode (good)
- Programmed in the new Access Point credentials
- Safe Mode could connect with Particle - witnessed connection in Particle console (good)
- Reset
- Program started ok (good)
- Device would NOT connect with access point, breathing white (bad) <-- Is this a clue?
- Put the device back to Safe Mode so that I could OTA
- Problem - flashing green - so could not connect with access point (but it did before)… (bad)
- Could enter Listening mode (good)
- Programmed in the new Access Point credentials again
- Safe Mode could connect with Particle - witnessed connection in Particle console (good)
- Did not reset this time as suspect that the program is doing something bad to the WiFi credentials
- Compiled my app to target 1.5.0-rc.1
- OTA
- Immediate SOS #1 (bad)
- Reset to Safe Mode
- Entered Listening Mode
- Serial Inspect now shows:
Platform: 8 - P1
Modules
Bootloader module #0 - version 400, main location, 16384 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 1500, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 207
System module #2 - version 1500, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 1500
Bootloader module #0 - version 400
User module #1 - version 6, main location, 131072 bytes max size
UUID: 13BB56...
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 1500
- Reset (so as to go back to the application)
- Immediate SOS #1 (bad)
- Recompiled my app targetting v1.4.4
- Reset to Safe Mode
- App now works ok.
- Back to safe mode
- Back to listening mode
Serial inspect
Platform: 8 - P1
Modules
Bootloader module #0 - version 400, main location, 16384 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 1500, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 207
System module #2 - version 1500, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 1500
Bootloader module #0 - version 400
User module #1 - version 6, main location, 131072 bytes max size
UUID: 05B40464D3B67D8FAF37C21203099EA8CBFA38E35E08B241DAC9D11366172F73
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 1406
Conclusion
My app compiled for 1.5.0-rc.1 will SOS #1 with DeviceOS: 1.5.0-rc.1.
My app compiled for 1.4.4 will work okay with DeviceOS: 1.5.0-rc.1.
Hope this amount of detail is helpful.
I will now work on experiments with the app source code to see if I can get it to start okay when targetting for 1.5.0-rc.1…