Add instructions to enable RTC in the nsh/ configuration; RTC enabled by default in the demo configuration

This commit is contained in:
Gregory Nutt 2013-10-19 10:38:23 -06:00
parent d65e4aa1ef
commit ff312168e8
3 changed files with 100 additions and 30 deletions

View File

@ -925,6 +925,9 @@ Configurations
to the SAMA5D3-EK. Since it now passes that test, the configuration to the SAMA5D3-EK. Since it now passes that test, the configuration
has little further use other than for reference. has little further use other than for reference.
There may be issues with some of these configurations. See the details
before of the status of individual configurations.
Now for the gory details: Now for the gory details:
demo: demo:
@ -995,11 +998,23 @@ Configurations
System Type->Heap Configuration System Type->Heap Configuration
CONFIG_SAMA5_DDRCS_HEAP=y : Add the SDRAM to the heap CONFIG_SAMA5_DDRCS_HEAP=y : Add the SDRAM to the heap
CONFIG_SAMA5_DDRCS_HEAP_OFFSET=0
CONFIG_SAMA5_DDRCS_HEAP_SIZE=268435456
Memory Management Memory Management
CONFIG_MM_REGIONS=2 : Two heap memory regions: ISRAM and SDRAM CONFIG_MM_REGIONS=2 : Two heap memory regions: ISRAM and SDRAM
5. The Embest or Ronetix CPU module includes an Atmel AT25DF321A, 5. The Real Time Clock/Calendar RTC) is enabled. These are the relevant
settings:
System Type:
CONFIG_SAMA5_RTC=y : Enable the RTC driver
Drivers (these values will be selected automatically):
CONFIG_RTC=y : Use the RTC for system time
CONFIG_RTC_DATETIME=y : RTC supports data/time
6. The Embest or Ronetix CPU module includes an Atmel AT25DF321A,
32-megabit, 2.7-volt SPI serial flash. Support for that serial 32-megabit, 2.7-volt SPI serial flash. Support for that serial
FLASH can is enabled in this configuration. These are the relevant FLASH can is enabled in this configuration. These are the relevant
configuration settings: configuration settings:
@ -1054,7 +1069,7 @@ Configurations
NOTE: It appears that if Linux runs out of NAND, it will destroy the NOTE: It appears that if Linux runs out of NAND, it will destroy the
contents of the AT25. contents of the AT25.
6. Support for HSMCI car slots. The SAMA5D3x-EK provides a two SD memory 7. Support for HSMCI car slots. The SAMA5D3x-EK provides a two SD memory
card slots: (1) a full size SD card slot (J7 labeled MCI0), and (2) card slots: (1) a full size SD card slot (J7 labeled MCI0), and (2)
a microSD memory card slot (J6 labeled MCI1). The full size SD card a microSD memory card slot (J6 labeled MCI1). The full size SD card
slot connects via HSMCI0; the microSD connects vi HSMCI1. Relevant slot connects via HSMCI0; the microSD connects vi HSMCI1. Relevant
@ -1128,7 +1143,7 @@ Configurations
volume when it is removed. But those callbacks are not used in volume when it is removed. But those callbacks are not used in
this configuration. this configuration.
7. Support the USB high-speed device (UDPHS) driver is enabled. 8. Support the USB high-speed device (UDPHS) driver is enabled.
These are the relevant NuttX configuration settings: These are the relevant NuttX configuration settings:
Device Drivers -> USB Device Driver Support Device Drivers -> USB Device Driver Support
@ -1187,7 +1202,7 @@ Configurations
first have to use mkrd to create the RAM disk and mkfatfs to put first have to use mkrd to create the RAM disk and mkfatfs to put
a FAT file system on it. a FAT file system on it.
8. The USB high-speed EHCI and the low-/full- OHCI host drivers are supported 9. The USB high-speed EHCI and the low-/full- OHCI host drivers are supported
in this configuration. in this configuration.
Here are the relevant configuration options that enable EHCI support: Here are the relevant configuration options that enable EHCI support:
@ -1263,7 +1278,17 @@ Configurations
The following features are *not* enabled in the demo configuration but The following features are *not* enabled in the demo configuration but
might be of some use to you: might be of some use to you:
9. Debugging USB. There is normal console debug output available that 10. The RTC supports an alarm that may be enable with the following settings.
However, there is nothing in the system that currently makes use of this
alarm.
Drivers:
CONFIG_RTC_ALARM=y : Enable the RTC alarm
Library Routines
CONFIG_SCHED_WORKQUEUE=y : Alarm needs work queue support
11. Debugging USB. There is normal console debug output available that
can be enabled with CONFIG_DEBUG + CONFIG_DEBUG_USB. However, USB can be enabled with CONFIG_DEBUG + CONFIG_DEBUG_USB. However, USB
operation is very time critical and enabling this debug output WILL operation is very time critical and enabling this debug output WILL
interfere with some operation. USB tracing is a less invasive way interfere with some operation. USB tracing is a less invasive way
@ -1444,22 +1469,24 @@ Configurations
configuration file: configuration file:
System Type->ATSAMA5 Peripheral Support System Type->ATSAMA5 Peripheral Support
CONFIG_SAMA5_MPDDRC=y : Enable the DDR controller CONFIG_SAMA5_MPDDRC=y : Enable the DDR controller
System Type->External Memory Configuration System Type->External Memory Configuration
CONFIG_SAMA5_DDRCS=y : Tell the system that DRAM is at the DDR CS CONFIG_SAMA5_DDRCS=y : Tell the system that DRAM is at the DDR CS
CONFIG_SAMA5_DDRCS_SIZE=268435456 : 2Gb DRAM -> 256GB CONFIG_SAMA5_DDRCS_SIZE=268435456 : 2Gb DRAM -> 256GB
CONFIG_SAMA5_DDRCS_LPDDR2=y : Its DDR2 CONFIG_SAMA5_DDRCS_LPDDR2=y : Its DDR2
CONFIG_SAMA5_MT47H128M16RT=y : This is the type of DDR2 CONFIG_SAMA5_MT47H128M16RT=y : This is the type of DDR2
Now that you have SDRAM enabled, what are you going to do with it? One Now that you have SDRAM enabled, what are you going to do with it? One
thing you can is add it to the heap thing you can is add it to the heap
System Type->Heap Configuration System Type->Heap Configuration
CONFIG_SAMA5_DDRCS_HEAP=y : Add the SDRAM to the heap CONFIG_SAMA5_DDRCS_HEAP=y : Add the SDRAM to the heap
CONFIG_SAMA5_DDRCS_HEAP_OFFSET=0
CONFIG_SAMA5_DDRCS_HEAP_SIZE=268435456
Memory Management Memory Management
CONFIG_MM_REGIONS=2 : Two memory regions: ISRAM and SDRAM CONFIG_MM_REGIONS=2 : Two memory regions: ISRAM and SDRAM
Another thing you could do is to enable the RAM test built-in Another thing you could do is to enable the RAM test built-in
application: application:
@ -1469,15 +1496,15 @@ Configurations
it can be tested without crashing programs using the memory: it can be tested without crashing programs using the memory:
System Type->Heap Configuration System Type->Heap Configuration
CONFIG_SAMA5_DDRCS_HEAP=n : Don't add the SDRAM to the heap CONFIG_SAMA5_DDRCS_HEAP=n : Don't add the SDRAM to the heap
Memory Management Memory Management
CONFIG_MM_REGIONS=1 : One memory regions: ISRAM CONFIG_MM_REGIONS=1 : One memory regions: ISRAM
Then enable the RAM test built-in application: Then enable the RAM test built-in application:
Application Configuration->System NSH Add-Ons->Ram Test Application Configuration->System NSH Add-Ons->Ram Test
CONFIG_SYSTEM_RAMTEST=y CONFIG_SYSTEM_RAMTEST=y
In this configuration, the SDRAM is not added to heap and so is not In this configuration, the SDRAM is not added to heap and so is not
excessible to the applications. So the RAM test can be freely excessible to the applications. So the RAM test can be freely
@ -2124,6 +2151,25 @@ Configurations
Defaults should be okay for all related settings. Defaults should be okay for all related settings.
17. The Real Time Clock/Calendar RTC) may be enabled with these settings:
System Type:
CONFIG_SAMA5_RTC=y : Enable the RTC driver
Drivers (these values will be selected automatically):
CONFIG_RTC=y : Use the RTC for system time
CONFIG_RTC_DATETIME=y : RTC supports data/time
The RTC supports an alarm that may be enable with the following settings.
However, there is nothing in the system that currently makes use of this
alarm.
Drivers:
CONFIG_RTC_ALARM=y : Enable the RTC alarm
Library Routines
CONFIG_SCHED_WORKQUEUE=y : Alarm needs work queue support
STATUS: STATUS:
PCK FREQUENCY PCK FREQUENCY

