cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f4discovery can write/read flash but not work

silent
Associate II
Posted on April 04, 2014 at 17:40

After days spent in tries to connect adc via i2s - mcu stopped working. I can write and read flash via st-link, mcu is properly detected but it does nothing. Tried mass erase - did not helped.

It seems that works only bootloader.

Is it definitely dead? )
9 REPLIES 9
chen
Associate II
Posted on April 04, 2014 at 17:46

Hi

Is this a board of your own design or a Eval board?

Are there any LEDs that can be flashed?

Try a simple LED flasher program.

If you are the same poster talking to fm - you do not have an ocilloscope - is that right?

Are you using external crystal - is it still working (sorry you need a scope to check that).

Posted on April 04, 2014 at 17:56

Is this a board of your own design or a Eval board?

STM32F4-Discovery
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
silent
Associate II
Posted on April 04, 2014 at 17:59

This is a board http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF252419, tried simple blink flash - not blinking, all voltages are ok

>If you are the same poster talking to fm - you do not have an ocilloscope - is that right? 

yep, i'm a poor autodidact developer )

chen
Associate II
Posted on April 04, 2014 at 18:11

Hi

OK, that board does not have LED.

Any chance of adding LED with resistor to one IO port and doing a simple LED flasher

program?

A quick way around toggling too fast, toggle on a key press (this board does have 1 user key)

It is a simple way to get indication of life from the processor.

silent
Associate II
Posted on April 04, 2014 at 18:13

this board HAVE 4 LEDS

as i said i alredy tried led blinking program

Posted on April 04, 2014 at 18:21

Try this .HEX file with ST-LINK Utilities, make sure that BOOT0 is not pulled High, as this will only ever run the boot/system loader.

