Closed laterrps closed 6 years ago
Little more information required.
Are you using the Arduino IDE?
Did you put it into boot mode first (press and hold boot, press and release restart buttons)?
On Thu, Oct 12, 2017 at 11:35 AM, laterrps notifications@github.com wrote:
i have been trying to flash it and i cant
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GrumpyOldPizza/arduino-STM32L4/issues/20, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qj_xuw5Qu3kzAGn3lUp9ZJ5_2GlAks5srlv5gaJpZM4P3cMg .
I am using keil uvision and stlink v2
Read protection is not enabled. I flash STM32L4 all the time using ST-Link V2. Never used Keil uVision, so perhaps it's just a setup question on your end.
N.b. the debugger cannot break in (and flashing) when the chip is in a low power mode. So pressing toggeling RESET while BOOT is pressed is a good way to get the chip into a good state.
can you help me?
:/
I have zero idea. Does the Arduino IDE work (which is what this github here is about) ?
can you help me please?
yes it is working! on arduino ide
Ok, so it's either an issue with the ST_Link adapter or the program you are using. Have you tried to update the firmware on the ST-Link (let's assume you have a cheap clone from ebay ...) ? Have you tried to flash this with the official ST ST-Link software to eliminate a Keil uVision problem ?
If it would be read out protected, the normally dfu-utils would throw an error, and the Arduino IDE would fail to flash a sketch.
OK ok!!! I dont understand the reason because i can not to flash it!
I have programmed now! but it is necessary to conect the rst pin in rst button, plus swdio swclk gnd and 3v3
or how do you program it with st link?
can you help me with a schematic?
There is a schematic on the Tindie page.
On Thu, Oct 12, 2017 at 5:50 PM, laterrps notifications@github.com wrote:
can you help me with a schematic?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GrumpyOldPizza/arduino-STM32L4/issues/20#issuecomment-336320258, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qoakQdL4HJFTanAMBttk6L-xijW1ks5srrPcgaJpZM4P3cMg .
i meant the schematic showing me how you programm it
There should be a configuration option to use the internal reset via SWD.
On Oct 12, 2017 6:32 PM, "laterrps" notifications@github.com wrote:
I have programmed now! but it is necessary to conect the rst pin in rst button, plus swdio swclk gnd and 3v3
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GrumpyOldPizza/arduino-STM32L4/issues/20#issuecomment-336317774, or mute the thread https://github.com/notifications/unsubscribe-auth/AG4QfLuLmZFM2AcN52xvZ4q8ob9YNEuyks5srq-DgaJpZM4P3cMg .
Didn't you just say you did program it?
Can you program the Nucleo board or the discovery board?
Maybe the ST forum would be a better place. This site is for the Arduino core.
On Thu, Oct 12, 2017 at 5:55 PM, laterrps notifications@github.com wrote:
i meant the schematic showing me how you programm it
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GrumpyOldPizza/arduino-STM32L4/issues/20#issuecomment-336320967, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qtUj0BG28HUqHoC1SCs_eHvu1OMpks5srrUIgaJpZM4P3cMg .
I am using SWDIO, SWCLK, GND and VCC.
On Oct 12, 2017 6:50 PM, "laterrps" notifications@github.com wrote:
or how do you program it with st link?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GrumpyOldPizza/arduino-STM32L4/issues/20#issuecomment-336320221, or mute the thread https://github.com/notifications/unsubscribe-auth/AG4QfNheIrkDJTWidj5dfNcsSwugnVINks5srrPOgaJpZM4P3cMg .
maybe is the programmer that i am using!! thank you very much!!! seriously!! you help me a lot!
Well, we decided against exposing a RESET pin. Mainly because you can press RESET manually, and for debugging a live system, the internal reset that the debugger can trigger via SWD is good enough anyway.
On Fri, Oct 13, 2017 at 10:56 AM, laterrps notifications@github.com wrote:
maybe is the programmer that i am using!! thank you very much!!! seriously!! you help me a lot!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GrumpyOldPizza/arduino-STM32L4/issues/20#issuecomment-336508633, or mute the thread https://github.com/notifications/unsubscribe-auth/AG4QfDjWuHxYTWAe_Ck2ZAixwY5VgIlmks5sr5YwgaJpZM4P3cMg .
@GrumpyOldPizza i have selecter some diferent options in keil uvision but only this work and i have to "make contact" with a jumper on the button reset pin
@kriswiner thank you i talked to you because i consider you experts! and thank you very much for attend my questions! seriously i am sorry if i am disturbing your work!! best regards!
@kriswiner yes i have not problem with nucleo board now i am working with ladybug ! but i programmed it now, thank you very much
@GrumpyOldPizza which version of file do you send by ST-Link 32 V2 .hex file or .elf?
i have been trying to flash it and i cant