summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-29 12:31:55 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-29 12:31:55 -0600
commitc6ca0dea50eb950b937c877323ba61758f17acdf (patch)
treeeeefa84ae50e7a5f823f31553fd416fcc7144c58
parent24b3cfdafcf97c9ae6ebc9edad39bad579972b60 (diff)
downloadnuttx-c6ca0dea50eb950b937c877323ba61758f17acdf.tar.gz
nuttx-c6ca0dea50eb950b937c877323ba61758f17acdf.tar.bz2
nuttx-c6ca0dea50eb950b937c877323ba61758f17acdf.zip
EFM32 Gecko Starter Kit: Calibrate delay loops, update README
-rw-r--r--nuttx/configs/efm32-g8xx-stk/README.txt33
-rw-r--r--nuttx/configs/efm32-g8xx-stk/nsh/defconfig2
-rw-r--r--nuttx/configs/olimex-efm32g880f128-stk/nsh/defconfig2
3 files changed, 28 insertions, 9 deletions
diff --git a/nuttx/configs/efm32-g8xx-stk/README.txt b/nuttx/configs/efm32-g8xx-stk/README.txt
index 0f6f3cab5..045861433 100644
--- a/nuttx/configs/efm32-g8xx-stk/README.txt
+++ b/nuttx/configs/efm32-g8xx-stk/README.txt
@@ -29,13 +29,32 @@ STATUS
======
2014-10-28. Testing is still in progress. At this point all basic boot
- operations are successful: The LEDs work and the application tasks appear
- to be successfully started. LED2 is on and LED0 is glowing (meaning that
- interrupts are being processed). However, I get no output on PE0. Data
- appears to be sent (at least by efm32_lowputc()). However, no signal
- activity is present on PE0.
-
- I am, of course, thinking that this is a pin configuration issue.
+ operations are successful: The LEDs work and the application tasks appear
+ to be successfully started. LED2 is on and LED0 is glowing (meaning that
+ interrupts are being processed). However, I get no output on PE0. Data
+ appears to be sent (at least by efm32_lowputc()). However, no signal
+ activity is present on PE0.
+
+ 2014-10-29: The NuttX is running on the EFM32 Gecko Starter Kit. There
+ are not many peripherals to test in that configuration, but the NuttShell
+ (NSH) is working over LEUART0 at 2400 baud (certainly that could go up
+ to 4800. The documentation says that 9600 is also possible on the
+ LEUART, but I am not sure how).
+
+ I originally planned to use UART0 at 115200 baud, but I never could get
+ any output from the board. I reviewd my pin configuration and clocking
+ carefully and the USART seems to think it is working correctly. So I
+ am thinking that there is some board issue that prohibits that option
+ (probably because UART0 is used with the board controller???). Pins
+ are not available for other U[S]ARTs on the board.
+
+ 2014-10-29: Calibrated the delays loops.
+
+ 2014-10-29: The start-up time is long -- about a second. I have traced
+ this to the default delay in bringing up the LFCLK in efm32_clockconfig.
+ The default, reset setting of the LFXOTIMEOUT field of the CMU_CTRL
+ register is 3 which corresponds to a delay of 32768 cycles, or a full
+ second. I have not experimented to see if this delay can be reduced.
LEDs
====
diff --git a/nuttx/configs/efm32-g8xx-stk/nsh/defconfig b/nuttx/configs/efm32-g8xx-stk/nsh/defconfig
index a1433dc71..afcc12342 100644
--- a/nuttx/configs/efm32-g8xx-stk/nsh/defconfig
+++ b/nuttx/configs/efm32-g8xx-stk/nsh/defconfig
@@ -192,7 +192,7 @@ CONFIG_ARCH_HAVE_RAMVECTORS=y
#
# Board Settings
#
-CONFIG_BOARD_LOOPSPERMSEC=4531
+CONFIG_BOARD_LOOPSPERMSEC=2662
# CONFIG_ARCH_CALIBRATION is not set
#
diff --git a/nuttx/configs/olimex-efm32g880f128-stk/nsh/defconfig b/nuttx/configs/olimex-efm32g880f128-stk/nsh/defconfig
index 065e7ffab..b7a8dd310 100644
--- a/nuttx/configs/olimex-efm32g880f128-stk/nsh/defconfig
+++ b/nuttx/configs/olimex-efm32g880f128-stk/nsh/defconfig
@@ -189,7 +189,7 @@ CONFIG_ARCH_HAVE_RAMVECTORS=y
#
# Board Settings
#
-CONFIG_BOARD_LOOPSPERMSEC=4531
+CONFIG_BOARD_LOOPSPERMSEC=2662
# CONFIG_ARCH_CALIBRATION is not set
#