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

USB HIDName is incorrect #3

Closed
betgear opened this issue Jan 7, 2020 · 3 comments
Closed

USB HIDName is incorrect #3

betgear opened this issue Jan 7, 2020 · 3 comments

Comments

@betgear
Copy link

betgear commented Jan 7, 2020

Hi,

Retrieved HID name is not correct in the PC app.

image

The name appears in the APP as 'r during stacking' which is obviously a partial string from somewhere random in memory

image

Additionally I cannot see to save a config file to the STM32, I tried creating a debug build to get more information for you, but unfortunately the debug build will not fit in the microcontrollers memory.

@vostrenkov
Copy link
Member

Hello,
looks like the application don't write default config at first startup. The reason can be flash memory at that area is not empty during first run. Please try to do full chip erase and try to load code again.

@betgear
Copy link
Author

betgear commented Jan 7, 2020

Hi,

Yes, that makes sense. It works now :)

Why not use a checksum on the config data, if the checksum does not match, write the default configuration data with correct checksum.

@betgear betgear closed this as completed Jan 7, 2020
@vostrenkov vostrenkov reopened this Jan 7, 2020
@vostrenkov
Copy link
Member

vostrenkov commented Jan 7, 2020

I didn't think this could happen :)
I will add some kind of protection to future commits.

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