:020000040800F2
:10000000180400209D0100080B03000807030008E6
:1000100009030008F5010008ED06000800000000D3
:10002000000000000000000000000000570300086E
:10003000F7010008000000000D030008310400086B
:10004000C3010008C3010008C3010008C301000880
:10005000C3010008C3010008C3010008C301000870
:10006000C3010008C3010008C3010008C301000860
:10007000C3010008C3010008C3010008C301000850
:10008000C3010008C3010008C3010008C301000840
:10009000C3010008C3010008C3010008C301000830
:1000A000C3010008C3010008C3010008C301000820
:1000B000C3010008C3010008C3010008C301000810
:1000C000C3010008C3010008C3010008C301000800
:1000D000C3010008C3010008C3010008C3010008F0
:1000E000C3010008C3010008C3010008C3010008E0
:1000F000C3010008C3010008C3010008C3010008D0
:10010000C3010008C3010008C3010008C3010008BF
:10011000C3010008C3010008C3010008C3010008AF
:10012000C3010008C3010008C3010008C30100089F
:10013000C3010008C3010008C3010008C30100088F
:10014000C3010008C3010008C3010008C30100087F
:10015000C3010008C3010008C3010008C30100086F
:10016000C3010008C3010008C3010008C30100085F
:10017000C3010008C3010008C3010008C30100084F
:10018000C3010008C3010008DFF80CD000F020F81C
:10019000004800470D0700081804002009480168BE
:1001A00041F470010160084880470848004700009A
:1001B000FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE717
:1001C000FEE7FEE788ED00E035040008890100083D
:1001D000064C074D06E0E06840F0010394E8070094
:1001E00098471034AC42F6D3FFF7D2FF1C07000843
:1001F0003C070008FEE770471CB54FF4E040009054
:1002000002208DF8040000208DF805008DF806000E
:100210000B4C8DF807006946204600F013F80222C7
:100220000C21204600F05FF802220D21204600F04C
:100230005AF802220E21204600F055F81CBD00009D
:10024000000C0240F0B50023012403270D6804FAD6
:1002500003F21540954242D1D0F800C05E0007FA83
:1002600006F52CEA050CC0F800C091F804C0D0F8DF
:1002700000E00CFA06FC4CEA0E0CC0F800C091F845
:1002800004C0BCF1010F02D0BCF1020F1FD1D0F8A5
:1002900008C02CEA050CC0F808C091F805C0D0F8D9
:1002A00008E00CFA06FC4CEA0E0CC0F808C0D0F8C6
:1002B00004C02CEA020CC0F804C0426891F806C0E1
:1002C0000CFA03FC1FFA8CFC42EA0C024260C26882
:1002D000AA43C260CA79C568B2402A43C2605B1CA7
:1002E000102BB3D3F0BD4B07DB0E9A40C90810B5F5
:1002F00000EB8100016A0F249C40A1430162016A66
:100300001143016210BDFEE7FEE770477047000031
:10031000044A0029116801D0014300E081431160C3
:100320007047000030380240044A0029116801D0AB
:10033000014300E0814311607047000040380240F3
:1003400010B501210420FFF7EFFF0121BDE81040A7
:100350000820FFF7DDBF70470CB500222E4901923F
:100360000092086840F4803008604FF4A063086889
:1003700000F4003000900198401C0190009810B9E2
:1003800001989842F3D108688303244841D501229B
:100390000092224A3832136843F080531360204A97
:1003A000136843F48043136002680260026842F4F9
:1003B00000420260026842F4A0520260031F194A20
:1003C0001A600A6842F080720A600A689201FCD5DD
:1003D000154B40F205621A60026822F003020260C7
:1003E000026842F0020202600268C2F38102022A3D
:1003F000FAD1026822F400020260084A0B487C32FB
:100400001060086840F08060086008680001FCD552
:100410000CBD0092EDE700000038024008380240B1
:100420000070004008544007003C0240003000507B
:10043000704700000F4810B5016841F001010160EC
:100440000C4A00210832116002680B4B1A4002600E
:10045000031D0A4A1A60026822F4802202600548DD
:100460000C300160FFF778FF05494FF0006008602D
:1004700010BD000000380240FFFFF6FE10300024DF
:1004800008ED00E070B51B481B4988B000680025E6
:10049000B0FBF1F0401EADF81400184E48F69F4432
:1004A0000694ADF81C50ADF8165005A9304600F082
:1004B000DFF83020ADF800000120ADF8020042F670
:1004C000DF600290ADF80C506946304600F022F82B
:1004D00045F6BF5002906946304600F04BF8694639
:1004E0003046029400F086F80121304600F008F80A
:1004F00008B070BD0000002080FC0A000008004029
:100500000029018802D041F0010101E021F0010140
:100510000180704730B5028C22F001020284028C07
:100520008388048B22F0020224F073050C882C438C
:100530008D8915434A882A430C4DA84202D00C4DA0
:10054000A8420DD122F00805CA8923F440732A433A
:1005500022F004058A882A430D8A1D434B8A2B43C7
:100560008380048389684163028430BD00000140B8
:100570000004014070B5028C22F010020284028C4B
:100580008488038B0D8823F4E6464FF6FF7303EA55
:10059000052535438E8922F0200203EA061616430C
:1005A0004A8803EA02123243104EB04202D0104E83
:1005B000B04215D122F08006CA8924F4406403EACF
:1005C0000212324322F040068A8803EA02123243C2
:1005D0000E8A03EA860626434C8A03EA84043443DF
:1005E0008480058389688163028470BD00000140B6
:1005F0000004014070B5028C22F480720284028CE7
:100600008488838B0D8823F073031D4322F40073C9
:100610008E894FF6FF7202EA06261E434B8802EAD5
:1006200003233343104EB04202D0104EB04215D1D6
:1006300023F40066CB8924F4405402EA03233343B5
:1006400023F480668B8802EA032333430E8A02EA8E
:10065000061626434C8A02EA0414344384808583B8
:100660008968C163038470BD00000140000401403B
:1006700030B50288164B174C98420DD0A0420BD0D3
:10068000B0F1804F08D0144DA84205D0134DA842B8
:1006900002D0134DA84203D122F070054A882A43A4
:1006A000104DA84206D0104DA84203D022F4407548
:1006B0000A892A4302804A68C2620A8802859842EF
:1006C00001D0A04201D1897A01860121818230BD09
:1006D0000000014000040140000400400008004008
:1006E000000C00400010004000140040FEE702E053
:1006F00008C8121F08C1002AFAD1704770470020AD
:1007000001E001C1121F002AFBD17047FFF718FE5C
:10071000FFF772FDFFF7B6FEFEE700003C0700089A
:100720000000002014000000EE060008500700083A
:100730001400002004040000FE060008007A030AEA
:100740000000000000000000010203040607080981
:040000050800018965
:00000001FF

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
chen
Associate II
Posted on April 04, 2014 at 18:39

Hi

Sorry missed that.

The only other thing I can think of requires a scope.

Program the IO pin to output the clock.

I am thinking maybe the oscillator has broken.

So the board will program but without the oscillator working - no program will work.

I just looked at the board here in the office. It has external Osc crystal.

Does the device have built in RC oscillator ? - maybe you can program it to use that

silent
Associate II
Posted on April 04, 2014 at 18:42

nothing, HEX has been successfully writed but no reaction

Posted on April 04, 2014 at 18:58

Not promising, sounds like you've nuked the thing.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..