question

hbopuri avatar image
0 Votes"
hbopuri asked hbopuri edited

Azure Sphere MT3620 Enable Development mode throws error

I had this device working fine for few days, recently I deployed new image and to tried to enable deployment mode but it keeps throwing below error

error: An unexpected problem occurred. Please try again; if the issue persists, please refer to https://aka.ms/AzureSphereSDKHelp/Device and https://aka.ms/azurespheresupport for troubleshooting suggestions and support.


Then I tried

 azsphere device recover

Device recovered successfully. Then ran the below command

 azsphere device enable-development

error: An unexpected problem occurred. Please try again; if the issue persists, please refer to https://aka.ms/AzureSphereSDKHelp/Device and https://aka.ms/azurespheresupport for troubleshooting suggestions and support.


What could be wrong? Id the device cornuted?


azure-sphere
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ChandraNekanti-3683 avatar image
0 Votes"
ChandraNekanti-3683 answered hbopuri edited

Hi @hbopuri - What is the version of SDK you are running on the PC? command is azsphere show-version.

Also can you share the azsphere device list-attached command output here?

If both these commands complete successfully, please share the output of azsphere device enable-development --verbose




· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

 azsphere show-version

21.04

 azsphere device list-attached

1 device attached:
--> Device ID: ceb4066c51dxxxxxxxxx
--> Is responsive: yes
--> IP address: 192.168.35.2
--> Connection path: 123

 azsphere device enable-development --verbose

verbose: Azure Sphere Utility version 21.4.1.43553
verbose: Copyright (C) Microsoft Corporation. All rights reserved.
verbose:
verbose: Start time (UTC): Friday, 16 July 2021 12:04:58
verbose: ==> Using Azure Active Directory tenant ID: 'xxxxxxxxxxxxxxxxxxxxxxxxx'.
verbose: ==> Using environment: 'prod'.
verbose: ==> Using Azure Sphere tenant ID: 'xxxxxxxx'.
verbose:
verbose: Reading settings file 'C:\Users\Administrator\AppData\Local\Azure Sphere Tools\settings.json'.
verbose: No SerialSlipToTunService port is set in the registry; defaulting to 48938.
verbose: No SerialSlipToTunService port is set in the registry; defaulting to 48938.
verbose: Using attached device ID 'ceb40xxxxxxxxxx'.
error: An unexpected problem occurred. Please try again; if the issue persists, please refer to https://aka.ms/AzureSphereSDKHelp/Device and https://aka.ms/azurespheresupport for troubleshooting suggestions and support.
trace: System.UnauthorizedAccessException: Access to the path 'C:\Users\Administrator\AppData\Local\Azure Sphere Tools\tokens_rbac.cache' is denied.

0 Votes 0 ·

I deleted this file, C:\Users\Administrator\AppData\Local\Azure Sphere Tools\tokens_rbac.cache then next time if prompted to login, after login it worked fine.


having --verbose helped me to find the problem and resolve it.

0 Votes 0 ·