2019-08-21 01:02:29 +02:00
|
|
|
README
|
|
|
|
======
|
|
|
|
|
2021-09-21 14:55:44 +02:00
|
|
|
This directory holds the port to the NXP S32K148EVB-Q176 development board.
|
2019-08-21 01:02:29 +02:00
|
|
|
|
|
|
|
Contents
|
|
|
|
========
|
|
|
|
|
|
|
|
o Status
|
|
|
|
o Serial Console
|
|
|
|
o LEDs and Buttons
|
|
|
|
o OpenSDA Notes
|
|
|
|
o Configurations
|
|
|
|
|
|
|
|
Status
|
|
|
|
======
|
|
|
|
|
2019-08-24 21:06:43 +02:00
|
|
|
2019-08-20: NSH configuration created but entirely untested.
|
2021-09-14 17:45:06 +02:00
|
|
|
|
2020-02-23 09:50:23 +01:00
|
|
|
2019-08-24: NSH configuration verified running from FLASH.
|
2019-08-24 21:06:43 +02:00
|
|
|
|
2021-09-14 17:45:06 +02:00
|
|
|
2019-10-19: FLASH configuration options were added.
|
|
|
|
|
|
|
|
2020-06-15: Added FlexCAN driver with SocketCAN support to the S32K1XX
|
|
|
|
arch. This feature been tested extensively with the S32K148EVB.
|
|
|
|
|
|
|
|
2020-06-16: Added Emulated EEPROM driver and initialization.
|
|
|
|
|
|
|
|
TODO: Need to calibrate the delay loop. The current value of
|
2019-08-24 21:06:43 +02:00
|
|
|
CONFIG_BOARD_LOOPSPERMSEC is a bogus value retained from a copy-paste
|
|
|
|
(see apps/examples/calib_udelay).
|
2019-08-21 01:02:29 +02:00
|
|
|
|
|
|
|
Serial Console
|
|
|
|
==============
|
|
|
|
|
|
|
|
By default, the serial console will be provided on the OpenSDA VCOM port:
|
|
|
|
|
|
|
|
OpenSDA UART TX PTC7 (LPUART1_TX)
|
|
|
|
OpenSDA UART RX PTC6 (LPUART1_RX)
|
|
|
|
|
2021-09-14 17:45:06 +02:00
|
|
|
USB drivers for the PEmicro CDC Serial Port are available here:
|
2019-08-21 01:02:29 +02:00
|
|
|
http://www.pemicro.com/opensda/
|
|
|
|
|
|
|
|
LEDs and Buttons
|
|
|
|
================
|
|
|
|
|
|
|
|
LEDs
|
|
|
|
----
|
|
|
|
The S32K148EVB has one RGB LED:
|
|
|
|
|
2021-09-14 17:45:06 +02:00
|
|
|
RedLED PTE21 (FTM4 CH1)
|
|
|
|
GreenLED PTE22 (FTM4 CH2)
|
|
|
|
BlueLED PTE23 (FTM4 CH3)
|
2019-08-21 01:02:29 +02:00
|
|
|
|
2019-08-22 20:12:22 +02:00
|
|
|
An output of '1' illuminates the LED.
|
|
|
|
|
2019-08-21 01:02:29 +02:00
|
|
|
If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs in
|
|
|
|
any way. The following definitions are used to access individual RGB
|
2021-09-14 17:45:06 +02:00
|
|
|
components (see s32k148evb.h):
|
|
|
|
|
|
|
|
GPIO_LED_R
|
|
|
|
GPIO_LED_G
|
|
|
|
GPIO_LED_B
|
2019-08-21 01:02:29 +02:00
|
|
|
|
2021-09-14 17:45:06 +02:00
|
|
|
The RGB components could, alternatively, be controlled through PWM using
|
2019-08-21 01:02:29 +02:00
|
|
|
the common RGB LED driver.
|
|
|
|
|
|
|
|
If CONFIG_ARCH_LEDs is defined, then NuttX will control the LEDs on board
|
2020-02-07 13:53:40 +01:00
|
|
|
the S32K148EVB. The following definitions describe how NuttX controls the
|
2019-08-21 01:02:29 +02:00
|
|
|
LEDs:
|
|
|
|
|
|
|
|
==========================================+========+========+=========
|
|
|
|
RED GREEN BLUE
|
|
|
|
==========================================+========+========+=========
|
|
|
|
|
|
|
|
LED_STARTED NuttX has been started OFF OFF OFF
|
|
|
|
LED_HEAPALLOCATE Heap has been allocated OFF OFF ON
|
|
|
|
LED_IRQSENABLED Interrupts enabled OFF OFF ON
|
|
|
|
LED_STACKCREATED Idle stack created OFF ON OFF
|
|
|
|
LED_INIRQ In an interrupt (no change)
|
|
|
|
LED_SIGNAL In a signal handler (no change)
|
|
|
|
LED_ASSERTION An assertion failed (no change)
|
|
|
|
LED_PANIC The system has crashed FLASH OFF OFF
|
2021-09-14 17:45:06 +02:00
|
|
|
LED_IDLE S32K148 in sleep mode (no change)
|
2019-08-21 01:02:29 +02:00
|
|
|
==========================================+========+========+=========
|
|
|
|
|
|
|
|
Buttons
|
|
|
|
-------
|
|
|
|
The S32K148EVB supports two buttons:
|
|
|
|
|
|
|
|
SW3 PTC12
|
|
|
|
SW4 PTC13
|
|
|
|
|
|
|
|
OpenSDA Notes
|
|
|
|
=============
|
|
|
|
|
2021-09-14 17:45:06 +02:00
|
|
|
- USB drivers for the PEmicro CDC Serial Port are available here:
|
2019-08-21 01:02:29 +02:00
|
|
|
http://www.pemicro.com/opensda/
|
|
|
|
|
|
|
|
- The drag'n'drog interface expects files in .srec format.
|
|
|
|
|
2021-09-14 17:45:06 +02:00
|
|
|
- Using Segger J-Link: Easy... but remember to use the 20-pin SWD
|
|
|
|
connector J10 near the ethernet connector and not the 10-pin OpenSDA
|
|
|
|
connector J20 closer to the OpenSDA USB connector J24.
|
2019-08-21 01:02:29 +02:00
|
|
|
|
|
|
|
Configurations
|
|
|
|
==============
|
|
|
|
|
|
|
|
Common Information
|
|
|
|
------------------
|
2021-09-14 17:45:06 +02:00
|
|
|
Each S32K148EVB configuration is maintained in a sub-directory and can be
|
|
|
|
selected as follows:
|
2019-08-21 01:02:29 +02:00
|
|
|
|
|
|
|
tools/configure.sh s32k148evb:<subdir>
|
|
|
|
|
2021-09-14 17:45:06 +02:00
|
|
|
Where <subdir> is one of the sub-directories listed in the next paragraph.
|
2019-08-21 01:02:29 +02:00
|
|
|
|
|
|
|
NOTES (common for all configurations):
|
|
|
|
|
2021-09-14 17:45:06 +02:00
|
|
|
1. This configuration uses the mconf-based configuration tool. To change
|
|
|
|
this configuration using that tool, you should:
|
2019-08-21 01:02:29 +02:00
|
|
|
|
2021-09-14 17:45:06 +02:00
|
|
|
a. Build and install the kconfig-mconf tool. See nuttx/README.txt.
|
|
|
|
Also see additional README.txt files in the NuttX tools repository.
|
2019-08-21 01:02:29 +02:00
|
|
|
|
|
|
|
b. Execute 'make menuconfig' in nuttx/ in order to start the
|
|
|
|
reconfiguration process.
|
|
|
|
|
|
|
|
2. Unless otherwise stated, the serial console used is LPUART1 at
|
|
|
|
115,200 8N1. This corresponds to the OpenSDA VCOM port.
|
|
|
|
|
|
|
|
Configuration Sub-directories
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
nsh:
|
|
|
|
---
|
|
|
|
Configures the NuttShell (nsh) located at apps/examples/nsh. Support
|
2021-09-14 17:45:06 +02:00
|
|
|
for builtin applications is enabled, but in the base configuration the
|
|
|
|
only application selected is the "Hello, World!" example.
|