-
Notifications
You must be signed in to change notification settings - Fork 71
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
stm32L476 and chip_id #16
Comments
L4 are not supported yet, they probably have a different flash memory size register which I need to specify. I'll have a look. |
Actually there was a typo in devices.xml, it should work now. |
The ChipID should be found now. I also updated the registers for the flash size and controller. |
Hi, Thanks, I have been using st-link with the simple change for the device id. I will grab the latest version in a few days. Thanks for the fix. -pb On 11/10/15 19:10, Fabien Poussin wrote:
|
Did you test the fix? |
Hi, Seems to work fine. I can erase and program flash. I can connect via gdb. $ st-util 2015-11-17T15:15:54 INFO src/stlink-common.c: Loading device parameters.... st-flash write ./build/ch.bin 0x8000000 ./st-info --flash ./st-info --sram ./st-info --descr ./st-info --pagesize ./st-info --chipid I have no test plan to follow but all seems fine. -pb On 11/17/15 10:33, Fabien Poussin wrote:
|
You have to test with qstlink2, not st-link which is a totally different program. |
Hi Fabien, Oops.. My bad. qstlink2: Version 1.2.1 "connect command; 146886 - Info: "Searching Device..." MCU Type: STM32L4xx Flash base: 0x8000000 I can receive a file and then perform a verify that passes. I'm having a problem programming (sending) the device. 14914 - Info: CM3/4 Searching at E0042000 and then the led on the board is flashing... "Writing" on the "Transfer Progress" is filled in; Says "Transfered 0/4944KB" I have waited for several minutes. The file is chibios: ls -al 29056 Nov 18 20:34 ch.bin As a test I will use st-flash... 2015-11-18T20:39:37 INFO src/stlink-common.c: Loading device parameters.... ---- reset--- st-flash write ./build/ch.bin 0x8000000 --- and the green led blinks ---- On 11/17/15 15:29, Fabien Poussin wrote:
|
Seems like I am not using the right loader. I'll fix that. |
It should work now :) |
Hi, Um.. no. Still has the same problem. ./qstlink2 The code is spinning in this log (from this command ./qstlink2 -v) 68947 - Debug: Received: 80:00 This is another minor problem. ./qstlink2 --help "\n\nThis application can be used through the GUI or via the command line. (CLI) -pb On 11/19/15 06:19, Fabien Poussin wrote:
|
Seems like I'll need to make a new loader. I don't have an L4 board yet so it will have to wait. |
Hi @fpoussin, So I found stlink-org/stlink#352 which shows that I have to upgrade from windows before trying anything else. I tried my self compiled download of this repository and connected to an all brand new STM32L476 Discovery board under Ubuntu 14.04 LTS. Apparently, the board's core is not reckognised by QStlink2, as shown below:
Actually, I just wanted to upgrade the boot loader which is a V9.0 as described on ST.com. Do you have any idea about this problem? |
9690 - Info: CoreID: 000 There is something going on here... |
So, i just edited my post above and i am now rebooting windows... I'll keep you informed |
So, after upgrade of the boot loader, everything works on Windows 10: I could get all the idents and so on, and also download a copy of the demo binary stored in the board. However, half an hour later, it doesn't work anymore while still running Windows... I think I did not applied the workarounds correctly: they seem to be excluding one-another. So basically, I think it's not a QStLink2 problem. |
Ok let me know if you can get it woking. |
I tried the 'Latest commit Oct 12, 2016 version on a Nucleo L476 board. All operational but the device does not program. Get |
I think there is a bug in devices.xml file for the STM32L476 device
65027 - Info: "ST Link V2 / Nucleo found!"
65027 - Info: "Fetching version..."
65027 - Info: "Changing mode to SWD..."
65127 - Info: "Fetching mode..."
65128 - Info: "Mode: Debug"
65128 - Info: "Fetching status..."
65128 - Info: "Status: Core Halted"
65128 - Info: "Fetching MCU Info..."
65128 - Info: CoreID: "2ba01477"
65129 - Info: CM3/4 Searching at E0042000
65129 - Info: ChipID: 0x415
65129 - Error: Did not find chipID!
65129 - Info: "Device not found in database!"
65129 - Error: Device not found in database!
65129 - Info: "Disconnecting..."
65130 - Info: "Disconnected."
There might be something else wrong also... I get this:
Flash size: 25621KB. Should be 1MB
ps.
I just got this board and I have no experience with STM ;)
The text was updated successfully, but these errors were encountered: