Hello,
I recently purchased the Blueboard LPC1768-H from Sparkfun in an attempt to learn ARM (and use it in a current project of mine). I’m using LPCXpresso for development and Flash Magic to program the board.
I loaded up an example program from LPCXpresso to blink the LED on the Blueboard (I verified that all the port numbers are correct, P1.29) and successfully compiled the code and generated a hex file for Flash Magic to load. When I first plugged in the Blueboard, all of the LED’s were brightly lit. When I entered ISP mode by holding the ISP switch and then pressing reset, all the LED’s turned off except the power and reset LEDs. However, the “Test LED” as listed on the schematic (P1.29) was dimly lit. I’m using an FTDI cable for the serial cable (only using the RX,TX,GND pins). When I try to read the device signature I see the Device ID, the bootloader version, and the serial number but not the Manufacturer ID, Device ID 1, or Device ID 2. In addition, when I do a Blank Check, Flash Magic returns saying that all the flash blocks are blank! I don’t know if it makes a difference, but I have the “Erase all Flash+Code Rd Prot” box checked.
Unfortunately, when I reset the processor all the LED’s stayed in their same state, with the LED on P1.29 (the one my program was trying to blink) still dimly lit. I’m suspicious that the LPC1768 is stuck in ISP mode, because I don’t need to put it back in ISP mode (using the procedure with the switches above) to get flash magic to still read the device signature or load code. Do any of yall have any ideas or successfully done this?
Thanks for you help,
Chris
cfb
July 29, 2010, 1:29am
2
Magician944:
However, the “Test LED” as listed on the schematic (P1.29) was dimly lit.
Your program may actually be running but the led is blinking much too quickly for you to see it flashing on and off. If you implemented your delay as a 'do-nothing loop' either:
a) try reducing the optimisation settings on the compiler to ensure the loop isn’t optimised away to nothing
b) (recommended) replace the do-nothing loop with a proper timer-controlled delay
Thanks for your reply.
That thought did cross my mind, however a quick check with an oscilloscope proved this not the case. I tried to have the LED just be on or just be off. As it turns out, the LED pin and other GPIO pins are hovering around 1.7 volts or so for some reason. Any other ideas?
Where can I find the Blueboard Forum? Thanks.
Having the same exact problem. Not seeing the clock wiggling, LED stuck at 1.7V, etc.
I’ve tried a ‘canned’ hex file as well as my own. I don’t know if it’s the way I’m using flash magic or what.
In the past when I did something to brick an ARM, there was no connecting to to it to upload code, get the device ID, etc, like there is now.
Confused.
First listed is the code I loaded into it, next is what came out of ‘display memory’ in Flash Magic:
Edit, this is the junk that came out, it is much shorter than what went in, and that code was too long to post:
00000000 3076001065020000690200006B020000 0v..e...i...k...
00000010 6D0200006F020000710200004A7BFFEF m...o...q...J{..
00000020 00000000000000000000000073020000 ............s...
00000030 75020000000000007702000079020000 u.......w...y...
00000040 7B0200007B0200007B0200007B020000 {...{...{...{...
00000050 7B0200007B0200007B0200007B020000 {...{...{...{...
00000060 7B0200007B0200007B0200007B020000 {...{...{...{...
00000070 7B0200007B0200007B0200007B020000 {...{...{...{...
00000080 7B0200007B0200007B0200007B020000 {...{...{...{...
00000090 7B0200007B0200007B0200007B020000 {...{...{...{...
000000A0 7B0200007B0200007B0200007B020000 {...{...{...{...
000000B0 2D0C00007B0200007B0200007B020000 -...{...{...{...
000000C0 7B0200007B0200007B02000000F002F8 {...{...{.......
000000D0 00F05BF80AA090E8000C82448344AAF1 ..[........D.D..
000000E0 0107DA4501D100F050F8AFF2090EBAE8 ...E....P.......
000000F0 0F0013F0010F18BFFB1A43F001031847 ..........C....G
00000100 C4F40000E4F40000103A24BF78C878C1 .........:$.x.x.
00000110 FAD8520724BF30C830C144BF04680C60 ..R.$.0.0.D..h.`
00000120 704700000023002400250026103A28BF pG...#.$.%.&.:(.
00000130 78C1FBD8520728BF30C148BF0B607047 x...R.(.0.H..`pG
00000140 6E2901F06183702901F07283642901F0 n)..a.p)..r.d)..
00000150 2183732901F04587002070471FB509F0 !.s)..E.. pG....
00000160 A5FD9DE8030002F0A3F802F085F80400 ................
00000170 0020002109F084FD401C606002F050FB . .!....@.``..P.
00000180 1FBD10B502F0B5FB10BD02F0E5FB1146 ...............F
00000190 FFF7E4FF00F022F902F058FD03B4FFF7 ......"...X.....
000001A0 F0FF03BC00F07CFB00BF7047FEE710B5 ......|...pG....
000001B0 06F094FD06F00AFE06F0FCFD06F0A0FD ................
000001C0 06F0E2FDBDE8104006F054BD10B507F0 .......@..T.....
000001D0 8FFF08F067FC07F0E1FFBDE8104007F0 ....g........@..
000001E0 F9BE07F089BD07F075BB09B904F0A4BA ........u.......
000001F0 002070470020704719A101F094BC01F0 . pG. pG........
00000200 B7BC10B50C4603460121204602F016FC .....F.F.! F....
00000210 80B210BD0346084610B511461A4601F0 .....F.F...F.F..
00000220 10FC002800D0012010BD70B505464FF4 ...(... ..p..FO.
00000230 887003F0E7F90021A0F804110E460446 .p.....!.....F.F
00000240 0146284604F018FE20B904F5847005F0 .F(F.... ....p..
00000250 DDFE0646204604F093FF304670BD0000 ...F F....0Fp...
00000260 7200000008480047FEE7FEE7FEE7FEE7 r....H.G........
00000270 FEE7FEE7FEE7FEE7FEE7FEE703480449 .............H.I
00000280 044A054B70470000CD000000306A0010 .J.KpG......0j..
00000290 307600103072001030720010704710B5 0v..0r..0r..pG..
000002A0 044601F0AFFD0068005D000704D5DF2C .F.....h.].....,
000002B0 02D0A4F1200010BD204610BD0FB40949 .... ... F.....I
000002C0 1CB506AB6A4679440090059801F05FFE ....jFyD......_.
000002D0 04460020694601F06DFE20461CBC5DF8 .F. iF..m. F..].
000002E0 14FB0000EB1C000002F0FF0343EA0322 ............C.."
000002F0 42EA024201F0C9BC70477047FFFFFFFF B..B....pGpG....
00000300 10B5052001F08FF8654A0021052001F0 ... ....eJ.!. ..
00000310 79F8062001F087F8614A002111320620 y.. ....aJ.!.2.
00000320 01F070F85E4900201039886010BD7047 ..p.^I. .9.`..pG
00000330 002070477CB55BA10CC90021CDE90023 . pG|.[....!...#
00000340 5A4B6C460125665C05FA06F205FA01F6 ZKlF.%f\........
00000350 064201D09A6500E0DA65491C0829F2D3 .B...e...eI..)..
00000360 7CBD2DE9FC414E4D103D686800281FD0 |.-..ANM.=hh.(..
00000370 E86800281CD0042200214D4806F0F0FE .h.(...".!MH....
00000380 E9684B4F01F0004210434FF0000205F1 .hKO...B.CO.....
00000390 21064FF0010410D0491EE9600AD103F0 !.O.....I..`....
000003A0 DFFF44A13046FFF789FF4748C5E90240 ..D.0F....GH...@
000003B0 BDE8FC81B1F1004FFAD144A13848EA60 .......O..D.8H.`
000003C0 FFF77CFFFB78BA78CDE900237B783A78 ..|..x.x...#{x:x
000003D0 42A13046FFF772FFAC60E9E770B500F0 B.0F..r..`..p...
000003E0 14F82F4C3220103C4FF0E0260125E060 ../L2 .<O..&.%.`
000003F0 3069C00302D508F015FE656006F06AFE 0i........e`..j.
00000400 FFF7AFFF00F02EF8F2E710B500F0DAFC ................
00000410 2648016C41F0FF01016400F088FD4FF6 &H.lA....d....O.
00000420 FF7000F075FF1F2000F06CFF2FA20221 .p..u.. ..l./..!
00000430 012000F0E7FF02212FA2084600F0E2FF . .....!/..F....
00000440 FFF75EFF04F06EFE06F078FB2F480A21 ..^...n...x./H.!
00000450 0068B0FBF1F1491E4FF0E02041610521 .h....I.O.. Aa.!
00000460 016110BD7FB52AA13CC9684680E83C00 .a....*.<.hF..<.
00000470 0B4C103C6168012911D1002565602168 .L.<ah.)...%e`!h
00000480 405CFFF757FF2068401C2060102800D3 @\..W. h@. `.(..
00000490 2560A068012802D1BDE87F4030E77FBD %`.h.(.....@0...
000004A0 10000010000102030405060700C00920 ...............
000004B0 506700102044484350206661696C6564 Pg.. DHCP failed
000004C0 20202020000000001E00008020495020 ........ IP
000004D0 616464726573733A000000002025642E address:.... %d.
000004E0 25642E25642E25640000000020202020 %d.%d.%d....
000004F0 524C2D41524D0000485454502066696C RL-ARM..HTTP fil
00000500 652075706C6F61640000000064000010 e upload....d...
00000510 4888844442222111120A0C1418283050 H..DB"!......(0P
00000520 70472DE9F0410D461646E8B3824C0128 pG-..A.F.F...L.(
00000530 0CD021460968022820D003281CD10029 ..!F.h.( ..(...)
00000540 1AD0BDE8F041084601F012BB2E4603E0 .....A.F.....F..
00000550 5C2800D16E1C6D1C28780028F8D13078 \(..n.m.(x.(..0x
00000560 002809D004F0DEFD08B1002003E073A1 .(......... ..s.
00000570 304601F0D8FA2060BDE8F0814FF40077 0F.... `....O..w
00000580 0029F9D0A0460CE0BC4200D93C462246 .)...F...B..<F"F
00000590 01212846D8F8003002F0DDFA301B2544 .!(F...0....0.%D
000005A0 86B23400F0D1E7E7FFE7002EE4D02820 ..4...........(
000005B0 03F028F80646002728223146284605F0 ..(..F.'("1F(F..
000005C0 65FE05463078E0B15DA1304608F0FAF8 e..F0x..].0F....
000005D0 01280FD15848B11D001D08F0DBF8564C .(..XH........VL
000005E0 241D03E0FFF75BFE04F8010B20780028 $.....[..... x.(
000005F0 F8D106E054A1304608F0E4F8012800D1 ....T.0F.....(..
00000600 0127002DD8D1304604F0BAFD012FB3D1 .'.-..0F...../..
00000610 04F088FD0128AFD0BDE8F0414648001D .....(.....AFH..
00000620 04F018BD2DE9F04704464A48DFF82891 ....-..G.FJH..(.
00000630 0E464FF47A75844210D3B4FBF0F78046 .FO.zu.B.......F
00000640 3A4646A13046FFF739FE08FB1744B4FB :FF.0F..9....D..
00000650 F9F70644C8463A4641A107E048464C45 ...D.F:FA...HFLE
00000660 10D3B4FBF0F780463A463CA13046FFF7 .......F:F<.0F..
00000670 25FE08FB1741B1FBF5F205FB12133044 %....A........0D
00000680 39A107E0AC4209D3B4FBF5F205FB1243 9....B.........C
00000690 38A13046BDE8F047FFF710BE22463046 8.0F...G...."F0F
000006A0 BDE8F04735A1FFF709BEF0B50F4634A1 ...G5........F4.
000006B0 8DB009680C91017800241D4664290CD0 ...h...x.$.Fd)..
000006C0 662936D18178312933D11B4A011D121D f)6..x1)3..J....
000006D0 3846FFF7F3FD04462BE02888294E28B9 8F.....F+.(.)N(.
000006E0 0020A6F8040104F01DFD10BB28882549 . ..........(.%I
000006F0 401C28800CA804F0BFFBD0B906F58076 @.(............v
00000700 08A93068FFF78EFF737A327AF189307B ..0h....sz2z..0{
00000710 CDE90523CDE903011A49F37A08AA8DE8 ...#.....I.z....
00000720 0E000B462A8818493846FFF7C7FD40F4 ...F*..I8F....@.
00000730 0044A0B20DB0F0BD3400001077000000 .D......4...w...
00000740 6C6162656C3D0000666F726D61743D79 label=..format=y
00000750 6573000000CA9A3B40420F0025642E00 es.....;@B..%d..
00000760 253033642E000000253033642E253033 %03d....%03d.%03
00000770 6400000025642E253033640025640000 d...%d.%03d.%d..
00000780 2A2E2A00C4000010BC9C0000FFF7CFBD *.*.............
00000790 70B50D46044643A101F0F0FA10B948F2 p..F.FC.......H.
000007A0 010070BD41A1204601F0E8FA10B948F2 ..p.A. F......H.
000007B0 020070BD3FA1204601F0E0FA10B948F2 ..p.?. F......H.
000007C0 030070BD29462046BDE8704002F096BB ..p.)F F..p@....
000007D0 B0F5004F01DD0020704702F00BBB70B5 ...O... pG....p.
000007E0 0D46A0F500411446023908D12CB115F8 .F...A.F.9..,...
000007F0 010BFFF79CFD641EF8E7002070BDB0F5 ......d.... p...
00000800 004F02DD4FF0FF3070BD22462946BDE8 .O..O..0p."F)F..
00000810 704002F051BD70B50D4648F201011446 p@..Q.p..FH....F
00000820 884208D12CB1FFF783FD05F8010B641E .B..,.........d.
00000830 F8E7002070BDB0F5004F02DD4FF0FF30 ... p....O..O..0
00000840 70BD22462946BDE8704002F06BBCB0F5 p."F)F..p@..k...
00000850 004F01DD0120704700207047B0F5004F .O... pG. pG...O
00000860 02DD4FF0FF30704702F0B0BCB0F5004F ..O..0pG.......O
00000870 02DD4FF0FF30704702F0FABAB0F5004F ..O..0pG.......O
00000880 01DD0020704700EB800101EBC0000B49 ... pG.........I
00000890 01EB8000002102F0EFBB012070477047 .....!..... pGpG
000008A0 FEE70000535444494E0000005354444F ....STDIN...STDO
000008B0 5554000053544445525200000C250010 UT..STDERR...%..
000008C0 10B5C1F12002FB4B90404FF400745A15 .... ..K.@O..tZ.
000008D0 08E0002801DA9C6500E0DC659A65DA65 ...(...e...e.e.e
000008E0 4000491E0029F4D110BD70B50446F248 @.I..)....p..F.H
000008F0 0078012829D1EF4D286C40F400702864 .x.()..M(l@..p(d
00000900 20214FF0FF30FFF7DBFF04210620FFF7 !O..0.....!. ..
00000910 D7FF05210120FFF7D3FF05212046FFF7 ...!. .....! F..
00000920 CFFF00F0E1F90024204669154FEA4404 .......$ Fi.O.D.
00000930 A965E9656A6D920501D544F00104401C .e.ejm....D...@.
00000940 1028F3D300F0D0F911E044F480704FF0 .(........D..pO.
00000950 A04188620120486200200B134A6BD207 .A.b. Hb. ..Jk..
00000960 02D0401C9842F9D3002048620C6BA0B2 ..@..B... Hb.k..
00000970 70BD70B50546D0480C460078012821D1 p.p..F.H.F.x.(!.
00000980 CC48016C41F40071016420214FF0FF30 .H.lA..q.d !O..0
00000990 FFF796FF04210520FFF792FF05210120 .....!. .....!.
000009A0 FFF78EFF05212846FFF78AFF02210846 .....!(F.....!.F
000009B0 FFF786FF10212046FFF782FFBDE87040 .....! F......p@
000009C0 00F092B945F480704FF0A0418862CC62 ....E..pO..A.b.b
000009D0 00200B134A6BD20702D0401C9842F9D3 . ..Jk....@..B..
000009E0 70BD2DE9FC470024B34D36202C700090 p.-..G.$.M6 ,p..
000009F0 6A6869466846904701982521B1EB106F jhiFhF.G..%!...o
00000A00 01D101202870AD480268AD4942F08042 ... (p.H.h.IB..B
00000A10 0260AC488160297829B9C16821F00F01 .`.H.`)x)..h!...
00000A20 491DC16008E00269A24922F470220261 I..`...i.I".p".a
00000A30 086C40F4807008644FF44F404FF0A045 .l@..p.dO.O@O..E
00000A40 28607820C5F800016420401EFDD14FF0 (`x ....d @...O.
00000A50 0209C5F80090302068604001686143F2 ......0 h`@.haC.
00000A60 0F7028614FF01208C5F80C804FF41070 .p(aO.......O..p
00000A70 C5F800014FF40060A8616426761EFDD1 ....O..`.ad&v...
00000A80 AC614FF400410020FFF773FF4FF48017 .aO..A. ..s.O...
00000A90 0020FFF72AFF10F4084F02D0761CBE42 . ..*....O..v..B
00000AA0 F6D30220FFF721FF06460320FFF71DFF ... ..!..F. ....
00000AB0 4FF6F0710840844940EA064088420DD1 O..q.@.I@..@.B..
00000AC0 4FF440510020FFF754FF00260120FFF7 O.@Q. ..T..&. ..
00000AD0 0CFF800602D4761CBE42F7D300264FF4 ......v..B...&O.
00000AE0 80371020FFF701FFC10702D1761CBE42 .7. ........v..B
00000AF0 F7D341070BD5696841F001016960D5F8 ..A...ihA...i`..
00000B00 0021152142F48062C5F8002100E04146 .!.!B..b...!..AF
00000B10 A960800701D5AC6102E04FF48070A861 .`.....a..O..p.a
00000B20 6A4881882964418869640088A864684B jH..)dA.id...dhK
00000B30 684FA3F16402002002F1200100EB4006 hO..d.. .. ...@.
00000B40 03EB462642F8306002EBC006776041F8 ..F&B.0`....w`A.
00000B50 304001EBC006401C74600428EED3C5F8 0@....@.t`.(....
00000B60 0821C5F80C110320C5F81001C5F81841 .!..... .......A
00000B70 57490020584E243901F1180300EB4002 WI. XN$9......@.
00000B80 06EB422241F8302001EBC002546043F8 ..B"A.0 ....T`C.
00000B90 2040401C0328F1D305F1AC0529676B67 @@..(......)gkg
00000BA0 C5F87890EC674FF02600C5F854014FF0 ..x..gO.&...T.O.
00000BB0 8800C5F8380F4FF6FF70C5F83C0F686D ....8.O..p..<.hm
00000BC0 40F00300686555F8AC0D40F001002860 @...heU...@...(`
00000BD0 BDE8FC8741484FF08051016070474048 ....AHO..Q.`pG@H
00000BE0 4FF0805101607047F0B54FF0A04CDCF8 O..Q.`pG..O..L..
00000BF0 2841374E0188243E021D56F83430C91C (A7N..$>..V.40..
00000C00 890805D020CA1F1D1D603B46491EF9D1 .... ....`;FI...
00000C10 008806EBC401401E40F04040641C4860 ......@.@.@@d.H`
00000C20 032C00D10024CCF82841F0BD2DE9F041 .,...$..(A..-..A
00000C30 4FF0A04536E000BFC5F8E80F000731D5 O..E6.........1.
00000C40 D5F818412AE02248443850F834004100 ...A*."HD8P.4.A.
00000C50 1ED5C0F30A06F61E40F2EA518E4217D8 ........@..Q.B..
00000C60 2049084214D146F0004002F0CBFC78B1 I.B..F..@....x.
00000C70 1749021D643951F83430F61CB10805D0 .I..d9Q.40......
00000C80 40CB171D16603A46491EF9D107F09AF8 @....`:FI.......
00000C90 641C042C00D10024C5F81841D5F81401 d..,...$...A....
00000CA0 A042D0D1D5F8E00FD5F8E41F0840C3D1 .B...........@..
00000CB0 BDE8F08100C009205C000010C4C00F40 ....... \......@
00000CC0 0501155000C00240905C002054000010 ...P...@.\. T...
00000CD0 B43C0010FF050080B454001000E100E0 .<.......T......
00000CE0 80E100E00000901B0448026C411522F4 .........H.lA.".
00000CF0 007202648165C1657047000000C00920 .r.d.e.epG.....
00000D00 2C4A52F86C0C2C4940F4001042F86C0C ,JR.l.,I@...B.l.
00000D10 086A40F4001008624B6B284843F40013 .j@....bKk(HC...
00000D20 4B63C368C3600B6E43F080630B664B6F Kc.h.`.nC..c.fKo
00000D30 23F080634B67C16821F44071C160C168 #..cKg.h!.@q.`.h
00000D40 41F44071C160C16821F47031C160C168 A.@q.`.h!.p1.`.h
00000D50 41F47031C160D06F20F44060D067D06F A.p1.`.o .@`.g.o
00000D60 4FF0FA0140F48060D067154801614FF0 O...@..`.g.H.aO.
00000D70 070101604FF002014160704710490128 ...`O...A`pG.I.(
00000D80 01D10A2000E0FA20086170470A490028 ... ... .apG.I.(
00000D90 486B02D040F4001001E020F400104863 Hk..@..... ...Hc
00000DA0 704707498860C868C006FCD48868C0B2 pG.I.`.h.....h..
00000DB0 7047000030C10F4000C0092000C00240 pG..0..@... ...@
00000DC0 0080084030B547492020C1F8A00100BF ...@0.GI ......
00000DD0 D1F8A0014006FBD5032501F18001C1F8 ....@....%......
00000DE0 84504FF00002C1F82821C1F82C214FF0 .PO.....(!..,!O.
00000DF0 0100C1F88C003C4B4B6008604FF0AA03 ......<KK`.`O...
00000E00 CB604FF05504CC60A1F18001D1F88800 .`O.U..`........
00000E10 4001FBD541F8805FCB60CC60C1F88820 @...A.._.`.`...
00000E20 32484864C1F848218868A1F180016FEA 2HHd..H!.h....o.
00000E30 106080072E4AD1F80C0100F0030032D1 .`...J........2.
00000E40 28B1012810D002281FD0032843D151F8 (..(...(...(C.Q.
00000E50 880FCB6FC0F30740401CDBB25B1C5843 ...o...@@...[.XC
00000E60 51F88839234C0BE051F8880FCB6FC0F3 Q..9#L..Q....o..
00000E70 0740401CDBB25B1C584351F888391E4C .@@...[.XCQ..9.L
00000E80 C3F30E035B1C634322E051F8880FCB6F ....[.cC".Q....o
00000E90 C0F30740401CDBB25B1C584351F88839 ...@@...[.XCQ..9
00000EA0 4FF47A44ECE728B1012807D0022809D0 O.zD..(..(...(..
00000EB0 032810D1D1F80401104B07E0D1F80401 .(.......K......
00000EC0 0F4B03E0D1F804014FF4FA43C0B2401C .K......O..C..@.
00000ED0 B3FBF0F01060086820F4704040F48040 .....`.h .p@@..@
00000EE0 086030BD00C00F4063000500DE872804 .`0....@c.....(.
00000EF0 6400001000127A0000366E0100093D00 d.....z..6n...=.
00000F00 001BB700401EFDD27047FC490A6C42F0 ....@...pG.I.lB.
00000F10 FF020A644FF400128A619210CA614865 ...dO....a...aHe
00000F20 52008A61CA61000A4865012070472DE9 R..a.a..He. pG-.
00000F30 F047F248016841F07E7101604FF07E71 .G.H.hA.~q.`O.~q
00000F40 8161052000F05FFB002000F098FBEC49 .a. .._.. .....I
00000F50 4FF48074888080B2A71DA0F58A4141F2 O..t.........AA.
00000F60 300540F202264FF4E06840F207794FF4 0.@..&O..h@..yO.
00000F70 1C5A31397ED10121002000F073FB4FF4 .Z19~..!. ..s.O.
00000F80 C561102000F06EFB0621122000F06AFB .a. ..n..!. ..j.
00000F90 40F63221132000F065FB4021112000F0 @.2!. ..e.@!. ..
00000FA0 61FB5021152000F05DFB1621122000F0 a.P!. ..]..!. ..
00000FB0 59FB0F2000F027FB45F26061102000F0 Y.. ..'.E.`a. ..
00000FC0 51FB0F2000F01FFB42F64E21132000F0 Q.. ....B.N!. ..
00000FD0 49FB2146012000F045FB4FF440710220 I.!F. ..E.O.@q.
00000FE0 00F040FB2946032000F03CFB31460820 ..@.)F. ..<.1F.
00000FF0 00F038FB00210A2000F034FB00213020 ..8..!. ..4..!0