Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] LPC 17xx beginner's guide

Status
Not open for further replies.

zaferatakan

Newbie level 3
Newbie level 3
Joined
Apr 7, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,306
Hi there, recently I bought a LPC1758FBD80 MCU. This not on a development board, just a single MCU, which is going to be mounted on a TQFP80 to DIP adaptor.

Here is the problem; I couldn't find a single method of uploading my hex file into my MCU. Except for dev/eval boards of course which I have none. Looking for three days now.

Obviously I am missing something very fundamental information here. If you can at least mention what I am missing, it is going to be extremely appreciated.

If you have a connection circuit and the software and post it here, even more appreciated.
 

All the LPC17xx devices have a boot loader that uses UART , it is triggered by the state of P2.10.
The ISP is enabled when this pin is pulled low after a reset.

Download the user manual and read section 32

You will need a max3232 to connect the UART to the serial post of a PC and you can use a programming software like flashmagic https://www.flashmagictool.com/

You will obviously need a compiler like keil uvision to create the hex file.

An alternative is to use the jtag connection but this will require extra hardware like a jlink but it will give you additional features which include real time debugging.
 
Thanks for answering immediately. After your post I was able to find this:

A circuit from FLASHit website: **broken link removed** Page 33

**broken link removed**

You think this circuit will suit my needs and you think it is compatible with the flash magic?
 

Attachments

  • Clipboard-2.png
    Clipboard-2.png
    71.7 KB · Views: 82

Basically you only need the MAX3232 or equivalent part, the rest or the circuit used signals from the serial port to drive the reset and ISP mode pins automatically but you can do it with a jumper for the ISP pin and a button for reset and apply the states manually.

You can also see a similar schematic https://www.edaboard.com/threads/273242/#post1215913
 
Thanks for your responses. Definitely got my answers.

But, to further my knowledge; What should be my next step? What do you recommend for NXP LPC developer wannabes like me? You mentioned debugging. Old days, during my PIC developments, for debugging the code, I used Labcenter proteus isis and MPLAB. Is there similar softwares? I also read about USB and Ethernet Flash programming alternative to UART, though no idea how to manage those. Also a good newbie guide, like a website (I doubt there is one) or a book from Amazon.

This questions have no priority, so you can answer them later, if you want.

Again, thanks for the great answers.
 

I personally use keil uvision as an ide/compiler , the free version has a limit of 32KB hex size (can be used with devices that have more flash but can only compile up to 32KB code), it also supports many debugging hardware.

A very popular debugger is the Jlink and there is an educational version which is very low price http://www.segger.com/j-link-edu.html

I know there is a USB bootloader for lpc17xx but I haven't tried it so I can't provide much info but you can refer to http://www.lpcware.com/content/nxpfile/an10866-lpc1700-secondary-usb-bootloader

Finally you can download ARMwizard that can help you with the initialization code of the pins, interrupts and several peripherals

- - - Updated - - -

There is also a NXP code bundle for LPC17xx which includes examples for each peripheral so you can download it too although the link doesn't seem to work right now
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top