Closed MJ666 closed 7 years ago
the procedure to generate the win64/win32 binaries runs on linux, with a docker image.
if you recreate the build environment on windows, with msys2 and mingw-w64, I guess you can also build openocd, then experiment with any changes you need.
but finally the changes should be passed to the OpenOCD project, the GNU ARM Eclipse OpenOCD fork just repacks the programs in a more convenient binary package.
I got this to work with using msys2 with the patches above. Unfortunately the resulting OpenOCD looks to have a complete different structure and is not very portable. I will try to get the updates to the OpenOCD project.
a complete different structure and is not very portable
well, I never tried a build on windows, but if you follow the same steps as in the current build script, it should produce the same result.
I will try to get the updates to the OpenOCD project
yes, that's better, but it might take a while.
I used the procedure described here for building: http://www.playembedded.org/blog/en/2015/10/11/building-openocd-under-windows-using-msys2/
how about this:
I have already seen this but its only for building on Mac or Linux. Would be an overkill to install an Linux only for this. At the moment ist working for me. I send the OpenOCD guys an e-mail with the updates.
Would be an overkill ...
yes, but based on the details in my script, you can write your own simple script, specific for your environment.
From STM32F72xxx reference manual (section 35.2), flash size register might be
flash_size_reg = 0x1FF07A22;
Could debug with my custom build version. Likely will wait for an official support. There is an pending PR already fro OpenOCD. Many thanks anyhow.
Working with an STM Nucleo STM32F722 board for debugging with Eclipse and Windows. This board is just available since a few days. I get the following output:
I think I know what needs to be added to src/flash/nor/ stm32f2x.c file. Setting up an complete build environment looks to be a bit complicated. Im working on windows. Is there are someone who has the environment to make an windows 64 bit test build for me with the required updates to the file?
https://github.com/gnuarmeclipse/openocd/blob/gnuarmeclipse-dev/src/flash/nor/stm32f2x.c#L66
https://github.com/gnuarmeclipse/openocd/blob/gnuarmeclipse-dev/src/flash/nor/stm32f2x.c#L895
https://github.com/gnuarmeclipse/openocd/blob/gnuarmeclipse-dev/src/flash/nor/stm32f2x.c#L1137