You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by bt...@apache.org on 2021/01/17 00:16:58 UTC

[incubator-nuttx] branch master updated: boards/stm32f4discovery: Add a LWL board profile and improve the README.txt

This is an automated email from the ASF dual-hosted git repository.

btashton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 0c5f71c  boards/stm32f4discovery: Add a LWL board profile and improve the README.txt
0c5f71c is described below

commit 0c5f71c849be3c4ba9b1be70e497b3ba9d2ed392
Author: Alan C. Assis <ac...@gmail.com>
AuthorDate: Sat Jan 16 19:17:08 2021 -0300

    boards/stm32f4discovery: Add a LWL board profile and improve the README.txt
---
 .../stm32/stm32f4discovery/configs/lwl/defconfig   | 51 ++++++++++++++++++++++
 tools/lwl/README.txt                               | 41 ++++++++++++++++-
 2 files changed, 91 insertions(+), 1 deletion(-)

diff --git a/boards/arm/stm32/stm32f4discovery/configs/lwl/defconfig b/boards/arm/stm32/stm32f4discovery/configs/lwl/defconfig
new file mode 100644
index 0000000..5bb7415
--- /dev/null
+++ b/boards/arm/stm32/stm32f4discovery/configs/lwl/defconfig
@@ -0,0 +1,51 @@
+#
+# This file is autogenerated: PLEASE DO NOT EDIT IT.
+#
+# You can use "make menuconfig" to make any modifications to the installed .config file.
+# You can then do "make savedefconfig" to generate a new defconfig file that includes your
+# modifications.
+#
+# 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_ARCH="arm"
+CONFIG_ARCH_BOARD="stm32f4discovery"
+CONFIG_ARCH_BOARD_STM32F4_DISCOVERY=y
+CONFIG_ARCH_BUTTONS=y
+CONFIG_ARCH_CHIP="stm32"
+CONFIG_ARCH_CHIP_STM32=y
+CONFIG_ARCH_CHIP_STM32F407VG=y
+CONFIG_ARCH_STACKDUMP=y
+CONFIG_ARM_LWL_CONSOLE=y
+CONFIG_BOARD_LATE_INITIALIZE=y
+CONFIG_BOARD_LOOPSPERMSEC=16717
+CONFIG_BUILTIN=y
+CONFIG_EXAMPLES_HELLO=y
+CONFIG_FS_PROCFS=y
+CONFIG_HAVE_CXX=y
+CONFIG_HAVE_CXXINITIALIZE=y
+CONFIG_INTELHEX_BINARY=y
+CONFIG_MAX_TASKS=16
+CONFIG_MM_REGIONS=2
+CONFIG_NFILE_DESCRIPTORS=8
+CONFIG_NSH_BUILTIN_APPS=y
+CONFIG_NSH_FILEIOSIZE=512
+CONFIG_NSH_LINELEN=64
+CONFIG_NSH_READLINE=y
+CONFIG_PREALLOC_TIMERS=4
+CONFIG_RAM_SIZE=114688
+CONFIG_RAM_START=0x20000000
+CONFIG_RAW_BINARY=y
+CONFIG_RR_INTERVAL=200
+CONFIG_SCHED_WAITPID=y
+CONFIG_SDCLONE_DISABLE=y
+CONFIG_STANDARD_SERIAL=y
+CONFIG_START_DAY=6
+CONFIG_START_MONTH=12
+CONFIG_START_YEAR=2011
+CONFIG_STM32_JTAG_SW_ENABLE=y
+CONFIG_STM32_PWR=y
+CONFIG_STM32_SPI1=y
+CONFIG_SYSTEM_NSH=y
+CONFIG_USER_ENTRYPOINT="nsh_main"
diff --git a/tools/lwl/README.txt b/tools/lwl/README.txt
index 68d5ae5..ba66331 100644
--- a/tools/lwl/README.txt
+++ b/tools/lwl/README.txt
@@ -56,7 +56,46 @@ Usage
 =====
 
 No special python modules are needed, it should be possible to run the
-application simply as shown below;
+application simply as shown below:
+
+In the first terminal execute the openocd command to connect to the board.
+Assuming that you already flashed to firmware (nuttx.bin) with the LWL
+console support. For stm32f4discovery board I use this command:
+
+------------------------------------------
+$ sudo openocd -f board/stm32f4discovery.cfg
+Open On-Chip Debugger  v0.10.0-esp32-20200526-6-g4c41a632 (2020-06-23-10:12)
+Licensed under GNU GPL v2
+For bug reports, read
+	http://openocd.org/doc/doxygen/bugs.html
+Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
+srst_only separate srst_nogate srst_open_drain connect_deassert_srst
+
+Info : Listening on port 6666 for tcl connections
+Info : Listening on port 4444 for telnet connections
+Info : clock speed 2000 kHz
+Info : STLINK V2J17S0 (API v2) VID:PID 0483:3748
+Info : Target voltage: 3.216252
+Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
+Info : Listening on port 3333 for gdb connections
+Info : accepting 'tcl' connection on tcp/6666
+invalid command name "ocd_mdw"
+0x20000000: 000000ff 
+
+0x20000000: 000000ff 
+
+0x20000004: 7216a318 
+
+0x2000000c: 994b5b1b 
+
+0x2000000c: 994b5b1b 
+
+0x2000000c: 994b5b1b
+...
+
+The "0x2000000c:..." will repeat all the time.
+
+Now in another terminal execute:
 
 ------------------------------------------
 $ ./ocdconsole.py