Skip to content

[Exporters] Uvision5 project configuration missing Program Algorithm List #3049

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
ohagendorf opened this issue Oct 17, 2016 · 7 comments
Closed

Comments

@ohagendorf
Copy link
Contributor

Description

When exporting a project, e.g. with

mbed export -m NUCLEO_F207ZG -i uvision5

and opening it in uVision5 the project can be compiled and flashed without problems. Nevertheless the project configuration is incomplete, as described under Steps to reproduce.

But when you want to change a debuger option, e.g switching on Reset and Run, the project can't be used any longer to flash the mcu. When you try it, an error message appeares which doesn't help to solve the problem. The reason is an empty flash algorithm config. Adding an algorithm is not possible. The offered list doesn't contain the correct entry but several other. Please see the screendump at the end.

The exact behaviour depends on mcu and uvison5 version:

  • NUCLEO_F207 and uvision 5.20: Project is completly bricked!! No possibility found to repair it.
  • NUCLEO_F767 and uvision 5.20: Project can be repaired, please see below.
  • both targets and uvision5 5.21a: Project can be repaired, please see below.

Repairing a project does mean:

  • open Options for Targets ...
  • change the device to another one
  • change the device back to original one
  • goto Debug config
  • choose ST-Link Debugger
  • close with OK
  • save all (without saving the next steps will not work!)
  • open again Options for Targets ...
  • goto Debug config
  • open Settings dialog
  • goto Flash Download
  • add the correct flash algorithm from a list of several variants (only one is correct!)
  • after all these steps with NUCLEO_F207 and uvision 5.20 it is still not possible to add a flash algorithm - the list doesn't contain the correct line

These steps are not really obvious so changing a debugger setting means bricking the project file!

A similar behavior was already repaired before the above PR. Based on the discussion there maybe it is a problem of STM targets in uVision5. But we didn't examined all targets. Creating the .uvoptx solved the problem at that time. Maybe the current format of this files is the problem.


Bug

Target
NUCLEO_xxx

Toolchain:
uvision5

Toolchain version:
5.20 and 5.21a

mbed-cli version:
0.9.9

meed-os sha:
mbed-os 5.2 rc3
873686c Merge pull request #3033 from ARMmbed/release-candidate
and current master
7bcc63b Merge pull request #2977 from andreaslarssonublox/ublox_drivers

Expected behavior
Programming Algorithm should contain one line with the flash algorithm

Actual behavior
Programming Algorithm is empty

Steps to reproduce

  • open Options for Targets ...
  • goto Debug config
  • open Settings dialog
  • goto Flash Download

It looks like this:
dialog

possible algorithms before repairing as described above:
dialog2

It should look like this:
dialog3

and now Add offers these algorithms:
dialog4

@ohagendorf
Copy link
Contributor Author

@sarahmarshy, please have a look at the above problem description.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 18, 2016

Thank you very much for the detailed description, I have noticed some of the problem with flash algo. We will have a look at this to resolve.

@theotherjimmy theotherjimmy changed the title [Exporters] Uvision5 [Exporters] Uvision5 project configuration incomplete for Nucleo boards Oct 20, 2016
@ohagendorf
Copy link
Contributor Author

@theotherjimmy, it is not only a problem of Nucleo boards but also of Discovery boards. Maybe more, I tested exporting and opening in uVision with some other tagrgets, I've never seen an entry in the Programming Algorithm list.

@theotherjimmy
Copy link
Contributor

I don't think we populate it.

@theotherjimmy theotherjimmy changed the title [Exporters] Uvision5 project configuration incomplete for Nucleo boards [Exporters] Uvision5 project configuration missing Program Algorithm List Oct 20, 2016
@theotherjimmy
Copy link
Contributor

So I updated the title to better match the problem.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 21, 2016

@theotherjimmy @sarahmarshy How to get those flash algos in the debugger settings?

@sg-
Copy link
Contributor

sg- commented Jan 19, 2017

Has this been resolved?

@ghost ghost closed this as completed Oct 27, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants