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
LPC1766 Example Code does not run (Keil V3.50)
Started by ●June 4, 2009
Reply by ●June 4, 20092009-06-04
--- In l..., "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.
>
> 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.
Reply by ●June 4, 20092009-06-04
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..., "neliz_x" wrote:
>
> --- In l..., "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.
>
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..., "neliz_x" wrote:
>
> --- In l..., "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.
>
Reply by ●June 4, 20092009-06-04
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..., "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
>
#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..., "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
>
Reply by ●June 4, 20092009-06-04
> > 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,
>
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 as meeting the requirements for safety related systems.
> >
> > 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,
>
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 as meeting the requirements for safety related systems.
Reply by ●June 4, 20092009-06-04
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..., "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
>
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..., "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
>
Reply by ●June 4, 20092009-06-04
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
>
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
>