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

FirmwareUpdater - ERROR message on successful FW flashing. #939

Closed
davidetome opened this issue Feb 13, 2024 · 7 comments · Fixed by #944
Closed

FirmwareUpdater - ERROR message on successful FW flashing. #939

davidetome opened this issue Feb 13, 2024 · 7 comments · Fixed by #944
Assignees

Comments

@davidetome
Copy link
Contributor

davidetome commented Feb 13, 2024

Bug description

When you do Upload Application, the message in the terminal at the end of the programming returns a failed operation even if it went well.

EthMaintainer::cmdProgram() is about to program the APP partition of 1 boards: 10.0.1.1 (candoit)
ERROR: EthMaintainer::program() could not program board none @ 0.0.0.0: 10.0.1.1: APP NOK

Steps to reproduce

  • Open Firmware Updater
  • Do a discover
  • Select an ETH board, an mc4plus (in my case)
  • Put the board un Maintenance
  • Do Upload Application
  • See the FAIL message in the terminal

Expected behavior

The message should report a successful operation (APP OK)

Example repository

No response

Additional context

No response

@davidetome davidetome self-assigned this Feb 13, 2024
@davidetome davidetome changed the title FirmwareUpdater - Fail message on successful FW flashing. FirmwareUpdater - ERROR message on successful FW flashing. Feb 13, 2024
@davidetome
Copy link
Contributor Author

cc @valegagge

@davidetome
Copy link
Contributor Author

davidetome commented Feb 14, 2024

I found the reason of the failure, in the command_program method because two indexes differ by one

I also noticed that one of them is increased by one just after it is initialized at zero

Commenting out it, the program operation works properly :

image

I have to double-check if it is ok to comment out this line 👍🏼

There's also an issue with variables that are not filled in the message

cc @valegagge

@davidetome
Copy link
Contributor Author

I tested the mod w/ 2 mc4plus and one ems and it works properly 👍🏼

2 mc4plus programmed in parallel successfully

1

1 ems programmed successfully

2

Now I'm going to fix the message :

OK: EthMaintainer::program() has succesfully programmed board none @ 0.0.0.0.

cc @valegagge

@davidetome
Copy link
Contributor Author

Fixed message

With this commit in my fork I fixed also the message in the terminal :

2 mc4plus programmed in parallel successfully

1

1 ems programmed successfully

2

@valegagge I wait for your green light 🚦 to rebase and open the PR 👍🏼

@davidetome
Copy link
Contributor Author

PR opened :

cc @valegagge

@pattacini pattacini reopened this Feb 27, 2024
@pattacini
Copy link
Member

Hi @davidetome

The issue will be closed upon merging the PR.

@pattacini
Copy link
Member

PR merged ✅

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.

2 participants