You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/02/25 03:03:06 UTC
(nuttx) branch master updated: risc-v/k230: update LOOPSPERMSEC enable DEBUG_FEATURES
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 61b897f412 risc-v/k230: update LOOPSPERMSEC enable DEBUG_FEATURES
61b897f412 is described below
commit 61b897f412b19885adeef60ffe8646837f446aef
Author: Yanfeng Liu <yf...@qq.com>
AuthorDate: Sat Feb 24 11:34:06 2024 +0800
risc-v/k230: update LOOPSPERMSEC enable DEBUG_FEATURES
This contains minor updates for LOOPSPERMSEC and DEBUG_FEATURES in
existing configs.
Signed-off-by: Yanfeng Liu <yf...@qq.com>
---
boards/risc-v/k230/canmv230/configs/knsh/defconfig | 4 ++--
boards/risc-v/k230/canmv230/configs/master/defconfig | 2 +-
boards/risc-v/k230/canmv230/configs/nsbi/defconfig | 4 ++--
boards/risc-v/k230/canmv230/configs/nsh/defconfig | 6 ++++--
boards/risc-v/k230/canmv230/configs/pnsh/defconfig | 5 +++--
boards/risc-v/k230/canmv230/configs/remote/defconfig | 2 +-
boards/risc-v/k230/canmv230/scripts/ld-flat.script | 5 ++++-
7 files changed, 17 insertions(+), 11 deletions(-)
diff --git a/boards/risc-v/k230/canmv230/configs/knsh/defconfig b/boards/risc-v/k230/canmv230/configs/knsh/defconfig
index bbefea09ae..9771f61407 100644
--- a/boards/risc-v/k230/canmv230/configs/knsh/defconfig
+++ b/boards/risc-v/k230/canmv230/configs/knsh/defconfig
@@ -43,7 +43,7 @@ CONFIG_ARCH_USE_MPU=y
CONFIG_ARCH_USE_S_MODE=y
CONFIG_BINFMT_ELF_EXECUTABLE=y
CONFIG_BOARD_LATE_INITIALIZE=y
-CONFIG_BOARD_LOOPSPERMSEC=6366
+CONFIG_BOARD_LOOPSPERMSEC=53291
CONFIG_BUILD_KERNEL=y
CONFIG_DEBUG_ASSERTIONS=y
CONFIG_DEBUG_FEATURES=y
@@ -72,7 +72,7 @@ CONFIG_NSH_FILEIOSIZE=512
CONFIG_NSH_FILE_APPS=y
CONFIG_NSH_READLINE=y
CONFIG_PATH_INITIAL="/system/bin"
-CONFIG_RAM_SIZE=132116480
+CONFIG_RAM_SIZE=16777216
CONFIG_RAM_START=0x8200000
CONFIG_RAW_BINARY=y
CONFIG_READLINE_CMD_HISTORY=y
diff --git a/boards/risc-v/k230/canmv230/configs/master/defconfig b/boards/risc-v/k230/canmv230/configs/master/defconfig
index f287e449c4..371278b007 100644
--- a/boards/risc-v/k230/canmv230/configs/master/defconfig
+++ b/boards/risc-v/k230/canmv230/configs/master/defconfig
@@ -44,7 +44,7 @@ CONFIG_ARCH_USE_S_MODE=y
CONFIG_BINFMT_ELF_EXECUTABLE=y
CONFIG_BLK_RPMSG_SERVER=y
CONFIG_BOARD_LATE_INITIALIZE=y
-CONFIG_BOARD_LOOPSPERMSEC=6366
+CONFIG_BOARD_LOOPSPERMSEC=53291
CONFIG_BUILD_KERNEL=y
CONFIG_DEBUG_ASSERTIONS=y
CONFIG_DEBUG_FEATURES=y
diff --git a/boards/risc-v/k230/canmv230/configs/nsbi/defconfig b/boards/risc-v/k230/canmv230/configs/nsbi/defconfig
index c9eee7bf4b..b4578de72f 100644
--- a/boards/risc-v/k230/canmv230/configs/nsbi/defconfig
+++ b/boards/risc-v/k230/canmv230/configs/nsbi/defconfig
@@ -43,7 +43,7 @@ CONFIG_ARCH_USE_MPU=y
CONFIG_ARCH_USE_S_MODE=y
CONFIG_BINFMT_ELF_EXECUTABLE=y
CONFIG_BOARD_LATE_INITIALIZE=y
-CONFIG_BOARD_LOOPSPERMSEC=6366
+CONFIG_BOARD_LOOPSPERMSEC=53291
CONFIG_BUILD_KERNEL=y
CONFIG_DEBUG_ASSERTIONS=y
CONFIG_DEBUG_FEATURES=y
@@ -75,7 +75,7 @@ CONFIG_NUTTSBI=y
CONFIG_NUTTSBI_MTIMECMP_BASE=0xf04004000
CONFIG_NUTTSBI_MTIME_BASE=0xf0400bff8
CONFIG_PATH_INITIAL="/system/bin"
-CONFIG_RAM_SIZE=132116480
+CONFIG_RAM_SIZE=16777216
CONFIG_RAM_START=0x8080000
CONFIG_RAW_BINARY=y
CONFIG_READLINE_CMD_HISTORY=y
diff --git a/boards/risc-v/k230/canmv230/configs/nsh/defconfig b/boards/risc-v/k230/canmv230/configs/nsh/defconfig
index 4ba26d61b1..509d68fde6 100644
--- a/boards/risc-v/k230/canmv230/configs/nsh/defconfig
+++ b/boards/risc-v/k230/canmv230/configs/nsh/defconfig
@@ -26,10 +26,12 @@ CONFIG_ARCH_CHIP_K230=y
CONFIG_ARCH_INTERRUPTSTACK=2048
CONFIG_ARCH_RISCV=y
CONFIG_ARCH_STACKDUMP=y
-CONFIG_BOARD_LOOPSPERMSEC=6366
+CONFIG_BOARD_LOOPSPERMSEC=53291
CONFIG_BUILTIN=y
+CONFIG_DEBUG_FEATURES=y
CONFIG_DEV_ZERO=y
CONFIG_ELF=y
+CONFIG_EXAMPLES_CALIB_UDELAY=y
CONFIG_EXAMPLES_HELLO=y
CONFIG_FS_PROCFS=y
CONFIG_IDLETHREAD_STACKSIZE=2048
@@ -46,7 +48,7 @@ CONFIG_NSH_BUILTIN_APPS=y
CONFIG_NSH_FILEIOSIZE=512
CONFIG_NSH_READLINE=y
CONFIG_PATH_INITIAL="/system/bin"
-CONFIG_RAM_SIZE=134213632
+CONFIG_RAM_SIZE=16777216
CONFIG_RAM_START=0x8000000
CONFIG_RAW_BINARY=y
CONFIG_READLINE_CMD_HISTORY=y
diff --git a/boards/risc-v/k230/canmv230/configs/pnsh/defconfig b/boards/risc-v/k230/canmv230/configs/pnsh/defconfig
index abc816d536..c253a47975 100644
--- a/boards/risc-v/k230/canmv230/configs/pnsh/defconfig
+++ b/boards/risc-v/k230/canmv230/configs/pnsh/defconfig
@@ -27,9 +27,10 @@ CONFIG_ARCH_INTERRUPTSTACK=2048
CONFIG_ARCH_RISCV=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARCH_USE_MPU=y
-CONFIG_BOARD_LOOPSPERMSEC=6366
+CONFIG_BOARD_LOOPSPERMSEC=53291
CONFIG_BUILD_PROTECTED=y
CONFIG_BUILTIN=y
+CONFIG_DEBUG_FEATURES=y
CONFIG_DEV_ZERO=y
CONFIG_ELF=y
CONFIG_EXAMPLES_HELLO=y
@@ -50,7 +51,7 @@ CONFIG_NSH_READLINE=y
CONFIG_NUTTX_USERSPACE=0x8040000
CONFIG_PASS1_BUILDIR="boards/risc-v/k230/canmv230/kernel"
CONFIG_PATH_INITIAL="/system/bin"
-CONFIG_RAM_SIZE=134213632
+CONFIG_RAM_SIZE=16777216
CONFIG_RAM_START=0x8000000
CONFIG_RAW_BINARY=y
CONFIG_READLINE_CMD_HISTORY=y
diff --git a/boards/risc-v/k230/canmv230/configs/remote/defconfig b/boards/risc-v/k230/canmv230/configs/remote/defconfig
index 1ff6f9e17a..c9898e8d96 100644
--- a/boards/risc-v/k230/canmv230/configs/remote/defconfig
+++ b/boards/risc-v/k230/canmv230/configs/remote/defconfig
@@ -32,7 +32,7 @@ CONFIG_ARCH_USE_MPU=y
CONFIG_ARCH_USE_S_MODE=y
CONFIG_BINFMT_ELF_EXECUTABLE=y
CONFIG_BOARD_LATE_INITIALIZE=y
-CONFIG_BOARD_LOOPSPERMSEC=6366
+CONFIG_BOARD_LOOPSPERMSEC=106613
CONFIG_BUILD_KERNEL=y
CONFIG_DEBUG_ASSERTIONS=y
CONFIG_DEBUG_FEATURES=y
diff --git a/boards/risc-v/k230/canmv230/scripts/ld-flat.script b/boards/risc-v/k230/canmv230/scripts/ld-flat.script
index ea74c85935..1f1dba29b4 100644
--- a/boards/risc-v/k230/canmv230/scripts/ld-flat.script
+++ b/boards/risc-v/k230/canmv230/scripts/ld-flat.script
@@ -18,9 +18,12 @@
*
****************************************************************************/
+#include <nuttx/config.h>
+
+
SECTIONS
{
- . = 0x8000000;
+ . = CONFIG_RAM_START;
.text :
{