NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
yakubin has left #openocd [Bye]
tsal_ has joined #openocd
tsal has quit [Ping timeout: 244 seconds]
Hawk777 has quit [Quit: Leaving.]
Hawk777 has joined #openocd
Hawk777 has quit [Quit: Leaving.]
tsal_ has quit [Ping timeout: 244 seconds]
tsal has joined #openocd
nerozero has joined #openocd
<antto> gamiee, thanks, this is the other side https://i.imgur.com/o0Det9y.jpg
<gamiee> antto: ohh nice!
nerozero has quit [Ping timeout: 246 seconds]
<gamiee> Hello everyone, happy new year to everyone :)
<gamiee> I have question. I have some help variables which contains bitfields values, like those: https://github.com/openocd-org/openocd/blob/master/tcl/target/gd32vf103.cfg#L58
<gamiee> Although, I want to use those not only in one function, but in multiple ones within one .tcl file. What is best practice in this? I can't find any similar usage in other TCLs. Thanks!
<gamiee> I guess it's possible only by using global keyword
<gamiee> okay, I did it with globals, but I have another, more complex question
<gamiee> I need to upload some byte code into RAM (to perform reset). I saw that Espressif does this, but they use C code in src/target to do it.
<gamiee> I am using for reset only TCL. How I should implement this?
jn_ is now known as jn
<borneoa___> gamiee: personal feeling, I find the keyword 'global' to make the code less readable. I use the double colon $::varname for globals
<borneoa___> gamiee: you can write in memory with write_memory and write a long array of data. Then 'resume address's to run it
zjason` has joined #openocd
zjason has quit [Ping timeout: 265 seconds]