Skip to content

Commit

Permalink
fix for unknown device in stm32l4x flash driver
Browse files Browse the repository at this point in the history
Change-Id: I19547e3275c9e694a81bbd517dcfab552ecff702
Reviewed-on: https://gerrit.st.com/c/stm32ide/official/openocd/+/208362
Tested-by: Tarek BOCHKATI <[email protected]>
Reviewed-by: Tarek BOCHKATI <[email protected]>
  • Loading branch information
LLESTM authored and tarek-bochkati committed Jul 28, 2021
1 parent bcffc95 commit ff701ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flash/nor/stm32l4x.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ struct stm32l4_wrp {
};

/* human readable list of families this drivers supports (sorted alphabetically) */
static const char *device_families = "STM32G0/G4/L4/L4+/L5/WB/WL";
static const char *device_families = "STM32G0/G4/L4/L4+/L5/U5/WB/WL";

static const struct stm32l4_rev stm32_415_revs[] = {
{ 0x1000, "1" }, { 0x1001, "2" }, { 0x1003, "3" }, { 0x1007, "4" }
Expand Down Expand Up @@ -1608,6 +1608,7 @@ static int stm32l4_probe(struct flash_bank *bank)
int retval;

stm32l4_info->probed = false;
stm32l4_info->part_info = NULL;

/* read stm32 device id register, if not specified by the user */
if (stm32l4_info->idcode == 0) {
Expand Down

0 comments on commit ff701ce

Please sign in to comment.