riscv-openocd/src/flash/nor
Marc Schink 94ba5219ed flash/nor/stm32l4: Fix stm32l4_probe()
The current implementation fails due to the assert() statements in
get_stm32l4_rev_str() and get_stm32l4_bank_type_str(). Rearrange the
code in order to fix the problem.

Change-Id: If19c648dec8ddd3ef2fb801150114104b34c3bf2
Signed-off-by: Marc Schink <dev@zapb.de>
Fixes: 64c2e03b23 ("flash/nor: improved API of flash_driver.info & fixed buffer overruns")
Reviewed-on: http://openocd.zylin.com/6326
Tested-by: jenkins
Reviewed-by: Jan Matyas <matyas@codasip.com>
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2021-06-27 14:57:16 +01:00
..
Makefile.am tcl/board: add pico-debug support 2021-05-02 22:40:24 +01:00
aduc702x.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
aducm360.c flash: use proper format with uint32_t 2020-09-05 17:12:32 +01:00
ambiqmicro.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
at91sam3.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
at91sam4.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
at91sam4l.c flash: use proper format with uint32_t 2020-09-05 17:12:32 +01:00
at91sam7.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
at91samd.c flash: avoid checking for non NULL pointer to free it 2020-09-05 17:11:34 +01:00
ath79.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
atsame5.c flash/nor/atsame5: add SAME51G18A and SAME51G19A devices 2021-03-24 17:14:56 +00:00
atsamv.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
avrf.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
bluenrg-x.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
bluenrg-x.h bluenrg-x: simplyfied the driver 2020-03-07 15:31:09 +00:00
cc26xx.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
cc26xx.h flash/nor: Add support for TI CC26xx/CC13xx flash 2018-06-15 20:06:25 +01:00
cc3220sf.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
cc3220sf.h flash/nor: Add support for TI CC3220SF internal flash 2018-06-06 15:38:25 +01:00
cfi.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
cfi.h flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
core.c Flash, FRAM and EEPROM driver for STM32 QUAD-/OCTOSPI interface 2020-11-08 22:46:00 +00:00
core.h openocd: fix doxygen parameters of functions 2021-01-13 11:33:53 +00:00
driver.h flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
drivers.c tcl/board: add pico-debug support 2021-05-02 22:40:24 +01:00
dsp5680xx_flash.c openocd: fix incorrect doxygen comments 2021-01-13 11:33:16 +00:00
efm32.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
em357.c flash: avoid checking for non NULL pointer to free it 2020-09-05 17:11:34 +01:00
esirisc_flash.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
faux.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
fespi.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
fm3.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
fm4.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
imp.h Flash, FRAM and EEPROM driver for STM32 QUAD-/OCTOSPI interface 2020-11-08 22:46:00 +00:00
jtagspi.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
kinetis.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
kinetis_ke.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
lpc288x.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
lpc2000.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
lpc2900.c openocd: fix doxygen parameters of functions 2021-01-13 11:33:53 +00:00
lpcspifi.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
max32xxx.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
mdr.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
mrvlqspi.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
msp432.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
msp432.h flash: fix some minor typo 2021-05-22 10:06:32 +01:00
niietcm4.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
non_cfi.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
non_cfi.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
nrf5.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
numicro.c flash/nor/numicro: Use 'bool' data type 2021-04-22 13:06:15 +01:00
ocl.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
ocl.h flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
pic32mx.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
psoc4.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
psoc5lp.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
psoc6.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
renesas_rpchf.c flash: use proper format with uint32_t 2020-09-05 17:12:32 +01:00
rp2040.c tcl/board: add pico-debug support 2021-05-02 22:40:24 +01:00
sfdp.c flash/nor/sfdp|stmqspi: fix build issue with clang on mac OS 2020-12-09 14:29:37 +00:00
sfdp.h Flash, FRAM and EEPROM driver for STM32 QUAD-/OCTOSPI interface 2020-11-08 22:46:00 +00:00
sh_qspi.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
sim3x.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
spi.c nor/spi.c: add N25Q032A flash chip 2020-08-02 10:47:29 +01:00
spi.h Flash, FRAM and EEPROM driver for STM32 QUAD-/OCTOSPI interface 2020-11-08 22:46:00 +00:00
stellaris.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
stm32f1x.c flash/stm32fxx.c: do not read CPUID as this info is stored in cortex_m_common 2021-06-18 23:13:33 +01:00
stm32f2x.c flash/stm32fxx.c: do not read CPUID as this info is stored in cortex_m_common 2021-06-18 23:13:33 +01:00
stm32h7x.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
stm32l4x.c flash/nor/stm32l4: Fix stm32l4_probe() 2021-06-27 14:57:16 +01:00
stm32l4x.h flash/stm32l4x: probe tzen and rdp values 2021-03-24 17:18:29 +00:00
stm32lx.c target/arm: optimize architecture flags 2021-06-18 23:12:54 +01:00
stmqspi.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
stmqspi.h flash/stmqspi: minor fixes on coding style 2020-11-15 21:04:29 +00:00
stmsmi.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
str7x.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
str9x.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
str9xpec.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
swm050.c flash: avoid checking for non NULL pointer to free it 2020-09-05 17:11:34 +01:00
tcl.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
tms470.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
virtual.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
w600.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
xcf.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
xmc1xxx.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00
xmc4xxx.c flash/nor: improved API of flash_driver.info & fixed buffer overruns 2021-06-13 19:58:28 +01:00