Author Topic: LPC1764 Assistance and Connections  (Read 3827 times)

micro9000

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
LPC1764 Assistance and Connections
« on: July 18, 2013, 03:51:58 pm »
Hello, I am having an issue with flash magic. Before I was using SWD. SWD was working before, but now I get the following error:

Quote
05: File load failure: EM(12). System rejected access at location 0x10000000 - verify Population of memory and peripherals

To fix this I am trying to use flash magic to program the target microcontroller. However, I am having difficulty with flash magic. It keeps giving me an "autobaud rate" error. I looked into it a bit and it could be the connections. The way I have it connected is as follows:

LPC1768 Pin # <------> FTDI RS232 3v3 Pin #
__________________________________
All VSS <------> 1 (GND)
All VDD <------> 3 (Power)
(RXD1) 74 <------> 4 (TXO)
(TXD1) 75 <------> 5 (RXT)

*Note I also have pin 53 (ISP pin) grounded

I have made sure to select the right part (LPC1764) and I am using a 12MHz crystal. I have also imported the hex file that was taken from the build of interest using LPC Expresso. I have tried stepping though each baud rate option, but it didn't work.
« Last Edit: July 18, 2013, 03:57:54 pm by micro9000 »

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC1764 Assistance and Connections
« Reply #1 on: July 19, 2013, 12:48:20 am »
I believe the bootloader runs on UART0. There is a schematic diagram for the MCB1700 board on keil.com.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

micro9000

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: LPC1764 Assistance and Connections
« Reply #2 on: July 23, 2013, 11:05:14 am »
Yes, thank you. That is correct. I have it working now. UART0 (TX0 and RX0) pins 99 and 98 are the correct pins to use. The setup I am using had the baud rate set to 56700, under Interface "None (ISP)," and ISP pin (pin 53) was pulled low with a 10K resistor.