Newbie

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Newbie

787 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zepedrowdp on Tue Jan 14 18:22:03 MST 2014
Hello everyone,

I've been programming 8-bit AVR microcontrollers for some time now. I want to step up and use an LPC1754 on my next project.
Thing is, I have never worked with this kind of uc... Do you know any good tutorials that could teach the basics of how to start programming a LPC?

I supose the first step would be to draw some kind of circuit that allows me to program it (is there any standard breakout board for the LPC1754?), am I right?


Thanks!
0 Kudos
15 Replies

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Sun Jan 19 19:21:06 MST 2014

Quote: zepedrowdp
If I switch to ISP mode, is there anything that I need to do to get back to "normal" JTAG / SWD mode?



Even in ISP mode SWD should work. In our worst case scenario (SWD isn't working in ISP mode) it's usually enough to delete the chip with FlashMagic.

After a simple Reset SWD should work again. An empty chip is switching to ISP anyway...   
0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zepedrowdp on Sun Jan 19 18:08:02 MST 2014
Ok, thank you very much for being so helpful LabRat!

Just one more question:

If I switch to ISP mode, is there anything that I need to do to get back to "normal" JTAG / SWD mode?
0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Sun Jan 19 17:39:05 MST 2014

Quote: zepedrowdp
In case SWD fails, can I simply flash the board using a FTDI FT232 and connecting its RX and TX to the LPC1754 UART's RX and TX?



Yes, just connect FTDI-Pin1(TXD) to LPC176x-RXD and FTDI-Pin5(RXD) to LPC176x-TXD.


Quote: zepedrowdp
Does the reset pin needs to be involved on the ISP flashing process?



No, after switching to ISP (pulling ISP-Pin low and reset or power-up) FlashMagic is working with a simple RXD / TXD connection. 


I've tried to add a picture / link but this crappy Spam Filter is refusing to accept it....

https://dlnmh9ip6v2uc.Xcloudfront.net//images/products/9/8/7/3/09873-02d.jpg

Deleting the 'X' in link above shows Sparkfun Basic FTDI 3.3V Board...
0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zepedrowdp on Sun Jan 19 06:26:00 MST 2014
So, before designing my custom PCB, I've searched the web for examples and came across this thread:
http://www.lpcware.com/content/forum/lpc1764-project-randomly-working

I will use this schematic as a model for my own.


In case SWD fails, can I simply flash the board using a FTDI FT232 and connecting its RX and TX to the LPC1754 UART's RX and TX?
[img]http://www.circuitsathome.com/wp/wp-content/uploads/ftdi232_01.jpg[/img]

Does the reset pin needs to be involved on the ISP flashing process?
0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zepedrowdp on Thu Jan 16 18:10:30 MST 2014

Quote: LabRat


LPCXpresso is using SWD (the newer JTAG-like protocol). So you should not need ISP via UART  :)

Unfortunately sometimes this chips refuse to work (and SWD also)  :((

So I would strongly recommend to add to your board:

- UART connector (RXD0 / TXD0 / GND) to connect a serial to USB converter (and use FlashMagic then)

- ISP pin (P2.10) jumper to switch to ISP if necessary

Usually SWD is working without problems, but if it fails you need FlashMagic ;-)



All right! Got it!
0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Thu Jan 16 18:08:06 MST 2014

Quote: zepedrowdp
Is FlashMagic needed or the LPCXpresso IDE does everything?



LPCXpresso is using SWD (the newer JTAG-like protocol). So you should not need ISP via UART  :)

Unfortunately sometimes this chips refuse to work (and SWD also)  :((

So I would strongly recommend to add to your board:

- UART connector (RXD0 / TXD0 / GND) to connect a serial to USB converter (and use FlashMagic then)

- ISP pin (P2.10) jumper to switch to ISP if necessary

Usually SWD is working without problems, but if it fails you need FlashMagic ;-) 
0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zepedrowdp on Thu Jan 16 17:59:28 MST 2014

Quote: LabRat

This is the newer version of the good old standard LPC-link (which is part of LPCXpresso boards).

It's faster and very useful for own boards. Just add a simple 4-wire connector to your board and LPCXpresso is flashing and debugging your board...



Yes, I got it now. Sorry for the missunderstanding.

Is FlashMagic needed or the LPCXpresso IDE does everything?

Thanks!
0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Thu Jan 16 17:55:08 MST 2014
.....
0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Thu Jan 16 17:53:01 MST 2014

Quote: zepedrowdp
Sorry, I missunderstood you! I didn't noticed that there was a separate board to flash and debug.



This is the newer version of the good old standard LPC-link (which is part of LPCXpresso boards).

It's faster and very useful for own boards. Just add a simple 4-wire connector to your board and LPCXpresso is flashing and debugging your board...


0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zepedrowdp on Thu Jan 16 17:48:13 MST 2014

Quote: LabRat
And how do you plan to flash / debug it? Wireless E.T.?



Sorry, I missunderstood you! I didn't noticed that there was a separate board to flash and debug.
0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Thu Jan 16 17:44:08 MST 2014

Quote: zepedrowdp
I plan to make my own board. :)



And how do you plan to flash / debug it? Wireless E.T.?
0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zepedrowdp on Thu Jan 16 17:40:12 MST 2014
I plan to make my own board. :)
0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Thu Jan 16 17:29:58 MST 2014

Quote: zepedrowdp
I've been searching for something that allows me to program from USB using the ISP of LPC1754.

Do you know of any and where can I buy it?



Just a funny idea: LPCXpresso?

http://www.embeddedartists.com/products/lpcxpresso/lpclink2.php
0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zepedrowdp on Thu Jan 16 16:50:06 MST 2014
I've been searching for something that allows me to program from USB using the ISP of LPC1754.

Something like AVR has:
[img]http://www.raphnet.net/divers/avrprog/ispMKII.jpg[/img]


Do you know of any and where can I buy it?
0 Kudos

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Tue Jan 14 19:38:34 MST 2014

Quote: zepedrowdp
Do you know any good tutorials that could teach the basics of how to start programming a LPC?



Start here:

http://www.lpcware.com/lpcxpresso


Quote: zepedrowdp
I supose the first step would be to draw some kind of circuit that allows me to program it (is there any standard breakout board for the LPC1754?)



Use LPCXpresso target board as reference:

http://www.embeddedartists.com/products/lpcxpresso/lpc1769_xpr.php

Schematic:

http://www.embeddedartists.com/sites/default/files/docs/schematics/LPCXpressoLPC1769revB.pdf

0 Kudos