Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | LPC2000 | LPC1766 Example Code does not run (Keil V3.50)

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

LPC1766 Example Code does not run (Keil V3.50) - Alex Ribero - Jun 4 10:40:18 2009

Hi:

For those of you that got your sample of the LPC1766....

I installed my sample on a board and tried to run the Blinky example provided by Keil for the LPC1766.

The program compiles and is programmed in Flash Memory. However, the GPIO pins do not toggle as expected.

Using the debugger, I am able to step through the beginning of main, but when it reaches a GPIO register access, it fails, indicating "Cannot access memory"

I checked the LPC17xx.h file to know where the GPIO registers are mapped:

#define AHB_BASE (0x50000000UL)

#define GPIO1_BASE (AHB_BASE + 0x14020)

However, the datasheet marks this region as "Not used", and there is no other region indicated for GPIO registers (there is region indicated for GPIO Interrupts, thought). I don't have the User Manual yet, to verify the memory location of the GPIO registers...

My questions are:

1. Does anybody have been able to run any code on a LPC1766?
2. Is there an updated LPC17xx.h definition file?
3. Does anybody have a LPC17xx User Manual document?

Thanks,

Alex

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )


Re: LPC1766 Example Code does not run (Keil V3.50) - neliz_x - Jun 4 10:59:01 2009

--- In l...@yahoogroups.com, "Alex Ribero" wrote:
>
> Hi:
>
> For those of you that got your sample of the LPC1766....
>

> My questions are:
>
> 1. Does anybody have been able to run any code on a LPC1766?
> 2. Is there an updated LPC17xx.h definition file?
> 3. Does anybody have a LPC17xx User Manual document?
>
> Thanks,
>
> Alex
>
Hi,

Although I haven't got the LPC1766 sample I took the effort in finding the memory map for it.
Please download this file http://www.nxp.com/acrobat_download/datasheets/LPC1768_66_65_64_2.pdf and you will find the memory map in section 7.6 of the document.

I haven't looked for a updated .h definition file, but I'm pretty sure that you'll find the right memory area's in the pdf file to check if your version of LPC17XX.h is correct.

Good luch with it.

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: LPC1766 Example Code does not run (Keil V3.50) - Alex Ribero - Jun 4 11:39:19 2009

Hi:

Thank you for your message.

I had already compared the two, and they differ (hence the post).
And the datasheet doesn't show a memory area for GPIO.

Regards,

Alex
--- In l...@yahoogroups.com, "neliz_x" wrote:
>
> --- In l...@yahoogroups.com, "Alex Ribero" wrote:
> >
> > Hi:
> >
> > For those of you that got your sample of the LPC1766....
> > > My questions are:
> >
> > 1. Does anybody have been able to run any code on a LPC1766?
> > 2. Is there an updated LPC17xx.h definition file?
> > 3. Does anybody have a LPC17xx User Manual document?
> >
> > Thanks,
> >
> > Alex
> >
> Hi,
>
> Although I haven't got the LPC1766 sample I took the effort in finding the memory map for it.
> Please download this file http://www.nxp.com/acrobat_download/datasheets/LPC1768_66_65_64_2.pdf and you will find the memory map in section 7.6 of the document.
>
> I haven't looked for a updated .h definition file, but I'm pretty sure that you'll find the right memory area's in the pdf file to check if your version of LPC17XX.h is correct.
>
> Good luch with it.
>

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: LPC1766 Example Code does not run (Keil V3.50) - dlk_boi - Jun 4 12:10:03 2009

The LPC17xx.h (v1.0 11/21/08) header file included with Keil v3.50 has errors in it. Download the Keil ver3.7 release which has an updated header file (v1.1 5/14/09):

#define GPIO_BASE (0x2009C000UL)
#define GPIO0_BASE (GPIO_BASE + 0x00000)
#define GPIO1_BASE (GPIO_BASE + 0x00020)
#define GPIO2_BASE (GPIO_BASE + 0x00040)
#define GPIO3_BASE (GPIO_BASE + 0x00060)
#define GPIO4_BASE (GPIO_BASE + 0x00080)
is --- In l...@yahoogroups.com, "Alex Ribero" wrote:
>
> Hi:
>
> For those of you that got your sample of the LPC1766....
>
> I installed my sample on a board and tried to run the Blinky example provided by Keil for the LPC1766.
>
> The program compiles and is programmed in Flash Memory. However, the GPIO pins do not toggle as expected.
>
> Using the debugger, I am able to step through the beginning of main, but when it reaches a GPIO register access, it fails, indicating "Cannot access memory"
>
> I checked the LPC17xx.h file to know where the GPIO registers are mapped:
>
> #define AHB_BASE (0x50000000UL)
>
> #define GPIO1_BASE (AHB_BASE + 0x14020)
>
> However, the datasheet marks this region as "Not used", and there is no other region indicated for GPIO registers (there is region indicated for GPIO Interrupts, thought). I don't have the User Manual yet, to verify the memory location of the GPIO registers...
>
> My questions are:
>
> 1. Does anybody have been able to run any code on a LPC1766?
> 2. Is there an updated LPC17xx.h definition file?
> 3. Does anybody have a LPC17xx User Manual document?
>
> Thanks,
>
> Alex
>

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

