klonyyy / MCUViewer

Real-time embedded variable & trace viewer
GNU General Public License v3.0
824 stars 82 forks source link

Can't flash board when acquisition is running #60

Closed dzid26 closed 4 months ago

dzid26 commented 6 months ago

It's an obvious limitation.

One solution is to use https://www.st.com/en/development-tools/st-link-server.html. But I never seen it work. It requires both apps to support it. It is not a common setup people have.

But there might be a simple workaround which should work for everyone:

  1. when elf is deleted or change is detected, stop the acquisition and allow the board to be flashed by another program
  2. refresh the variable addresses automatically
  3. restart acquisition after e.g 5s.

Each step shall be controlled in Options. The feature should be off by default.

Each step is useful IMO, and can be implemented one after another.

klonyyy commented 6 months ago

This is something I also thought about - I've already implement the detection of *.elf file change. Now I'm going to add the remaining options that you suggested.