EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Crossworks and the "LPC1700 secondary USB bootloader"

Started by normnet2003 March 22, 2011
Re-post of dead thread.

Where would I find the interface to the "LPC1700 secondary USB bootloader" in Crossworks?

I have Blinky.c compiling and building.

I have read the bootloader pdf found at:
http://www.nxp.com/documents/application_note/AN10866.pdf

I have my "Blueboard LPC1768" pulled low on reset on both pins P2.12 and P1.2 to enter secondary bootload mode.
Both pins are pulled low as they both are referenced depending on the source of information.

The blueboard is preprogrammed for the bootloader and also shows up in device manager.

Is their an interface in Crossworks for the "LPC1700 secondary USB bootloader"?

Norm

An Engineer's Guide to the LPC2100 Series

Note that the ISP pin is p2.10 not p2.12

--- In l..., "normnet2003" wrote:
>
> Re-post of dead thread.
>
> Where would I find the interface to the "LPC1700 secondary USB bootloader" in Crossworks?
>
> I have Blinky.c compiling and building.
>
> I have read the bootloader pdf found at:
> http://www.nxp.com/documents/application_note/AN10866.pdf
>
> I have my "Blueboard LPC1768" pulled low on reset on both pins P2.12 and P1.2 to enter secondary bootload mode.
> Both pins are pulled low as they both are referenced depending on the source of information.
>
> The blueboard is preprogrammed for the bootloader and also shows up in device manager.
>
> Is their an interface in Crossworks for the "LPC1700 secondary USB bootloader"?
>
> Norm
>

I see it now.
The upper left hand corner of the board has a BSL pin on the header.
IF I pull it low with 500 ohms the board on USB power up shows a different LED light pattern so it should be in secondary bootload mode.

Nothing shows up under Crossworks>Target>connect although I not really sure what to look for.

Norm

--- In l..., "Larry Viesse" wrote:
>
> Note that the ISP pin is p2.10 not p2.12
>
> --- In l..., "normnet2003" wrote:
> >
> > Re-post of dead thread.
> >
> > Where would I find the interface to the "LPC1700 secondary USB bootloader" in Crossworks?
> >
> > I have Blinky.c compiling and building.
> >
> > I have read the bootloader pdf found at:
> > http://www.nxp.com/documents/application_note/AN10866.pdf
> >
> > I have my "Blueboard LPC1768" pulled low on reset on both pins P2.12 and P1.2 to enter secondary bootload mode.
> > Both pins are pulled low as they both are referenced depending on the source of information.
> >
> > The blueboard is preprogrammed for the bootloader and also shows up in device manager.
> >
> > Is their an interface in Crossworks for the "LPC1700 secondary USB bootloader"?
> >
> > Norm
>

On Tue, Mar 22, 2011 at 12:00 PM, normnet2003 wrote:

> I see it now.
> The upper left hand corner of the board has a BSL pin on the header.
> IF I pull it low with 500 ohms the board on USB power up shows a different
> LED light pattern so it should be in secondary bootload mode.
>
BSL is Boot Select Line and having BSL low during reset will make the
LPC1768 enter programming mode over UART (ISP), which is different from your
USB secondary bootloader.

>
> Nothing shows up under Crossworks>Target>connect although I not really sure
> what to look for.
>
Note that you will not find the Blueboard listed under CrossWorks->Targets.
Understand that CrossWorks has nothing to do as far the USB bootloader is
concerned. Both are independent

Assuming that you have not loaded/programmed the NGX -Blueboard-lpc1768-H,
please follow the steps mentioned below:

- Download the bootloader source from
http://www.shop.ngxtechnologies.com/download/sample_code/LPC1768/LPC1700_secondary_USB_bootloader.zip
- Modify the sbl_config.h, line 55 and 56 as per your requirement

#define ISP_ENTRY_GPIO_REG 0x2009C034 /* Port1 */
#define ISP_ENTRY_PIN 20 /* Pin */

The above setting will make the bootloader look for Port1 Pin 20 to enter
into USB bootloader mode

