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

Wrong firmware address while write data to spi flash #7

Open
canximan opened this issue Jun 24, 2016 · 1 comment
Open

Wrong firmware address while write data to spi flash #7

canximan opened this issue Jun 24, 2016 · 1 comment

Comments

@canximan
Copy link

I found this bug, hope this help.
cgiflash.c line 180,
change state->address=def->fw1Pos; to

if (system_upgrade_userbin_check()==1) {
     state->address=def->fw1Pos;
} else {
    state->address=def->fw2Pos;
}

Don't forget include "upgrade.h"

@ThierryC49
Copy link

Many thanks !
I have passed lot of time to find the issue when I upgrade the user2.bin now work fine to found you post

Thierry,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants