2018-03-26 18:37:32 +02:00
|
|
|
README
|
|
|
|
======
|
|
|
|
|
2019-12-16 19:35:45 +01:00
|
|
|
README for NuttX port to NRF52832-DK (PCA10040) boards.
|
2018-03-26 18:37:32 +02:00
|
|
|
|
|
|
|
Contents
|
|
|
|
========
|
|
|
|
|
|
|
|
- Status
|
2019-12-16 19:35:45 +01:00
|
|
|
- NRF52832 development kit (PCA10040)
|
2018-03-26 18:37:32 +02:00
|
|
|
- Configurations
|
|
|
|
|
|
|
|
Status
|
|
|
|
======
|
|
|
|
|
|
|
|
This is the current status of the NRF52 port:
|
|
|
|
|
|
|
|
- The basic OS test configuration and the basic NSH configurations
|
|
|
|
are present and fully verified. This includes: SYSTICK system time,
|
|
|
|
pin and GPIO configuration, and serial console support.
|
|
|
|
|
2019-12-16 19:35:45 +01:00
|
|
|
NRF52832 development kit (PCA10040)
|
|
|
|
===================================
|
2018-11-18 14:51:24 +01:00
|
|
|
|
|
|
|
Console
|
|
|
|
-------
|
|
|
|
|
|
|
|
The PCA10040 default console is the UART0.
|
|
|
|
|
|
|
|
The PCA10040 does not have RS-232 drivers or serial connectors on board.
|
2019-12-16 19:35:45 +01:00
|
|
|
UART0 is connected to the virtual COM port:
|
2018-11-18 14:51:24 +01:00
|
|
|
|
|
|
|
-------- -----
|
|
|
|
Signal PIN
|
|
|
|
-------- -----
|
2019-12-16 19:35:45 +01:00
|
|
|
UART0-TX P0.06
|
|
|
|
UART0-RX P0.08
|
2018-03-26 18:37:32 +02:00
|
|
|
|
2018-11-18 14:51:24 +01:00
|
|
|
LEDs
|
2018-03-26 18:37:32 +02:00
|
|
|
----
|
|
|
|
The PCA10040 has 4 user-controllable LEDs
|
|
|
|
|
|
|
|
LED MCU
|
2019-12-16 19:35:45 +01:00
|
|
|
LED1 PIN0-17
|
|
|
|
LED2 PIN0-18
|
|
|
|
LED3 PIN0-19
|
|
|
|
LED4 PIN0-20
|
2018-03-26 18:37:32 +02:00
|
|
|
|
|
|
|
A low output illuminates the LED.
|
|
|
|
|
2018-11-18 14:51:24 +01:00
|
|
|
Pushbuttons
|
|
|
|
-----------
|
|
|
|
To be provided
|
2018-03-26 18:37:32 +02:00
|
|
|
|
2018-11-18 14:51:24 +01:00
|
|
|
Memory Map
|
|
|
|
==========
|
2018-03-26 18:37:32 +02:00
|
|
|
|
2018-11-18 14:51:24 +01:00
|
|
|
Block Start Length
|
|
|
|
Name Address
|
|
|
|
--------------------- ---------- ------
|
|
|
|
FLASH 0x00000000 512K
|
|
|
|
RAM 0x20000000 64K
|
2018-03-26 18:37:32 +02:00
|
|
|
|
|
|
|
Configurations
|
|
|
|
==============
|
|
|
|
|
2018-11-18 14:51:24 +01:00
|
|
|
Each configuration is maintained in a sub-directory and can be selected as
|
|
|
|
follow:
|
2018-03-26 18:37:32 +02:00
|
|
|
|
2019-12-16 19:35:45 +01:00
|
|
|
tools/configure.sh nrf52832-dk:<subdir>
|
2018-03-26 18:37:32 +02:00
|
|
|
|
|
|
|
Where <subdir> is one of the following:
|
|
|
|
|
2019-12-16 19:35:45 +01:00
|
|
|
nsh:
|
2018-11-18 14:51:24 +01:00
|
|
|
-----------
|
2018-03-26 18:37:32 +02:00
|
|
|
This configuration is the NuttShell (NSH) example at examples/nsh/.
|
|
|
|
|
|
|
|
NOTES:
|
|
|
|
|
|
|
|
1. This configuration uses the mconf-based configuration tool. To
|
|
|
|
change this configurations using that tool, you should:
|
|
|
|
|
|
|
|
a. Build and install the kconfig-mconf tool. See nuttx/README.txt
|
|
|
|
see additional README.txt files in the NuttX tools repository.
|
|
|
|
|
|
|
|
b. Execute 'make menuconfig' in nuttx/ in order to start the
|
|
|
|
reconfiguration process.
|
2018-04-20 15:47:19 +02:00
|
|
|
|
2019-12-16 19:35:45 +01:00
|
|
|
wdog:
|
2018-11-18 14:51:24 +01:00
|
|
|
------------
|
2018-04-20 15:47:19 +02:00
|
|
|
This configuration is a simple NSH-based test of the nRF52 watchdog
|
|
|
|
timer driver using the test at apps/examples/watchdog.
|
2018-11-18 14:51:24 +01:00
|
|
|
|
|
|
|
CONFIG_ARCH_LEDS
|
|
|
|
----------------
|
|
|
|
If CONFIG_ARCH_LEDS is defined, the LED will be controlled as follows
|
|
|
|
for NuttX debug functionality (where NC means "No Change").
|
|
|
|
|
|
|
|
TBD!
|
|
|
|
|
|
|
|
If CONFIG_ARCH_LEDS is not defined, then the LEDs are completely under
|
|
|
|
control of the application. The following interfaces are then available
|
|
|
|
for application control of the LEDs:
|
|
|
|
|
2020-06-05 12:08:02 +02:00
|
|
|
uint32_t board_userled_initialize(void);
|
2018-11-18 14:51:24 +01:00
|
|
|
void board_userled(int led, bool ledon);
|
2020-06-06 12:35:44 +02:00
|
|
|
void board_userled_all(uint32_t ledset);
|