-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Error building from develop branch, cpuid problems #937
Comments
On macOS, the code builds well. In
It seems that cpuid.part and cpuid.revision is indeed initialized here. Maybe a compiler misbehave? |
In this case cpuid.* stay uninitialized. |
On Ubuntu successful compiled too. Variable cpuid may use uninited in the case of error read register.
|
I think it can be fixed by adding a return value check on stlink_cpu_id and initialize those values to zero. I will give it a try. |
I have
|
@Vascom May you test my branch /~https://github.com/chenguokai/stlink/tree/issue937 ? |
Yes, it works. |
I try build commit c7874f8
And it failed with this errors:
How it can be fixed?
The text was updated successfully, but these errors were encountered: