Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] STM32L4Q5CG support #1438

Open
ciakval opened this issue Oct 29, 2024 · 0 comments
Open

[feature] STM32L4Q5CG support #1438

ciakval opened this issue Oct 29, 2024 · 0 comments

Comments

@ciakval
Copy link

ciakval commented Oct 29, 2024

I have an STM32L4Q5CG chip that I would like to program with st-flash.

I am using the ST-LINK V2 programmer (part of Nucleo-144 L4R5ZI board), Linux Fedora 40.

The chip seems to be recognized, but it looks like the chip information is wrong regarding SRAM size (320 KiB vs. 640 KiB) and the particular chip_id is missing in flash loader.

Version of stlink: v1.8.0-62-gbfcc1e2

$ ./build/bin/st-info --probe
Found 1 stlink programmers
  version:    V2J45S30
  serial:     066AFF494877514867141831
  flash:      1048576 (pagesize: 4096)
  sram:       655360
  chipid:     0x471
  dev-type:   STM32L4Px_L4Qx
st-flash 1.8.0-62-gbfcc1e2
2024-10-29T15:24:47 INFO common.c: STM32L4Px_L4Qx: 640 KiB SRAM, 1024 KiB flash in at least 4 KiB pages.
file /tmp/firmware.bin md5 checksum: ef78857d68301557d8cef554f15bbc93, stlink checksum: 0x009e333c
2024-10-29T15:24:47 INFO common_flash.c: Attempting to write 102136 (0x18ef8) bytes to stm32 address: 134217728 (0x8000000)
EraseFlash - Page:0x0 Size:0x1000 -> Flash page at 0x8000000 erased (size: 0x1000)
EraseFlash - Page:0x1 Size:0x1000 -> Flash page at 0x8001000 erased (size: 0x1000)
EraseFlash - Page:0x2 Size:0x1000 -> Flash page at 0x8002000 erased (size: 0x1000)
EraseFlash - Page:0x3 Size:0x1000 -> Flash page at 0x8003000 erased (size: 0x1000)
EraseFlash - Page:0x4 Size:0x1000 -> Flash page at 0x8004000 erased (size: 0x1000)
EraseFlash - Page:0x5 Size:0x1000 -> Flash page at 0x8005000 erased (size: 0x1000)
EraseFlash - Page:0x6 Size:0x1000 -> Flash page at 0x8006000 erased (size: 0x1000)
EraseFlash - Page:0x7 Size:0x1000 -> Flash page at 0x8007000 erased (size: 0x1000)
EraseFlash - Page:0x8 Size:0x1000 -> Flash page at 0x8008000 erased (size: 0x1000)
EraseFlash - Page:0x9 Size:0x1000 -> Flash page at 0x8009000 erased (size: 0x1000)
EraseFlash - Page:0xa Size:0x1000 -> Flash page at 0x800a000 erased (size: 0x1000)
EraseFlash - Page:0xb Size:0x1000 -> Flash page at 0x800b000 erased (size: 0x1000)
EraseFlash - Page:0xc Size:0x1000 -> Flash page at 0x800c000 erased (size: 0x1000)
EraseFlash - Page:0xd Size:0x1000 -> Flash page at 0x800d000 erased (size: 0x1000)
EraseFlash - Page:0xe Size:0x1000 -> Flash page at 0x800e000 erased (size: 0x1000)
EraseFlash - Page:0xf Size:0x1000 -> Flash page at 0x800f000 erased (size: 0x1000)
EraseFlash - Page:0x10 Size:0x1000 -> Flash page at 0x8010000 erased (size: 0x1000)
EraseFlash - Page:0x11 Size:0x1000 -> Flash page at 0x8011000 erased (size: 0x1000)
EraseFlash - Page:0x12 Size:0x1000 -> Flash page at 0x8012000 erased (size: 0x1000)
EraseFlash - Page:0x13 Size:0x1000 -> Flash page at 0x8013000 erased (size: 0x1000)
EraseFlash - Page:0x14 Size:0x1000 -> Flash page at 0x8014000 erased (size: 0x1000)
EraseFlash - Page:0x15 Size:0x1000 -> Flash page at 0x8015000 erased (size: 0x1000)
EraseFlash - Page:0x16 Size:0x1000 -> Flash page at 0x8016000 erased (size: 0x1000)
EraseFlash - Page:0x17 Size:0x1000 -> Flash page at 0x8017000 erased (size: 0x1000)
EraseFlash - Page:0x18 Size:0x1000 -> Flash page at 0x8018000 erased (size: 0x1000)

2024-10-29T15:24:48 INFO flash_loader.c: Starting Flash write for F2/F4/F7/L4
2024-10-29T15:24:48 ERROR flash_loader.c: unknown coreid, not sure what flash loader to use, aborting! coreid: 2ba01477, chipid: 471
2024-10-29T15:24:48 WARN flash_loader.c: Failed to write flash loader to sram!
2024-10-29T15:24:48 ERROR flash_loader.c: stlink_flash_loader_init() == -1
stlink_fwrite_flash() == -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant