zephyrproject-rtos / openocd

OpenOCD with Zephyr patches for building Zephyr SDK
Other
28 stars 45 forks source link

stm32h723Xg SoC Support #37

Closed KozhinovAlexander closed 3 years ago

KozhinovAlexander commented 3 years ago

Dear all. I know, that this is not a primer OpenOCD dev repo. But I can't manage commiting my changes to original repor. Thereofre I am putting it here. This changes working for me with my nucle_h723zg board an allows me running compiled Zephyr RTOS Hello World sample.

How to compile:

./bootstrap
./configure --enable-shared --disable-internal-jimtcl
make
sudo make install

additionaly you may need to remove compiled files:

make clean

@galak Maybe my changes could help you adding h723 support to original OpenOCD repo. I give you also my permisssion for use this code usage in original OpenOCD repo under your name.

P.S.: I am not familiar with OpenOCD development procedure and wondering why this PR changes so much files. Originally I've made changes only to src/flash/nor/stm32h7x.c file upon the current master branch!

galak commented 3 years ago

can you make your changes against the zephyr-20200722 branch

KozhinovAlexander commented 3 years ago

can you make your changes against the zephyr-20200722 branch

@galak Done

galak commented 3 years ago

@erwango do you mind take a look at this.

galak commented 3 years ago

This SoC has been provided official support on openocd upstream (http://openocd.zylin.com/#/c/5792/: v0.10.0-1410-g35e580373). So I'd prefer we use official change

Thanks for pointing that out. I agree, we should pull this in from upstream.

KozhinovAlexander commented 3 years ago

@galak Do we need more activity here? Otherwise this PR can be closed.

KozhinovAlexander commented 3 years ago

Solved within OpenOCD v11