From d00441869f503159091778dc78e7c970b85bd5da Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Sat, 28 Apr 2018 16:29:44 -0600 Subject: [PATCH] configs/nucleo-l476rg: Add nxdemo configuration to nucleo-l476rg using PCD8544 --- configs/nucleo-l476rg/README.txt | 30 +++++------ configs/nucleo-l476rg/nxdemo/defconfig | 73 ++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 16 deletions(-) create mode 100644 configs/nucleo-l476rg/nxdemo/defconfig diff --git a/configs/nucleo-l476rg/README.txt b/configs/nucleo-l476rg/README.txt index d3312ff354..0f971123c1 100644 --- a/configs/nucleo-l476rg/README.txt +++ b/configs/nucleo-l476rg/README.txt @@ -242,12 +242,10 @@ NuttX EABI "buildroot" Toolchain 1. You must have already configured Nuttx in /nuttx. - $ (cd tools; ./configure.sh nucleo-f4x1re/f401-nsh) + $ tools/configure.sh nucleo-l476rg/nsh $ make qconfig $ V=1 make context all 2>&1 | tee mout - Use the f411-nsh configuration if you have the Nucleo-F411RE board. - 2. Download the latest buildroot package into 3. unpack the buildroot tarball. The resulting directory may @@ -310,9 +308,9 @@ NXFLAT Toolchain mbed ==== - The Nucleo-F401RE includes boot loader from mbed: + The Nucleo-L476RG includes boot loader from mbed: - https://mbed.org/platforms/ST-Nucleo-F401RE/ + https://mbed.org/platforms/ST-Nucleo-L476RG/ https://mbed.org/handbook/Homepage Using the mbed loader: @@ -341,7 +339,7 @@ Hardware LED2=D6=PB_10 I2C1_SDA=D14=PB_9 Probe D7=PA_8 I2C1_SCL=D15=PB_8 Probe - From: https://mbed.org/platforms/ST-Nucleo-F401RE/ + From: https://mbed.org/platforms/ST-Nucleo-L476RG/ Buttons ------- @@ -350,9 +348,9 @@ Hardware LEDs ---- - The Nucleo F401RE and Nucleo F411RE provide a single user LED, LD2. LD2 - is the green LED connected to Arduino signal D13 corresponding to MCU I/O - PA5 (pin 21) or PB13 (pin 34) depending on the STM32target. + The Nucleo L476RG provides a single user LED, LD2. LD2 is the green LED + connected to Arduino signal D13 corresponding to MCU I/O PA5 (pin 21) or + PB13 (pin 34) depending on the STM32target. - When the I/O is HIGH value, the LED is on. - When the I/O is LOW, the LED is off. @@ -543,7 +541,7 @@ Shields NOTE: Button F cannot be used with the default USART1 configuration because PA9 is configured for USART1_RX by default. Use select different USART1 pins in the board.h file or select a different - USART or select CONFIG_NUCLEO_F401RE_AJOY_MINBUTTONS which will + USART or select CONFIG_NUCLEO_L476RG_AJOY_MINBUTTONS which will eliminate all but buttons A, B, and C. Itead Joystick Signal interpretation: @@ -586,7 +584,7 @@ Shields with a single ADC. Right now, only one axis is being converted. - There is conflicts with some of the Arduino data pins and the default USART1 configuration. I am currently running with USART1 - but with CONFIG_NUCLEO_F401RE_AJOY_MINBUTTONS to eliminate the + but with CONFIG_NUCLEO_L476RG_AJOY_MINBUTTONS to eliminate the conflict. - Current showstopper: I appear to be getting infinite interrupts as soon as joystick button interrupts are enabled. @@ -594,10 +592,10 @@ Shields Configurations ============== - f401-nsh: + nsh: --------- Configures the NuttShell (nsh) located at apps/examples/nsh for the - Nucleo-F401RE board. The Configuration enables the serial interfaces + Nucleo-L476RG board. The Configuration enables the serial interfaces on UART2. Support for builtin applications is enabled, but in the base configuration no builtin applications are selected (see NOTES below). @@ -631,7 +629,7 @@ Configurations Pin 20 GND Pin 8 U5V - f411-nsh + nxdemo -------- - This configuration is the same as the f401-nsh configuration, except - that it is configured to support the Nucleo-F411RE. + This is an NSH configuration that enables the NX graphics demo at + apps/examples/nxdemo. It uses the PCD8544 display on SPI1. diff --git a/configs/nucleo-l476rg/nxdemo/defconfig b/configs/nucleo-l476rg/nxdemo/defconfig new file mode 100644 index 0000000000..82adcf0e4c --- /dev/null +++ b/configs/nucleo-l476rg/nxdemo/defconfig @@ -0,0 +1,73 @@ +# CONFIG_ARCH_FPU is not set +# CONFIG_NSH_ARGCAT is not set +# CONFIG_NSH_CMDOPT_HEXDUMP is not set +# CONFIG_NSH_CMDPARMS is not set +# CONFIG_NSH_DISABLE_IFCONFIG is not set +# CONFIG_NSH_DISABLE_PS is not set +# CONFIG_NX_DISABLE_1BPP is not set +CONFIG_ARCH_BOARD_NUCLEO_L476RG=y +CONFIG_ARCH_BOARD="nucleo-l476rg" +CONFIG_ARCH_CHIP_STM32L4=y +CONFIG_ARCH_CHIP_STM32L476RG=y +CONFIG_ARCH_INTERRUPTSTACK=2048 +CONFIG_ARCH_STACKDUMP=y +CONFIG_ARCH="arm" +CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYL=y +CONFIG_BOARD_LOOPSPERMSEC=8499 +CONFIG_BUILTIN=y +CONFIG_DEBUG_SYMBOLS=y +CONFIG_DISABLE_POLL=y +CONFIG_EXAMPLES_NSH_CXXINITIALIZE=y +CONFIG_EXAMPLES_NSH=y +CONFIG_EXAMPLES_NXHELLO_BPP=1 +CONFIG_EXAMPLES_NXHELLO=y +CONFIG_HAVE_CXX=y +CONFIG_HAVE_CXXINITIALIZE=y +CONFIG_INTELHEX_BINARY=y +CONFIG_LCD_FRAMEBUFFER=y +CONFIG_LCD_PCD8544=y +CONFIG_LCD=y +CONFIG_MAX_TASKS=16 +CONFIG_MAX_WDOGPARMS=2 +CONFIG_MM_REGIONS=2 +CONFIG_MQ_MAXMSGSIZE=64 +CONFIG_NFILE_DESCRIPTORS=8 +CONFIG_NFILE_STREAMS=8 +CONFIG_NSH_ARCHINIT=y +CONFIG_NSH_BUILTIN_APPS=y +CONFIG_NSH_FILEIOSIZE=512 +CONFIG_NSH_LINELEN=64 +CONFIG_NSH_READLINE=y +CONFIG_NX_BLOCKING=y +CONFIG_NX=y +CONFIG_NXFONT_MONO5X8=y +CONFIG_PREALLOC_MQ_MSGS=4 +CONFIG_PREALLOC_TIMERS=4 +CONFIG_PREALLOC_WDOGS=8 +CONFIG_RAM_SIZE=98304 +CONFIG_RAM_START=0x20000000 +CONFIG_RAW_BINARY=y +CONFIG_RR_INTERVAL=200 +CONFIG_RTC_ALARM=y +CONFIG_RTC_DATETIME=y +CONFIG_RTC_DRIVER=y +CONFIG_RTC_IOCTL=y +CONFIG_RTC_NALARMS=2 +CONFIG_RTC=y +CONFIG_SCHED_WAITPID=y +CONFIG_SDCLONE_DISABLE=y +CONFIG_SPI_CMDDATA=y +CONFIG_START_YEAR=2017 +CONFIG_STM32L4_DISABLE_IDLE_SLEEP_DURING_DEBUG=y +CONFIG_STM32L4_DMA1=y +CONFIG_STM32L4_DMA2=y +CONFIG_STM32L4_PWR=y +CONFIG_STM32L4_RNG=y +CONFIG_STM32L4_SAI1PLL=y +CONFIG_STM32L4_SPI1=y +CONFIG_STM32L4_SRAM2_HEAP=y +CONFIG_STM32L4_USART2=y +CONFIG_TASK_NAME_SIZE=0 +CONFIG_USART2_SERIAL_CONSOLE=y +CONFIG_USER_ENTRYPOINT="nsh_main" +CONFIG_WDOG_INTRESERVE=1