nuttx/boards/arm/cxd56xx/spresense
Alin Jerpelea 7420f4dc5e Merged in alinjerpelea/nuttx (pull request #1038)
cxd56xx: various fixes

* arch: arm: cxd56xx: Support to set any i2c frequency

    This commit supports to be able to set the i2c frequency other than just
    100 or 400 Hz.

* arch: arm: cxd56xx: Enable SD clock during access to SD card

    - Improve GNSS low sensitivity with SD card inserted
    - Reduce power consumption by stopping SD clock

* arch: arm: cxd56xx: Do PANIC() when cpu rx fifo is overflow

    If CPU Rx FIFO is overflow, it's fatal error for system. In such a case,
    this commit changes to allow the user to notice by calling PANIC() for
    debuggability enhancement.

* arch: arm: cxd56xx: Fix compile error in sdhci debug code

* arch: arm: cxd56xx: Remove assertion in cpu tx queue

    When CPU Tx queue is overflow, it returns -EAGAIN instead of assertion
    to be able to retry.

* arch: arm: cxd56xx: Add configurations for cpu fifo elements

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: Fix LPADC configuration

    LPADC options defined in the same symbol name, so kconfig tool
    couldn't process them correctly.

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: Update loader and gnssfw ver.17660

* arch: arm: cxd56xx: Fix hang-up when error interrupt occurs

    Fix a problem that error interrupts are not cleared.

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: Fix sdhci semaphore

    Fix inital value of semaphore in sdhci drive.r

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* boards: cxd56xx: Treat the initial value of LNA power as off

    LNA is always turned power on when GNSS is started. So it is desirable
    that the initial value of the LNA power is off by default.

* boards: cxd56xx: Remove initial setting of PIN_AP_CLK

    PIN_AP_CLK is used as a port selector of SDIO expander on the extension
    board, and is set output low in initalizing. Therefore, this pin cannot
    be used for other board. To avoid this restriction, remove this initial
    operation because this pin is pulled down by default on the extension
    board.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-09-26 11:28:26 +00:00
..
configs Merged in alinjerpelea/nuttx (pull request #1031) 2019-09-17 16:58:09 +00:00
include Merged in alinjerpelea/nuttx (pull request #1033) 2019-09-18 11:42:35 +00:00
scripts Linker scripts: Fix some alignment problems. 2019-09-15 18:06:36 -06:00
src Merged in alinjerpelea/nuttx (pull request #1038) 2019-09-26 11:28:26 +00:00
Kconfig boards/arm/cxd56xx/spresense/Kconfig: Add a configuration to select if an extension board is attached to the SPresence. If there is no extension board attached, the SPresense may run in a low-power mode by default (as determined by the CONFIG_CXD56_CUSTOM_PINCONFIG option). If an extension board is present, then the SPresense will need to run at a higher power mode, selected by the new CONFIG_SPRESENSE_EXTENSION option. 2019-09-17 05:41:10 -06:00
README.txt Merged in alinjerpelea/nuttx (pull request #967) 2019-08-07 20:49:39 +00:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

README
======

Spresense is a compact development board based on Sonys power-efficient
multicore microcontroller CXD5602. It allows developers to create IoT
applications in a very short time and is supported by the Arduino IDE as well
as the more advanced NuttX based SDK.

- Integrated GPS
  The embedded GNSS with support for GPS, QZSS and GLONASS enables applications
  where tracking is required.
- Hi-res audio output and multi mic inputs
  Advanced 192kHz/24 bit audio codec and amplifier for audio output, and
  support for up to 8 mic input channels.
- Multicore microcontroller
  Spresense is powered by Sony's CXD5602 microcontroller (ARM® Cortex®-M4F × 6
  cores), with a clock speed of 156 MHz.

Refer to https://developer.sony.com/develop/spresense/ for further information
about this board.

Configuration sub-directories
-----------------------------

  wifi

    This is a configuration for Spresense + Wi-Fi addon (Telit GS2200M) module.
    With this configuration, (1) you can connect Spresense to an existing Wi-Fi
    access point (2.4GHz 802.11b/g/n are supported) or (2) you can make
    Spresense as a Wi-Fi access point. In both cases, you can login to the
    Spresense with telnet, also access to a webserver (NOTE: this case you need
    an extension board with microSDHC card)

    (1) Station (STA) mode

    To run the module in Station mode (i.e. to connect to an existing Wi-Fi
    access point), You need to specify SSID with passcode.

      nsh> gs2200m ssid-to-connect passcode &

    If the connection succeeded, IP address is statically assigned.

      nsh> ifconfig
      eth0    Link encap:Ethernet HWaddr 3c:95:09:00:69:92 at UP
      inet    addr:10.0.0.2 DRaddr:10.0.0.1 Mask:255.255.255.0

    Then, you can run DHCP client (renew command) to obtain IP address as well
    as DNS server information. (NOTE: In current configuration, DHCP client on
    GS2200M is disabled. If you enable the internal DHCP client, you can not
    use DNS client on NuttX)

      nsh> renew eth0 &
      renew [6:100]
      nsh> ifconfig
      eth0    Link encap:Ethernet HWaddr 3c:95:09:00:69:92 at UP
      inet    addr:192.168.1.101 DRaddr:192.168.1.1 Mask:255.255.255.0

    Now, you can run telnetd and webserver on Spresense.

      nsh> telnetd &
      telnetd [7:100]
      nsh> webserver &
      webserver [9:100]
      nsh> Starting webserver

    Also, you can run NTP client to adjust the RTC on Spresense. (NOTE: we
    assume your network can access to pool.ntp.org, otherwise, you can specify
    CONFIG_NETUTILS_NTPCLIENT_SERVER)

      nsh> date
      Jan 01 00:00:36 1970
      nsh> ntpcstart
      Started the NTP daemon as PID=11
      nsh> date
      Jul 30 06:42:13 2019

    (2) Acess Point (AP) mode

    To run the module in AP mode, you need to specify SSID to advertise and
    WEP-key. (NOTE: in AP mode, you can also specify channel number to use)

      nsh> gs2200m -a ssid-to-advertise 10-hex-digits-wep-key &

    If the module was initialized in AP mode, you can see a new IP address is
    assigned.

      nsh> ifconfig
      eth0    Link encap:Ethernet HWaddr 3c:95:09:00:69:93 at UP
      inet    addr:192.168.11.1 DRaddr:192.168.11.1 Mask:255.255.255.0

    Now you can connect your PC to the AP with the above SSID and WEP-key
    which you specified.