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

NucleoF411RE after disconnect from power it do not start more and have to re flash nanoframework #528

Closed
bmecdev opened this issue Sep 25, 2019 · 10 comments · Fixed by nanoframework/nf-interpreter#1534

Comments

@bmecdev
Copy link

bmecdev commented Sep 25, 2019

Details about Problem

Target NucleoF411RE:

Firmware image version: ST_NUCLEO64_F411RE_NF-1.1.187.0

Description

I'm working with NucleoF411RE and have issues after disconnect from power it do not start more and have to re flash nanoframework

Detailed repro steps so we can see the same problem

  1. flash only nanobooter to board and led start blinking.

  2. look at visual studio on device explorer and the board is visible.

  3. disconnect the board from usb getting power off an reconnect it.

  4. look at visual studio on device explorer and the board is visible.

  5. flash nanoCLR to the board and led stops blinking.

  6. look at visual studio on device explorer and the board is visible.

  7. disconnect the board from usb getting power off an reconnect it.

  8. look at visual studio on device explorer and the board is not visible.

And I have to re flash nanoframework to watch the board again in visual studio device explorer

@josesimoes
Copy link
Member

Missing above: the VS version and extension version that you are using.

@josesimoes josesimoes added the FOR DISCUSSION Open for discussion. Contributes from the community are welcome/expected. label Sep 25, 2019
@josesimoes
Copy link
Member

Also, if you can get that from the 1st boot, paste here the device capabilities output.

And another question: are you deploying any managed app after the 1st boot? Or what you are describing occurs with just the booter+CLR flashed on the board?

@bmecdev
Copy link
Author

bmecdev commented Sep 25, 2019 via email

@jabacz
Copy link

jabacz commented Sep 26, 2019

I can confirm this. Probably it's the same as the issue 526
I made more investigation. I can confirm exactly the issue of device dying after power off on Surface Pro6 (Intel I7). At desktop PC with Ryzen 1600X the device dies after any communication from Visual Studio (ping, device capabilities, deploy). It's a bit puzzling when with Intel you can make it work (blinky) till power off, while with AMD CPU it's enough to "ping" the device to kill it.
Visual studio tested 2017 as well as 2019 with NF 1.2.5.x and device FW #187
In both cases re-flashing makes is temporarily work.

@jabacz
Copy link

jabacz commented Oct 1, 2019

Update: Upgrading VS2019 extension from 1.2.5.1 to 1.2.5.3 makes RYZEN desktop work the same was as described in this issue post. Device works till powered off. One part of the puzzle seems solved :-)
Device recovery: flashing only nanobooter.hex restores the program flashed before into full running state.

@josesimoes
Copy link
Member

@jabacz thanks for the update.
The investigation of the root cause is still on the queue, please be patient.

@valoni
Copy link

valoni commented Oct 28, 2019

SWO kill Serial Communication
- (need to compile with SWO_OUTPUT="OFF") -

@tagelv
Copy link

tagelv commented Nov 10, 2019

I confirm this behavoir and in addition I want to provide my trick to avoid re-flashing the target board:

  1. Plug the target board to USB
  2. Open ST-LINK Utility and connect to the target
  3. Press User botton and Reset button at the same time (or first time - user button and almost immediately - reset button)

Result: flashed software runs, Device Explorer displays plugged target

@jabacz
Copy link

jabacz commented Nov 26, 2019

@tagelv This does not help with the issue, unfortunately. DEPLOY of DEBUG, or any Visual Studio invoked operation do not work.

@piwi1263
Copy link
Member

@tagelv @jabacz as @valoni mentioned above please have the SWO_OUTPUT set to OFF in your variants file, clear your build folder and recompile/build otherwise it WILL not work. This behavior is looked at and until that is resolved you will have to keep it that way.

@josesimoes josesimoes added Status: FIXED and removed FOR DISCUSSION Open for discussion. Contributes from the community are welcome/expected. up-for-grabs labels Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants