Hi!
I try to migrate my device from STM32F103RB to STM32L152RB and have faced the following problem. After succesfull compiling Keil uVision (4.13a) returns error then I try to download code in flash memory:
Build target 'STM32L152 Flash' assembling startup_stm32l1xx_md.s... compiling system_stm32l1xx.c... compiling Blinky.c... compiling IRQ.c... compiling GLCD_SPI_STM32L.c... compiling ARM_Ani_16bpp.c... linking... Program Size: Code=4240 RO-data=108292 RW-data=5428 ZI-data=516 ".\Flash\Blinky.axf" - 0 Error(s), 0 Warning(s). Load "C:\\Keil\\ARM\\Boards\\ST\\STM32L152-EVAL\\LCD_Blinky\\Flash\\Blinky.AXF" Set JLink Project File to "C:\Keil\ARM\Boards\ST\STM32L152-EVAL\LCD_Blinky\JLinkSettings.ini" JLink info: ------------ DLL: V4.20c, compiled Sep 24 2010 19:46:42 Firmware: J-Link ARM-Pro V1.x compiled Sep 24 2010 17:25:38 Hardware: V1.10 S/N : 171100029 Feature(s) : RDI, FlashBP, FlashDL, JFlash, GDB * JLink Info: Found SWD-DP with ID 0x2BA01477 * JLink Info: FPUnit: 15 code (BP) slots and 15 literal slots **JLink Warning: CPU core not found. No debug information for index 0x0100 available on this CPU.
What I do wrong?
Regards, Ilya.
Another interest fact that the same STM32L fully workable with STlink! I can program and debug. Why I can not do it with J-Link Pro?
Must be something related to the J-Link, then!
eg:
The J-Link itself;
Drivers;
Configuration;
A combination of the above.
As the STM32L is a new part, are you sure that everything is fully up-to-date for your J-Link to support it? (there are various updates on the ST site)
Yes, I'm sure! I have 2 J-link (Pro and Ultra). J-Link PRO firmware was updated to the last version. Trying to update J-link Ultra firmware (from Keil 4.13a) leads to Keil hangs off. And firmware download isn't succesfully complete. With Keil 4.12 both debuggers works correctly (but STM32L not supported in 4.12 version). J-Link PRO work correctly in v.4.13a with STM32F... but not with STM32L. And another problem that this boring window pops three times at every operation...
Now I try to use ULINK-ME... and the same problem - programming failed! So the only workable debugger by SWD for STM32L is STlink ???
Hi,
can you open a support ticket to Keil?
Changes made to the JLink driver: - updated to latest Segger drivers (stable version) - changed behaviour of scanning for JLinks (USB select box does not appear anymore)
I cannot attach any files here, but if you open a ticket you can receive the new files asap.
. BR, /th.
I have already addressed same problem to support (from Keil menu "help -> contact support"). But there aren't any response from support during one week...