View File

@ -119,6 +119,15 @@ CONFIG_USBHOST_ISOC_DISABLE=y
# #
# ATSAMA5 Configuration Options # ATSAMA5 Configuration Options
# #
# CONFIG_SAMA5_HAVE_UART0 is not set
# CONFIG_SAMA5_HAVE_UART1 is not set
# CONFIG_SAMA5_HAVE_CAN0 is not set
# CONFIG_SAMA5_HAVE_CAN1 is not set
CONFIG_SAMA5_HAVE_LCDC=y
CONFIG_SAMA5_HAVE_GMAC=y
# CONFIG_SAMA5_HAVE_EMAC is not set
# CONFIG_SAMA5_HAVE_HSMCI2 is not set
# CONFIG_SAMA5_HAVE_TC1 is not set
# CONFIG_ARCH_CHIP_ATSAMA5D31 is not set # CONFIG_ARCH_CHIP_ATSAMA5D31 is not set
CONFIG_ARCH_CHIP_ATSAMA5D33=y CONFIG_ARCH_CHIP_ATSAMA5D33=y
# CONFIG_ARCH_CHIP_ATSAMA5D34 is not set # CONFIG_ARCH_CHIP_ATSAMA5D34 is not set
@ -130,10 +139,9 @@ CONFIG_ARCH_CHIP_ATSAMA5D33=y
# CONFIG_SAMA5_DBGU is not set # CONFIG_SAMA5_DBGU is not set
# CONFIG_SAMA5_PIT is not set # CONFIG_SAMA5_PIT is not set
# CONFIG_SAMA5_WDT is not set # CONFIG_SAMA5_WDT is not set
CONFIG_SAMA5_RTC=y
CONFIG_SAMA5_HSMC=y CONFIG_SAMA5_HSMC=y
# CONFIG_SAMA5_SMD is not set # CONFIG_SAMA5_SMD is not set
# CONFIG_SAMA5_UART0 is not set
# CONFIG_SAMA5_UART1 is not set
# CONFIG_SAMA5_USART0 is not set # CONFIG_SAMA5_USART0 is not set
CONFIG_SAMA5_USART1=y CONFIG_SAMA5_USART1=y
# CONFIG_SAMA5_USART2 is not set # CONFIG_SAMA5_USART2 is not set
@ -143,11 +151,9 @@ CONFIG_SAMA5_USART1=y
# CONFIG_SAMA5_TWI2 is not set # CONFIG_SAMA5_TWI2 is not set
CONFIG_SAMA5_HSMCI0=y CONFIG_SAMA5_HSMCI0=y
CONFIG_SAMA5_HSMCI1=y CONFIG_SAMA5_HSMCI1=y
# CONFIG_SAMA5_HSMCI2 is not set
CONFIG_SAMA5_SPI0=y CONFIG_SAMA5_SPI0=y
# CONFIG_SAMA5_SPI1 is not set # CONFIG_SAMA5_SPI1 is not set
# CONFIG_SAMA5_TC0 is not set # CONFIG_SAMA5_TC0 is not set
# CONFIG_SAMA5_TC1 is not set
# CONFIG_SAMA5_PWM is not set # CONFIG_SAMA5_PWM is not set
# CONFIG_SAMA5_ADC is not set # CONFIG_SAMA5_ADC is not set
CONFIG_SAMA5_DMAC0=y CONFIG_SAMA5_DMAC0=y
@ -174,8 +180,6 @@ CONFIG_SAMA5_PIO_IRQ=y
# CONFIG_SAMA5_PIOC_IRQ is not set # CONFIG_SAMA5_PIOC_IRQ is not set
CONFIG_SAMA5_PIOD_IRQ=y CONFIG_SAMA5_PIOD_IRQ=y
# CONFIG_SAMA5_PIOE_IRQ is not set # CONFIG_SAMA5_PIOE_IRQ is not set
CONFIG_SAMA5_HAVE_GMAC=y
# CONFIG_SAMA5_HAVE_EMAC is not set
# #
# SPI device driver options # SPI device driver options
@ -239,6 +243,8 @@ CONFIG_SAMA5_BOOT_CS0FLASH=y
# #
CONFIG_SAMA5_ISRAM_HEAP=y CONFIG_SAMA5_ISRAM_HEAP=y
CONFIG_SAMA5_DDRCS_HEAP=y CONFIG_SAMA5_DDRCS_HEAP=y
CONFIG_SAMA5_DDRCS_HEAP_OFFSET=0
CONFIG_SAMA5_DDRCS_HEAP_SIZE=268435456
# #
# Architecture Options # Architecture Options
@ -389,7 +395,9 @@ CONFIG_SPI=y
CONFIG_SPI_EXCHANGE=y CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set # CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_BITBANG is not set # CONFIG_SPI_BITBANG is not set
# CONFIG_RTC is not set CONFIG_RTC=y
CONFIG_RTC_DATETIME=y
# CONFIG_RTC_ALARM is not set
# CONFIG_WATCHDOG is not set # CONFIG_WATCHDOG is not set
# CONFIG_ANALOG is not set # CONFIG_ANALOG is not set
# CONFIG_AUDIO_DEVICES is not set # CONFIG_AUDIO_DEVICES is not set
@ -405,6 +413,7 @@ CONFIG_MMCSD_HAVECARDDETECT=y
# CONFIG_MMCSD_SPI is not set # CONFIG_MMCSD_SPI is not set
CONFIG_ARCH_HAVE_SDIO=y CONFIG_ARCH_HAVE_SDIO=y
CONFIG_MMCSD_SDIO=y CONFIG_MMCSD_SDIO=y
# CONFIG_SDIO_PREFLIGHT is not set
# CONFIG_SDIO_MUXBUS is not set # CONFIG_SDIO_MUXBUS is not set
CONFIG_SDIO_BLOCKSETUP=y CONFIG_SDIO_BLOCKSETUP=y
CONFIG_MTD=y CONFIG_MTD=y
@ -644,7 +653,6 @@ CONFIG_BUILTIN_PROXY_STACKSIZE=1024
# #
# CONFIG_EXAMPLES_BUTTONS is not set # CONFIG_EXAMPLES_BUTTONS is not set
# CONFIG_EXAMPLES_CAN is not set # CONFIG_EXAMPLES_CAN is not set
# CONFIG_SYSTEM_COMPOSITE is not set
# CONFIG_EXAMPLES_CXXTEST is not set # CONFIG_EXAMPLES_CXXTEST is not set
# CONFIG_EXAMPLES_DHCPD is not set # CONFIG_EXAMPLES_DHCPD is not set
# CONFIG_EXAMPLES_ELF is not set # CONFIG_EXAMPLES_ELF is not set
@ -741,11 +749,13 @@ CONFIG_NSH_BUILTIN_APPS=y
# #
# Disable Individual commands # Disable Individual commands
# #
# CONFIG_NSH_DISABLE_ADDROUTE is not set
# CONFIG_NSH_DISABLE_CAT is not set # CONFIG_NSH_DISABLE_CAT is not set
# CONFIG_NSH_DISABLE_CD is not set # CONFIG_NSH_DISABLE_CD is not set
# CONFIG_NSH_DISABLE_CP is not set # CONFIG_NSH_DISABLE_CP is not set
# CONFIG_NSH_DISABLE_CMP is not set # CONFIG_NSH_DISABLE_CMP is not set
# CONFIG_NSH_DISABLE_DD is not set # CONFIG_NSH_DISABLE_DD is not set
# CONFIG_NSH_DISABLE_DELROUTE is not set
# CONFIG_NSH_DISABLE_ECHO is not set # CONFIG_NSH_DISABLE_ECHO is not set
# CONFIG_NSH_DISABLE_EXEC is not set # CONFIG_NSH_DISABLE_EXEC is not set
# CONFIG_NSH_DISABLE_EXIT is not set # CONFIG_NSH_DISABLE_EXIT is not set
@ -810,6 +820,14 @@ CONFIG_NSH_ARCHINIT=y
# System NSH Add-Ons # System NSH Add-Ons
# #
#
# USB CDC/ACM Device Commands
#
#
# USB Composite Device Commands
#
# #
# Custom Free Memory Command # Custom Free Memory Command
# #
@ -869,7 +887,7 @@ CONFIG_READLINE_ECHO=y
# #
# #
# USB Mass Storage Class # USB Mass Storage Device Commands
# #
CONFIG_SYSTEM_USBMSC=y CONFIG_SYSTEM_USBMSC=y
CONFIG_SYSTEM_USBMSC_NLUNS=1 CONFIG_SYSTEM_USBMSC_NLUNS=1

