boru has quit [Killed (NickServ (GHOST command used by boru`))]
boru` is now known as boru
tsal has quit [Read error: Connection reset by peer]
tsal has joined #openocd
_whitelogger has joined #openocd
emeb has quit [Quit: Leaving.]
tlwoerner has quit [Ping timeout: 260 seconds]
tlwoerner has joined #openocd
tlwoerner has quit [Client Quit]
tlwoerner has joined #openocd
Guest40 has joined #openocd
<Guest40>
Hi guys, Is there a way to change aarch64 system control registers in OpenOCD? 'mrs', 'msr' have removed long time ago..
nerozero has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Haohmaru has joined #openocd
tarekb has joined #openocd
Guest40 is now known as jjack
<tarekb>
orelem: do you want me to propose another version of #6569
<PaulFertser>
I think it's just unclear when exactly and why that might be needed and why just setting WORKAREASIZE to 0 is not enough.
<tarekb>
when you set WORKAREAD to 0, stm32l4_write_block will just fail
<tarekb>
and there no other function to perform the flash programming
<tarekb>
stm32l4_write_block_without_loader will do the job, if stm32l4_write_block returns ERROR_TARGET_RESOURCE_NOT_AVAILABLE
<PaulFertser>
tarekb: I haven't looked deep into this topic but it feels really counter-intuitive for someone who only dealt with older families of stm32.
<tarekb>
correct, that's why I have proposed to add more intelligence in the cfg file, to manage this intuitively
<PaulFertser>
tarekb: so why can't it use the loader if working area is available and not use it when not, automatically?
<tarekb>
I'm cooking a patch to do this switch in the cfg file, so it checks the security state and set the WORKAREA to zero when it should not be accessed
<tarekb>
managing this at driver level will solve only the programming issue
<tarekb>
so setting workarea size to zero will hint the verify and other functions to not use the target algo version ...
<PaulFertser>
tarekb: so his revert is to remove the custom command from the driver. When is that command more useful compared to just setting WORKAREASIZE to zero?
<tarekb>
we want to to partially revert this commit, so we remove the command stm33l4x flashloader (enable|disable) but we keep stm32l4_write_block_without_loader to perform the programming when workarea is zero
<tarekb>
Ps the function stm32l4_write_block_without_loader was introduced in the same old patch
<PaulFertser>
Makes sense
<tarekb>
I have updated the #6569
<tarekb>
but we are still missing the logic of setting workarea to zero in STM32L5 and STM32U5 cfg files