<PaulFertser>
Guest11: "reset init" is only meant for flashing. "reset halt" resets and then halts at the very first instruction if possible.
<PaulFertser>
Guest11: why do you have custom reset-init handler there in your config, why custom config and not upstream?
<PaulFertser>
Guest11: my first suggestion: use just OpenOCD with upstream config. Try connecting and halting the target. Show OpenOCD log.
<Guest11>
>why do you have custom reset-init
<Guest11>
i am novice, trying to follow the guide and example project
<Guest11>
thanks, i will try to use OpenOCD with upstream config
<PaulFertser>
Guest11: you shouldn't use reset-init normally unless you know exactly why you need it.
<PaulFertser>
Guest11: also do you have several cmsis-dap adapters connected at the same time? If not, just source the adapter config and then target config and that's it.
erhankur has quit [Remote host closed the connection]
<PaulFertser>
Guest11: please always use some pastebin, never paste more than 2-3 lines to a pbulic channel.
<PaulFertser>
I think the target's SRST is pulled down externally, do you think there's a chance of that?
<PaulFertser>
It really looks like SWD communication itself is OK but the target can't do anything because it's kept in reset.
<PaulFertser>
Guest11: what board is that, is that something you made?
Guest11 has quit [Quit: Client closed]
tlwoerner has quit [Remote host closed the connection]
tlwoerner has joined #openocd
tchebb has quit [Ping timeout: 272 seconds]
gzlb has quit [Quit: WeeChat 4.2.2]
tlwoerner has quit [Ping timeout: 268 seconds]
tlwoerner has joined #openocd
zjason` is now known as zjason
Guest11 has joined #openocd
<Guest11>
i have checked the connection with multimeter, connection exists between reset pin on mc and reset pin on orbtrace device, and ground is not connected to reset pin. The devboard is powered from orbtrace only(by VTRef only) through 20pin cable. I have a linker.ld with memory layout for my MC stm32h743vit6 and compiled .elf for that. I have left only
<PaulFertser>
Guest11: ok, that's not bad. So apparently "reset halt" doesn't work but if you just let the target run and halt it then you can halt and inspect and everything.
<PaulFertser>
In this state you can attach GDB I think.
<PaulFertser>
"program" assumes "reset halt" working so instead you can use "halt; flash write_image /path/to/elf; verify_image /path/to/elf"
<PaulFertser>
All interactively from a Telnet session so you do not need to restart.
<PaulFertser>
Guest11: using 0.11.0 isn't reasonable these days, how come you have a version that old?
<Guest11>
its from ubuntu package
<PaulFertser>
Guest11: on rather old ubuntu release?
<Guest11>
i will update manually, thanks for pointing it out, didnt paid attention when it was released
<Guest11>
22.04
<PaulFertser>
OK, that's quite old. Not sure if anything was changed wrt stm32h7 since then but probably yes.
<PaulFertser>
In any case it looks like you can debug like that already.
<PaulFertser>
Guest11: btw, if you're updating I suggest you self-compile current HEAD.
<PaulFertser>
If not, you can probably use this 0.11.0 with a workaround.
<Guest11>
thank you, very much, i will try to update to HEAD, and check how my board will work
<PaulFertser>
Guest11: don't forget to not mix config files from different versions.
<Guest11>
checked /usr/share/openocd after removing the package, its not there
<PaulFertser>
Good
<PaulFertser>
For regular CMSIS-DAP you only need hidapi dev files.
<PaulFertser>
l see back then "reset halt" didn't work for anybody with H7, but no idea if it works with the current code.
<Fleck>
can you flash MC9S12XF384 with openocd? Could not find info
avis has quit [Remote host closed the connection]
<PaulFertser>
Fleck: hey. If flash driver isn't written then probably no. Some MCUs have bootloaders you can talk to over UART or USB for flashing but not with OpenOCD.
<Fleck>
thanks, I am clueless about bootloaders etc... don't know
<PaulFertser>
Fleck: I do not think I saw this 16-bit architecture mentioned before.
<PaulFertser>
Fleck: but you can read the MCU datasheet.
<Fleck>
yeah, I can, but don't have spare time, have other things to do :D thank you, as always, super helpful PaulFertser!
<PaulFertser>
Fleck: welcome, sorry about bad news but at least you do not have to waste more time on this idea
Guest11 has quit [Quit: Client closed]
nerozero has quit [Ping timeout: 268 seconds]
slobodan has joined #openocd
slobodan_ has joined #openocd
slobodan has quit [Ping timeout: 268 seconds]
slobodan_ has quit [Read error: Connection reset by peer]
slobodan_ has joined #openocd
slobodan_ has quit [Ping timeout: 240 seconds]
joconor has quit [Ping timeout: 268 seconds]
joconor has joined #openocd
electricworry has quit [Ping timeout: 246 seconds]
avis has joined #openocd
avis has quit [Client Quit]
avis has joined #openocd
<avis>
Having trouble writing to micron m25 flash after having enabled an spi port and tried to communicate it through protocols (sent WREN, FAST_READ)