- Build the project and program using JTAG or ISP
- Locate the Pin P1.20 on Blueboard, and connect the P1.20 line to GND
and RESET the board
- The board should enumerate as mass storage device
- Once it appears as Mass Storage device, just drag drop already
generated binary
- Now just remove the P1.20 connection from GND and reset
- Your new program should take control.
--
Warm regards
Ashwin
Director, NGX Technologies Pvt. Ltd.
> Note that you will not find the Blueboard listed under CrossWorks->Targets.
> Understand that CrossWorks has nothing to do as far the USB bootloader is
> concerned. Both are independent
>
> Assuming that you have not loaded/programmed the NGX -Blueboard-lpc1768-H,
> please follow the steps mentioned below:
>
> - Download the bootloader source from
> http://www.shop.ngxtechnologies.com/download/sample_code/LPC1768/LPC1700_secondary_USB_bootloader.zip
> - Modify the sbl_config.h, line 55 and 56 as per your requirement
>
> #define ISP_ENTRY_GPIO_REG 0x2009C034 /* Port1 */
> #define ISP_ENTRY_PIN 20 /* Pin */
>
> The above setting will make the bootloader look for Port1 Pin 20 to enter
> into USB bootloader mode
>
> - Build the project and program using JTAG or ISP
> - Locate the Pin P1.20 on Blueboard, and connect the P1.20 line to GND
> and RESET the board
> - The board should enumerate as mass storage device
> - Once it appears as Mass Storage device, just drag drop already
> generated binary
> - Now just remove the P1.20 connection from GND and reset
> - Your new program should take control.
> --
> Warm regards
> Ashwin
> Director, NGX Technologies Pvt. Ltd.
>

The BlueBoard LPC1768-H manual states:
"Pre-loaded USB boot-loader for programming through USB"

Should I be able to simply pull pin P1.20 low, reset and see a mass storage device in My Computer?

If not I will need to learn ISP or other as this is a Crossworks trial and I haven't yet purchased JTAG.

Norm

On Tue, Mar 22, 2011 at 5:27 PM, normnet2003 wrote:

> > Note that you will not find the Blueboard listed under
> CrossWorks->Targets.
> > Understand that CrossWorks has nothing to do as far the USB bootloader is
> > concerned. Both are independent
> >
> > Assuming that you have not loaded/programmed the NGX
> -Blueboard-lpc1768-H,
> > please follow the steps mentioned below:
> >
> > - Download the bootloader source from
> >
> http://www.shop.ngxtechnologies.com/download/sample_code/LPC1768/LPC1700_secondary_USB_bootloader.zip
> > - Modify the sbl_config.h, line 55 and 56 as per your requirement
> >
> > #define ISP_ENTRY_GPIO_REG 0x2009C034 /* Port1 */
> > #define ISP_ENTRY_PIN 20 /* Pin */
> >
> > The above setting will make the bootloader look for Port1 Pin 20 to enter
> > into USB bootloader mode
> >
> > - Build the project and program using JTAG or ISP
> > - Locate the Pin P1.20 on Blueboard, and connect the P1.20 line to GND
> > and RESET the board
> > - The board should enumerate as mass storage device
> > - Once it appears as Mass Storage device, just drag drop already
> > generated binary
> > - Now just remove the P1.20 connection from GND and reset
> > - Your new program should take control.
> >
> >
> > --
> > Warm regards
> > Ashwin
> > Director, NGX Technologies Pvt. Ltd.
> > The BlueBoard LPC1768-H manual states:
> "Pre-loaded USB boot-loader for programming through USB"
>

Since, USB bootloader functionality was provided later as a on-board
firmware update. It could be possible that your board does not have the it
pre-programmed.

To know if the board is pre-loaded with USB boot-loader, check if the
default firmware on the board makes it enumerate as HID device. If yes, then
usb-bootloader is not loaded. :(

If the usb bootloader is programmed, the Blueboard-lpc1768 firmware only
tests the LED and on board EEPROM and does not enumerate as USB device.
> Should I be able to simply pull pin P1.20 low, reset and see a mass storage
> device in My Computer?
> If not I will need to learn ISP or other as this is a Crossworks trial and
> I haven't yet purchased JTAG.
>

I would highly recommend you to have JTAG, the next best option would be to
learn ISP. But kindly note that Blueboard-lpc1768-h does not have RS232 to
TTL level converter on board.

--
Warm regards
Ashwin
Director, NGX Technologies Pvt. Ltd.

Memfault Beyond the Launch