cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to detect STM32f030 MCU with ST-Link V2

byron8899
Associate II
Posted on September 18, 2016 at 02:39

Hello

I just joined the forum and I am new to ARM.  I followed ARM tutorials using this link 

I am using CoIDE V2 for beginner development, I was having problems trying to download the program to the STM32f030 MCU.  So I went to STM32 Utility program to find out whats going on.  I went to settings I noticed Under ''STM 32 target Information'', it shows the ''Detection fail'' message for ''Target'' and ''Target Voltage''.  

I don't know if its because I made a mistake on connect stlink programer GND to the VDD(breadboard).  I'm a little worried if I fried the chip.  

Here is the diagram of the chip I'm using.

#st-link-v2 #stm32f030
7 REPLIES 7
michaelc.barton9
Associate II
Posted on September 18, 2016 at 10:25

hi

I'm afraid you *may* have fried your chip, or you may have been lucky

For beginners, I really don't see any reason not to buy either

http://uk.farnell.com/webapp/wcs/stores/servlet/Search?catalogId=15001&langId=44&storeId=10151&categoryId=700000005178&eq=N%3D203908%2B2031%26amp%3bNtk%3Ddesc_pn%26amp%3bNtt%3Dnucleo%26amp%3bNtx%3Drel%2Bgensearch_store_specific%252cstatic%2528P_STORE_MARKETING_RANK_FARNELL_UK%252cascending%2529%2Bmo...

or one of their

http://uk.farnell.com/webapp/wcs/stores/servlet/Search?catalogId=15001&langId=44&storeId=10151&categoryId=700000005178&eq=N%3D203908%2B2031%26amp%3bNtk%3Ddesc_pn%26amp%3bNtt%3Ddiscovery%26amp%3bNtx%3Drel%2Bgensearch_store_specific%252cstatic%2528P_STORE_MARKETING_RANK_FARNELL_UK%252cascending%2529%2...

boards which as you can see are cheap and have ST-Link built-in

For your board, you need to check all your connections, see may post (done approx 30 mins ago) in this [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/How%20to%20load%20program%20in%20stm32f0%20using%20st%20linkv2&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&currentviews=27]thread

but if you fried your chip then no amount of messing around will sort it :(
adam23
Associate II
Posted on September 20, 2016 at 15:27

Do not forget you may need to supply external power or stlink may do it for you with proper wiring. You may also damage the stlink vcc with invalid wiring so you now need a external power.

byron8899
Associate II
Posted on September 21, 2016 at 07:08

Hello.

Thank you for your replies.  Not sure why the ST forums is pretty slow and Google chrome doesn't seem to like the website.  But anyway.

Unfortunately, I don't have any external power supply for my st-link v2.  Also the USB st-link V2 doesn't have NRST pin.   I guess going for nucleo or st discovery would be the best option for beginners.  Which ones would you guys recommend for beginners (knows nothing about ARM, some experience with Arduino)?

Thanks 

michaelc.barton9
Associate II
Posted on September 21, 2016 at 12:28

OK, the ST-Link V2 does have the NRST pin, it's the RST one

in electronics, where a pin logic is reversed, often an 'N'/'n' (Not) or sometimes a '!' is put infront of the signal wire name to signify this

so, when pin RST is High/On, this means do-not-reset - (someone plz tell me if I'm totally wrong on this !!!)

As for your board choice, there is a big selection

Whichever one you choose, it's quite a step up from Arduino

The STM32 range has several architectures available, the older ones are Cortex-M3 (shortened to CM3) and newer ones are CM0, CM+, CM4 and CM7

A generalisation: CM0 are the junior ones but still run at ~48MHz (so nice boost over Arduino), CM0+ are low power versions of these (run at 32MHz), others run faster plus often have a Floating Point Unit (FPU) to speed up complex float calcs

There's not really a huge difference in the programming complexity between ranges, so don't expect a CM0 to be 'simpler'

One thing to note is that programs tend to be noticably larger compared to equivalent Arduino ones

The Nucleo boards are relatively basic with just an LED and user button but cover most of the chip ranges: CM0, CM0+, CM4, CM7

the Discovery boards tend to have more features: gyros/magnetometers/ePaper/Displays/Touch Pads/LEDs etc on them (but avoid the CM3's as they are getting on)

To find out more on what features each board has, search out the User Manual pdf's (prefixed UMxxxx) on the ST website

what to go for, well it kinda depends on what area you want to play around with ?

displays, sensors, led's ?

byron8899
Associate II
Posted on September 22, 2016 at 07:21

Ah, yes, I see it, there is ''RST'' on ST-LINK V2.   Actually, I did google about NRST and it says that this represents external reset.  Not sure why they use 'N'.  I did connect from RST to MCU NRST/Internal Reset Output, but still not reading the chip.  

About choosing which dev boards to go for,  I'm interested in displays, LEDs, sensors, etc.

The main part I want to focus is more on Internet of Things side.   I had start using nordic BLE dev board before, but I gotten really lost for months, so I thought about starting to learn ARM first before going into that.  

michaelc.barton9
Associate II
Posted on September 22, 2016 at 09:43

OK

so for general things like displays/sensors/leds, any board will probably do

Sensors, MPU6050 (gyro+accel) or, if you also want magnetometer, MPU9150/9250

small mono displays, I would go for Nokia 5110 display: ebay search ''Nokia 5110 LCD Screen Module''

for bigger colour displays, I would recommend getting a cheap one off ebay search: ''Tft Lcd Display Module 240X320 Ili9341'' and get one with pins so can easily be connected up.

Larger ones have touchscreen aswell

If you get into these larger displays, the more RAM you have the better

As for IoT, thats not so good on ST. They do have a

http://uk.farnell.com/stmicroelectronics/x-nucleo-idw01m1/evaluation-board-wi-fi-b-g-n-soc/dp/2530550

but it hasn't really caught on that well

Most people appear to be using ESP8266, but it has a lack of pins for more than simple projects

Ironically, there is an ARM board similar to ESP8266 using STM32F411 uC

http://www.aliexpress.com/item/Wireless-WiFi-WiFiMCU-Development-Board-Module-Using-Lua-Bese-on-EMW3165/32616308064.html?spm=2114.01010208.3.11.1p4DHy&ws_ab_test=searchweb201556_10%2csearchweb201602_1_10065_10068_112_10069_110_111_418_10017_109_108_10060_10061_10062_10057_10056_10055_10037_10054_301...

but has some obtuse programming instead of ability to use GCC compiler

byron8899
Associate II
Posted on September 23, 2016 at 06:43

Thank you Michael for provide me some helpful information about ARM for beginners and about IOT.  I appreciate your time and I will do more research about them.