I am new to STM based MCU and currently have STM32L4Discovery. I am trying to flash an elf to the device using openocd (I am using linux). And failing to do so. I am trying to investigate the issue. According to my understanding the flash address in the openocd is correct and also the FLASH_ACR and RCC_CR are correct. However the flashing is failing saying -
flash write algorithm aborted by target
error executing stm32l4 flash write algorithm
flash write failed = 000000a0
block write failed
error writing to flash at address 0x08000000 at offset 0x00000000
Any suggestion would be helpful.
Thanks in advance,