NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
tsal has quit [Ping timeout: 245 seconds]
tsal has joined #openocd
boru` has joined #openocd
boru has quit [Killed (NickServ (GHOST command used by boru`))]
boru` is now known as boru
devanagram has quit [Ping timeout: 245 seconds]
nohit has quit [Ping timeout: 245 seconds]
devanagram has joined #openocd
nohit has joined #openocd
key2 has quit [Read error: Connection reset by peer]
nohit has quit [Read error: Connection reset by peer]
key2 has joined #openocd
nohit has joined #openocd
thinkfat has quit [Ping timeout: 260 seconds]
thinkfat_ has joined #openocd
akaWolf has quit [Ping timeout: 252 seconds]
akaWolf has joined #openocd
[itchyjunk] has joined #openocd
Hawk777 has joined #openocd
[itchyjunk] has quit [Remote host closed the connection]
emeb has quit [Quit: Leaving.]
danergo has joined #openocd
<danergo> perfect, thank you
nerozero has joined #openocd
<danergo> I'd need a little bit of advice for compilation:
<danergo> I got two warnings (which then considered as errors):
<danergo> ./src/helper/log.h:133:2: error: ‘status’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
<danergo> it's coming from
<danergo> src/flash/nor/jtagspi.c: In function ‘jtagspi_write_enable’:
<danergo> okay, status is indeed not initialized, but it's used for storage:
<danergo> uint32_t status; ... jtagspi_read_status(bank, &status);
<danergo> and I know how can I disable this error, but is it safe to disable this?
<danergo> I have inited status for 0
<danergo> to*
<PaulFertser> danergo: --disable-werror configure option
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
devanagram has quit [*.net *.split]
tsal has quit [*.net *.split]
boru has quit [*.net *.split]
zjason has quit [*.net *.split]
c4017w_ has quit [*.net *.split]
renrelkha has quit [*.net *.split]
HelloShitty has quit [*.net *.split]
Haohmaru has joined #openocd
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
tsal has joined #openocd
boru has joined #openocd
c4017w_ has joined #openocd
renrelkha has joined #openocd
devanagram has joined #openocd
zjason has joined #openocd
HelloShitty has joined #openocd
joconor has joined #openocd
<danergo> PaulFertser: is that safe?
<danergo> now it compiled successfully with my mods, although it ran onto a link error
<danergo> wow
<danergo> this link error brings me search results from earlier than 2010 :O
<PaulFertser> danergo: yes, safe
<PaulFertser> danergo: what link error?
<danergo> can't paste wtf :D
<danergo> jim-aio.c:2094
<danergo> undef reference to openpty
<danergo> it's said: That's a linking error; you're missing the util library.
<danergo> dated for 2010.12.20 :)
Jookia has left #openocd [#openocd]
Hawk777 has quit [Quit: Leaving.]
<danergo> I found a workaround here:
<danergo> but they had an old gcc version of 7 something
<danergo> and I have gcc (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110
<danergo> and I have libutil available in
<danergo> "/usr/lib/arm-linux-gnueabihf/libutil.so"
<PaulFertser> danergo: openocd should be easily buildable without any tricks or workarounds. Use some pastebin to show full build log and config.log.
<danergo> yes, that's why I mentioned, so I might be "help" for you somehow after those great efforts you've done for me earlier :)
<danergo> Here is the link error:
<olerem> danergo: what is your gcc version?
<danergo> I have gcc (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110
<olerem> PaulFertser: what gcc do we use for compile tests?
<PaulFertser> danergo: I'd just run the last command (that ends with -ldl) with -lutil appended and get on with your primary task.
<danergo> yes, I'll do that
<PaulFertser> olerem: basically what current Debian stable has.
<PaulFertser> olerem: do you really need me to check? This -lutil Jim error feels unrelated to the toolchain version.
<olerem> PaulFertser: ah, forget it .)
<danergo> LIBS='-lutil ' ./configure ... fixes this
<PaulFertser> Or that. Shouldn't be needed but probably some odd incompatibility or a bug in Jim.
<danergo> yes, although now with my own version things are much worse than with official:
<danergo> what I did is basically cloned the repo, and applied those unmerged diffs (thus I went back to 0.10)
<danergo> but during run, I got bunch of wrong args in cfg files
<danergo> mainly in icepick.cfg
<danergo> actually it all roots back to icepick ln57
<PaulFertser> danergo: you should be using config files from that old version too
<danergo> sure I'm doing that
<PaulFertser> danergo: there were plenty of changes since then.
akaWolf has quit [Ping timeout: 265 seconds]
<danergo> I have compiled and did "make install" to /opt
<danergo> original version is in /usr
<PaulFertser> danergo: hm, looks like you're using newer jimtcl though.
<danergo> so I have two different openocd currently with their own structure
<PaulFertser> jimtcl expr changes are recent.
<PaulFertser> Probably after going back you didn't do git submodule update.
<danergo> that might be, as the unmerged commit put the repo back to 0.10, but i might updated the submodules earlier
<danergo> true
<danergo> I haven'tű
<danergo> I haven'tű
<danergo> so first going back then do submod update is the right path?
<PaulFertser> Yes
akaWolf has joined #openocd
akaWolf has quit [Ping timeout: 265 seconds]
akaWolf has joined #openocd
[itchyjunk] has joined #openocd
<borneoa_> danergo: the missing libutil has been already fixed in https://review.openocd.org/5922
<borneoa_> danergo: either you are on an old ooenocd code or some mess in the configuration
danergo has quit [Quit: Client closed]
danergo has joined #openocd
<danergo> borneoa_: I checked out the branch which fixes TI's issues, and that might revert back to an earlier date then this last commit you've sent
<danergo> thank you
<danergo> Yes, confirmed, it was in 5658, and this libutil fix is in 5922
<danergo> now I've completely started from scratch, cloned the code, checked out the branch with TI's stuff, and cherrypicked the compile-fix on top of that
<danergo> make is running now, fingers crossed :)
Haohmaru has quit []
Hawk777 has joined #openocd
<danergo> huh. I'm almost there
<danergo> I think flashing now works with reset, but I got 3 errors after reset:
<danergo> Error: Debug regions are unpowered, an unexpected reset might have happened
<danergo> Error: JTAG-DP STICKY ERROR
<danergo> Error: Could not find MEM-AP to control the core
<danergo> but otherwise, write is successful, verify also
<danergo> just I'm worried about those errors
<PaulFertser> danergo: I wouldn't worry if verify is successful.
nerozero has quit [Ping timeout: 245 seconds]
rudar has joined #openocd
Hawk777 has quit [Quit: Leaving.]
<danergo> thanks
<danergo> I prefer not having errors, so I think I'll go easy with 0.11, and manual reset, before/after openocd run
rudar has quit [Quit: Leaving]
[_] has joined #openocd
[itchyjunk] has quit [Ping timeout: 260 seconds]
[_] is now known as [itchyjunk]
danergo has quit [Quit: Client closed]