NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
Hawk777 has quit [Quit: Leaving.]
Hawk777 has joined #openocd
HumanG33k has quit [Ping timeout: 256 seconds]
HumanG33k has joined #openocd
nerozero has joined #openocd
gzlb has joined #openocd
MGF_Fabio has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Haohmaru has joined #openocd
synack has left #openocd [#openocd]
<Haohmaru> mww is for 32bit, mwb for 8bit, what's for 16bit?
<urja> mwh
<Haohmaru> thanks
<Haohmaru> hm, is that thing where the address is accessed from the debugger with an extra offset of 0x100 only for the DSU or for all peripherals?!
<Haohmaru> User : 151 199 options.c:52 configuration_output_handler(): 0x41004012: 0b31
<Haohmaru> is this hex?!
<Haohmaru> 0b31
<PaulFertser> Haohmaru: no offset should be applied anywhere
<Haohmaru> okay, so if 0b31 is hex, i guess it worked, but something else isn't right
<Haohmaru> i've set bootloader protection, and now i can't flash a new bootloader :/
<Haohmaru> does the "program <elf>" command do any resets?
<PaulFertser> Haohmaru: yes, "reset init" before starting
<Haohmaru> well, crap then
<Haohmaru> any way to not do that?
<PaulFertser> Haohmaru: manual "flash write_image" but why? reset init is meant to be bringing the target into a flashable state.
<Haohmaru> because bootloader protection
<Haohmaru> a bootloader region can be configured from the "fuses" anything from 8KB to 120KB from the beginning of flash
<Haohmaru> then it's protected.. there's a "temporary" "BootProtDisable" NVM command, which unprotects it temporarily.. that's what i was doing with mwh commands
<Haohmaru> but if "program" resets the chip - it reloads the boot protection settings from the fuses
<Haohmaru> so i should use the flash syntax? i had this earlier
<Haohmaru> -c 'flash write_image erase \"${ELF}\"'
<Haohmaru> this thing ^
<PaulFertser> Haohmaru: yes
<PaulFertser> SAM: NVM programming error
<Haohmaru> yes.. it still doesn't work... for some reason
<Haohmaru> User : 241 372 options.c:52 configuration_output_handler(): 0x41004012: 0b31
<Haohmaru> this should mean i successifully set bootprot disable
<Haohmaru> ..if it's 0x31 hex
slobodan has joined #openocd
<Haohmaru> bluh.. can't figure out what's wrong.. it ends up with PROGE NVM error when openocd starts doing the flashing
<Haohmaru> datasheet says if you attempt to fiddle with the "locked" region, you'll get both PROGE and LOCKE, not PROGE alone
<Haohmaru> maybe a suspicious thing is that one register that is 16bit is written by openocd as a 32bit register
<Haohmaru> but this seems to have worked before so.. no clue
<Haohmaru> i think i removed the boot protection but this is not good..
<Haohmaru> there should be a better way (tm)
slobodan_ has joined #openocd
slobodan_ has quit [Read error: Connection reset by peer]
slobodan_ has joined #openocd
slobodan has quit [Ping timeout: 256 seconds]
MGF_Fabio has quit [Ping timeout: 255 seconds]
mark_feathers has joined #openocd
Haohmaru has quit [Quit: saionara]
electricworry has joined #openocd
electricworry_ has joined #openocd
electricworry has quit [Ping timeout: 260 seconds]
electricworry has joined #openocd
electricworry_ has quit [Ping timeout: 268 seconds]
electricworry_ has joined #openocd
electricworry__ has joined #openocd
electricworry has quit [Ping timeout: 240 seconds]
electricworry__ has quit [Read error: Connection reset by peer]
electricworry__ has joined #openocd
electricworry_ has quit [Ping timeout: 264 seconds]
electricworry_ has joined #openocd
electricworry__ has quit [Ping timeout: 240 seconds]
electricworry_ has quit [Read error: Connection reset by peer]
slobodan_ has quit [Ping timeout: 264 seconds]
slobodan_ has joined #openocd
electricworry has joined #openocd
nerozero has quit [Ping timeout: 246 seconds]
zjason has quit [Read error: Connection reset by peer]
zjason has joined #openocd
diddly has quit [Quit: leaving]
diddly has joined #openocd
mark_feathers has quit [Remote host closed the connection]
electricworry has quit [Ping timeout: 252 seconds]
slobodan_ has quit [Ping timeout: 268 seconds]
HelloShitty has quit [Read error: Connection reset by peer]
HelloShitty has joined #openocd