RE: Re: LPC1766 Example Code does not run (Keil V3.50) - FreeRTOS info - Jun 4 13:41:04 2009

> > Hi:
> >=20
> > For those of you that got your sample of the LPC1766....
> >=20
>=20
> > My questions are:
> >=20
> > 1. Does anybody have been able to run any code on a LPC1766?
> > 2. Is there an updated LPC17xx.h definition file?
> > 3. Does anybody have a LPC17xx User Manual document?
> >=20
> > Thanks,
> >=20
> > Alex
> >
> Hi,
>=20

There is a running example in the FreeRTOS.org download albeit for a
pre-production version of the chip. See:
http://www.freertos.org/Free-RTOS-For-NXP-Cortex-M3-LPC17xx.html
Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers. More than 7000 downloads per month.

+ http://www.SafeRTOS.com
Certified by T=DCV as meeting the requirements for safety related systems.
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: LPC1766 Example Code does not run (Keil V3.50) - Alex Ribero - Jun 4 13:47:51 2009

Hi:

As suggested, Keil V3.70 corrected the errors in the LPC17xx.h file.
Example code is now running from Flash and debugging properly.

Regards,

Alex.

--- In l...@yahoogroups.com, "Alex Ribero" wrote:
>
> Hi:
>
> For those of you that got your sample of the LPC1766....
>
> I installed my sample on a board and tried to run the Blinky example provided by Keil for the LPC1766.
>
> The program compiles and is programmed in Flash Memory. However, the GPIO pins do not toggle as expected.
>
> Using the debugger, I am able to step through the beginning of main, but when it reaches a GPIO register access, it fails, indicating "Cannot access memory"
>
> I checked the LPC17xx.h file to know where the GPIO registers are mapped:
>
> #define AHB_BASE (0x50000000UL)
>
> #define GPIO1_BASE (AHB_BASE + 0x14020)
>
> However, the datasheet marks this region as "Not used", and there is no other region indicated for GPIO registers (there is region indicated for GPIO Interrupts, thought). I don't have the User Manual yet, to verify the memory location of the GPIO registers...
>
> My questions are:
>
> 1. Does anybody have been able to run any code on a LPC1766?
> 2. Is there an updated LPC17xx.h definition file?
> 3. Does anybody have a LPC17xx User Manual document?
>
> Thanks,
>
> Alex
>

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: LPC1766 Example Code does not run (Keil V3.50) - elektrknight - Jun 4 15:25:03 2009

Alex,
I have re-posted your message and my replpy in lpc1000 group:

http://tech.groups.yahoo.com/group/lpc1000/
Pawel
> Hi:
>
> For those of you that got your sample of the LPC1766....
>
> I installed my sample on a board and tried to run the Blinky example provided by Keil for the LPC1766.
>
> The program compiles and is programmed in Flash Memory. However, the GPIO pins do not toggle as expected.
>
> Using the debugger, I am able to step through the beginning of main, but when it reaches a GPIO register access, it fails, indicating "Cannot access memory"
>
> I checked the LPC17xx.h file to know where the GPIO registers are mapped:
>
> #define AHB_BASE (0x50000000UL)
>
> #define GPIO1_BASE (AHB_BASE + 0x14020)
>
> However, the datasheet marks this region as "Not used", and there is no other region indicated for GPIO registers (there is region indicated for GPIO Interrupts, thought). I don't have the User Manual yet, to verify the memory location of the GPIO registers...
>
> My questions are:
>
> 1. Does anybody have been able to run any code on a LPC1766?
> 2. Is there an updated LPC17xx.h definition file?
> 3. Does anybody have a LPC17xx User Manual document?
>
> Thanks,
>
> Alex
>

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )