cancel
Showing results for 
Search instead for 
Did you mean: 

First non-eval kit board help

gvonfang
Associate
Posted on April 23, 2012 at 04:29

Hi All,

I've been playing with a project on STM32VLDISCOVERY board for a while, and I'm trying to move it off eval board.  I wanted to start slow, so I ordered a

http://www.proto-advantage.com/store/product_info.php?products_id=2200113

 with the 

http://www.st.com/internet/mcu/product/216844.jsp

soldered to it.  Using IAR Workbench and the Discovery as SWD Programmer, I get error whenever i try to connect saying ''Fatal error: Failed to read CPUID for cortex device''.

Anybody know what this means?  If I try to program the Discovery board directly it works fine.

Pins 19,32,48,64 connected to 3.3V

Pins 18,31,47,63 connect to GND

Pin 49 connected to SWCLK

Pin 46 connected to SWDIO

What am I missing?  Not even sure how to start debugging that error message?  Are there any examples of a very basic circuit that will just allow debugging?  I'm hoping to avoid external clock.  Is that possible?

#stm32-stlink-stm32vldiscovery
3 REPLIES 3
alok472
Associate II
Posted on April 23, 2012 at 05:39

1. Do you have right MCU selection in IAR Workspace ?

2. Check XTAL/Clock and Power signals. 

3. Try to reset the Option bytes by running JLinkSTM32.exe from C:\Program Files\IAR Systems\Embedded Workbench 6.30\arm\bin

frankmeyer9
Associate II
Posted on April 23, 2012 at 09:03

Are your leads too long ?

I can't see how your connection to the discovery board looks like.

Or, could you tune down JTAG/SWD clocking frequency ?

gvonfang
Associate
Posted on April 24, 2012 at 03:11

Thanks for the input. Turns out I didn't have the VDDA and the VSSA pins connected to PWR and GND respectively. I made a circuit diagram of the minimum required connections for debug in case anybody is interested.

________________

Attachments :

MinimumCircuitForDebug.JPG : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I1F4&d=%2Fa%2F0X0000000bkA%2FSrdvb0nDPzcPg3Ak1eV7RCCVfmU06YGQCVq6BIQqmDA&asPdf=false