View File

@ -114,6 +114,15 @@ CONFIG_ARMV7A_TOOLCHAIN_CODESOURCERYW=y
# #
# ATSAMA5 Configuration Options # ATSAMA5 Configuration Options
# #
# CONFIG_SAMA5_HAVE_UART0 is not set
# CONFIG_SAMA5_HAVE_UART1 is not set
# CONFIG_SAMA5_HAVE_CAN0 is not set
# CONFIG_SAMA5_HAVE_CAN1 is not set
CONFIG_SAMA5_HAVE_LCDC=y
CONFIG_SAMA5_HAVE_GMAC=y
# CONFIG_SAMA5_HAVE_EMAC is not set
# CONFIG_SAMA5_HAVE_HSMCI2 is not set
# CONFIG_SAMA5_HAVE_TC1 is not set
# CONFIG_ARCH_CHIP_ATSAMA5D31 is not set # CONFIG_ARCH_CHIP_ATSAMA5D31 is not set
CONFIG_ARCH_CHIP_ATSAMA5D33=y CONFIG_ARCH_CHIP_ATSAMA5D33=y
# CONFIG_ARCH_CHIP_ATSAMA5D34 is not set # CONFIG_ARCH_CHIP_ATSAMA5D34 is not set
@ -125,10 +134,9 @@ CONFIG_ARCH_CHIP_ATSAMA5D33=y
# CONFIG_SAMA5_DBGU is not set # CONFIG_SAMA5_DBGU is not set
# CONFIG_SAMA5_PIT is not set # CONFIG_SAMA5_PIT is not set
# CONFIG_SAMA5_WDT is not set # CONFIG_SAMA5_WDT is not set
# CONFIG_SAMA5_RTC is not set
CONFIG_SAMA5_HSMC=y CONFIG_SAMA5_HSMC=y
# CONFIG_SAMA5_SMD is not set # CONFIG_SAMA5_SMD is not set
# CONFIG_SAMA5_UART0 is not set
# CONFIG_SAMA5_UART1 is not set
# CONFIG_SAMA5_USART0 is not set # CONFIG_SAMA5_USART0 is not set
CONFIG_SAMA5_USART1=y CONFIG_SAMA5_USART1=y
# CONFIG_SAMA5_USART2 is not set # CONFIG_SAMA5_USART2 is not set
@ -138,11 +146,9 @@ CONFIG_SAMA5_USART1=y
# CONFIG_SAMA5_TWI2 is not set # CONFIG_SAMA5_TWI2 is not set
# CONFIG_SAMA5_HSMCI0 is not set # CONFIG_SAMA5_HSMCI0 is not set
# CONFIG_SAMA5_HSMCI1 is not set # CONFIG_SAMA5_HSMCI1 is not set
# CONFIG_SAMA5_HSMCI2 is not set
# CONFIG_SAMA5_SPI0 is not set # CONFIG_SAMA5_SPI0 is not set
# CONFIG_SAMA5_SPI1 is not set # CONFIG_SAMA5_SPI1 is not set
# CONFIG_SAMA5_TC0 is not set # CONFIG_SAMA5_TC0 is not set
# CONFIG_SAMA5_TC1 is not set
# CONFIG_SAMA5_PWM is not set # CONFIG_SAMA5_PWM is not set
# CONFIG_SAMA5_ADC is not set # CONFIG_SAMA5_ADC is not set
# CONFIG_SAMA5_DMAC0 is not set # CONFIG_SAMA5_DMAC0 is not set
@ -164,8 +170,6 @@ CONFIG_SAMA5_USART1=y
# CONFIG_SAMA5_FUSE is not set # CONFIG_SAMA5_FUSE is not set
# CONFIG_SAMA5_MPDDRC is not set # CONFIG_SAMA5_MPDDRC is not set
# CONFIG_SAMA5_PIO_IRQ is not set # CONFIG_SAMA5_PIO_IRQ is not set
CONFIG_SAMA5_HAVE_GMAC=y
# CONFIG_SAMA5_HAVE_EMAC is not set
# #
# External Memory Configuration # External Memory Configuration
@ -600,11 +604,13 @@ CONFIG_NSH_BUILTIN_APPS=y
# #
# Disable Individual commands # Disable Individual commands
# #
# CONFIG_NSH_DISABLE_ADDROUTE is not set
# CONFIG_NSH_DISABLE_CAT is not set # CONFIG_NSH_DISABLE_CAT is not set
# CONFIG_NSH_DISABLE_CD is not set # CONFIG_NSH_DISABLE_CD is not set
# CONFIG_NSH_DISABLE_CP is not set # CONFIG_NSH_DISABLE_CP is not set
# CONFIG_NSH_DISABLE_CMP is not set # CONFIG_NSH_DISABLE_CMP is not set
# CONFIG_NSH_DISABLE_DD is not set # CONFIG_NSH_DISABLE_DD is not set
# CONFIG_NSH_DISABLE_DELROUTE is not set
# CONFIG_NSH_DISABLE_ECHO is not set # CONFIG_NSH_DISABLE_ECHO is not set
# CONFIG_NSH_DISABLE_EXEC is not set # CONFIG_NSH_DISABLE_EXEC is not set
# CONFIG_NSH_DISABLE_EXIT is not set # CONFIG_NSH_DISABLE_EXIT is not set