-
Notifications
You must be signed in to change notification settings - Fork 27
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
Out of bound error #2
Comments
Thanks @nretro Could you please specify the GCC version you are using. Thanks again, |
Hi Tarek, thanks for your answer. I'm using "gcc (Debian 9.3.0-13) 9.3.0" on debian unstable. Thanks, |
Thanks again Norbert Our next release of CubeIDE planned beginning of July will contain the latest official OpenOCD code plus STMicroelectronics additions (not merged in official openocd yet).
indeed, I have started last year upstreaming ST code so it should be OK, you can check this link Please do not hesitate to share with us, if you detect any issue or if you feel that there is something missing. Thanks, |
Just tried to build on
Then breaks here
Build succeeded only if |
this should be fixed in https://github.com/STMicroelectronics/OpenOCD/tree/openocd-cubeide-r2 |
In src/flash/mflash.h the line
mg_io_uint8 reserved7[186];
should be changed to
mg_io_uint8 reserved7[190];
This is obviously an error, since in mflash.c reserved7 is accessed using
memset(pSegIdDrvInfo->reserved7, 0x00, 190);
Current gcc compiler flags this with an out of bound warning. In combination with the "Werror" flag, the compilation will be aborted.
The text was updated successfully, but these errors were encountered: