Skip to content

some nrf52840 boards boot to safe mode with rc.1 #1842

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

Closed
jerryneedell opened this issue May 5, 2019 · 3 comments · Fixed by #1870
Closed

some nrf52840 boards boot to safe mode with rc.1 #1842

jerryneedell opened this issue May 5, 2019 · 3 comments · Fixed by #1870

Comments

@jerryneedell
Copy link
Collaborator

jerryneedell commented May 5, 2019

My PCA10059 Dongle boots to "safe mode" with CP 4.0-rc.1 or the current master but it works OK with Beta.7

Note- I did update the bootloader to v2.11 -- rc.1 does work with it on a feather_nrf52840_express

RC.1



You are running in safe mode which means something unanticipated happened.
Looks like our core CircuitPython code crashed hard. Whoops!
Please file an issue at https://github.com/adafruit/circuitpython/issues
 with the contents of your CIRCUITPY drive and this message:
Crash into the HardFault_Handler.

Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 4.0.0-rc.1 on 2019-04-24; PCA10059 nRF52840 Dongle with nRF52840
>>> 
>>> 
>>> 
>>> 

Current Master


Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.

You are running in safe mode which means something unanticipated happened.
Looks like our core CircuitPython code crashed hard. Whoops!
Please file an issue at https://github.com/adafruit/circuitpython/issues
 with the contents of your CIRCUITPY drive and this message:
Crash into the HardFault_Handler.

Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 4.0.0-rc.1-19-g1a8e50c77 on 2019-05-05; PCA10059 nRF52840 Dongle with nRF52840
>>> 
>>> 
>>> 
>>> 

Beta.7


Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.

Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 4.0.0-beta.7 on 2019-04-13; PCA10059 nRF52840 Dongle with nRF52840
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
@jerryneedell
Copy link
Collaborator Author

Followup -- CP 4.0 rc1 with the 2.11 bootloader works OK on a PCA10056 and a particle_xenon as well. So far only the pca10059 is not working.

@jerryneedell
Copy link
Collaborator Author

a bit more information: I tried using a makerdiary_nrf52840_USB_dongle and get simialr results as with the pca10059.
4.0 - beta.7 works OK
rc1 does not boot
dmesg reports:

[230532.689753] scsi host7: scsi scan: INQUIRY result too short (5), using 36
[230532.689772] scsi 7:0:0:0: Direct-Access     makerdia nRF52840-MDK-Don 1.0  PQ: 0 ANSI: 2
[230532.690160] sd 7:0:0:0: Attached scsi generic sg2 type 0
[230532.691315] sd 7:0:0:0: [sdc] Unit Not Ready
[230532.691319] sd 7:0:0:0: [sdc] Sense Key : Illegal Request [current] 
[230532.691321] sd 7:0:0:0: [sdc] Add. Sense: Invalid command operation code
[230532.691613] sd 7:0:0:0: [sdc] Unsupported sector size 8192.
[230532.691618] sd 7:0:0:0: [sdc] 0 512-byte logical blocks: (0 B/0 B)
[230532.691620] sd 7:0:0:0: [sdc] 8192-byte physical blocks
[230532.691865] sd 7:0:0:0: [sdc] Write Protect is on
[230532.691869] sd 7:0:0:0: [sdc] Mode Sense: 03 00 80 00
[230532.692120] sd 7:0:0:0: [sdc] No Caching mode page found
[230532.692123] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[230532.694071] sd 7:0:0:0: [sdc] Unit Not Ready
[230532.694076] sd 7:0:0:0: [sdc] Sense Key : Illegal Request [current] 
[230532.694080] sd 7:0:0:0: [sdc] Add. Sense: Invalid command operation code
[230532.694339] sd 7:0:0:0: [sdc] Sector size 0 reported, assuming 512.
[230532.694346] sd 7:0:0:0: [sdc] 8 512-byte logical blocks: (4.10 kB/4.00 KiB)
[230532.694349] sd 7:0:0:0: [sdc] 0-byte physical blocks
[230532.694936] sd 7:0:0:0: [sdc] Attached SCSI removable disk

on change between beta7 and rc1 dealt with nvm -- I wonder if there is an issue with these boards that do not have external flash...

@jerryneedell
Copy link
Collaborator Author

hmm -- the plot thickens -- tried RC1 on a sparkfun_nrf52840_mini (also no external flash) and it also boots to safe mode like the pca10059
Beta 7 works normally.
Note -- on this board, I have the bootloader delivered with the board - not 2.11 as on the other boards.

UF2 Bootloader 1.00
Model: SparkFun nRF52840 Mini
Board-ID: SparkFun nRF52840 Mini
Bootloader: s140 6.1.1 r0
Date: Nov 26 2018

So far 3 for 3 nrf52840 boards without external flash do not boot properly with 4.0 rc1
All boards with extrenal flash so far boot OK -- could be a pattern ;-)

@jerryneedell jerryneedell changed the title pca10059 boots to safe mode with rc.1 pca10059 and other boards boot to safe mode with rc.1 May 5, 2019
@jerryneedell jerryneedell changed the title pca10059 and other boards boot to safe mode with rc.1 some nrf52840 boards boot to safe mode with rc.1 May 5, 2019
@tannewt tannewt added this to the 4.0.0 - Bluetooth milestone May 8, 2019
dhalbert pushed a commit that referenced this issue May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants