From ee57207deb7dcf86f9747ad70ddf8cdd64c2bd53 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 10 Jul 2012 16:10:38 +0000 Subject: [PATCH] LPC43xx fix: Logic was disabling XTAL, not enabling it git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4924 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- nuttx/arch/arm/src/lpc43xx/lpc43_cgu.c | 4 ++-- nuttx/configs/lpc4330-xplorer/README.txt | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/nuttx/arch/arm/src/lpc43xx/lpc43_cgu.c b/nuttx/arch/arm/src/lpc43xx/lpc43_cgu.c index 036da2697c..180d17bda6 100644 --- a/nuttx/arch/arm/src/lpc43xx/lpc43_cgu.c +++ b/nuttx/arch/arm/src/lpc43xx/lpc43_cgu.c @@ -151,9 +151,9 @@ static inline void lpc43_xtalconfig(void) #endif putreg32(regval, LPC43_XTAL_OSC_CTRL); - /* Enable the crystal oscillator */ + /* Enable the crystal oscillator by taking it out of power down mode */ - regval |= XTAL_OSC_CTRL_ENABLE; + regval &= ~XTAL_OSC_CTRL_ENABLE; putreg32(regval, LPC43_XTAL_OSC_CTRL); /* Delay for stable clock input */ diff --git a/nuttx/configs/lpc4330-xplorer/README.txt b/nuttx/configs/lpc4330-xplorer/README.txt index 876f06890f..d26595f2cd 100644 --- a/nuttx/configs/lpc4330-xplorer/README.txt +++ b/nuttx/configs/lpc4330-xplorer/README.txt @@ -189,7 +189,6 @@ GNU Toolchain Options If you have problems with the dependency build (for example, if you are not building on C:), then you may need to modify tools/mkdeps.sh - The CodeSourcery Toolchain (2009q1) ----------------------------------- The CodeSourcery toolchain (2009q1) does not work with default optimization @@ -314,7 +313,7 @@ Code Red IDE http://support.code-red-tech.com/CodeRedWiki/UsingGDB and is also summarized here (see the full Wiki for additional details - and optins). + and options). The Code Red Debug Driver implements the GDB "remote" protocol to allow connection to debug targets. To start a debug session using GDB, use @@ -429,6 +428,10 @@ USART0 and UART1 are available on J8 as follows: U1_RXD pin 14 J8 P1_14 U1_RXD=Alt 1 ------ ------ ----------------------- + GND is available on J8 pin 1 + 5V is available on J8 pin 2 + VBAT is available on J8 pin 3 + FPU ===