cancel
Showing results for 
Search instead for 
Did you mean: 

Programming STM32L w/J-Link Compact

DRkidd22
Associate II

I have created the below circuit and build a PCBA. I'm using the J-Link Base Compact and Tag-Connect TC2030.

Using the Arduino IDE I created a simple sketch to drive the 4 LEDs shown on the schematic below and blink every second.

The code compiles ok and Arduino IDE reports that it has successfully upload to the SMT32 chip, but the LEDs won't blink. I tried enableling outputs to other pins as well, but the problem persists. Any ideas what might be causing this? I'm using the Generic STM32L4 series "board" from Arduino library.

 

LEDTest.png

10 REPLIES 10

@DRkidd22 wrote:

VTref is only to detect power presence? 


Not just presence; it also sets the voltage levels of the J-Link interface - this is what lets it work from 1V2 all the way up to 5V.

So, if it's looking at the wrong voltage, then the whole J-Link operation becomes suspect.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.