You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ut...@apache.org on 2019/09/09 12:00:21 UTC
[mynewt-core] branch master updated (ef7cbff -> 3ccd4f5)
This is an automated email from the ASF dual-hosted git repository.
utzig pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.
from ef7cbff hw/mcu/dialog: Use proper RCX frequency for os_tick
new 7dbfded Update nucleo-f030r8 BSP to use st-util
new af608a4 Enable UART0 on nucleo-f072rb by default
new d0863e5 Use default main stack size on nucleo-f072rb
new 3ccd4f5 Remove `.file` directive
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
hw/bsp/nucleo-f030r8/nucleo-f030r8_debug.sh | 7 ++---
hw/bsp/nucleo-f030r8/nucleo-f030r8_download.sh | 38 ++++----------------------
hw/bsp/nucleo-f072rb/syscfg.yml | 3 +-
kernel/os/src/arch/cortex_m0/m0/HAL_CM0.s | 1 -
4 files changed, 9 insertions(+), 40 deletions(-)
[mynewt-core] 03/04: Use default main stack size on nucleo-f072rb
Posted by ut...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit d0863e5a69cfe11af8ceab1ebf29a6e4524376e8
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Wed Sep 4 15:39:37 2019 -0300
Use default main stack size on nucleo-f072rb
This allows running coremark app.
---
hw/bsp/nucleo-f072rb/syscfg.yml | 1 -
1 file changed, 1 deletion(-)
diff --git a/hw/bsp/nucleo-f072rb/syscfg.yml b/hw/bsp/nucleo-f072rb/syscfg.yml
index ab1075e..7dd77fd 100644
--- a/hw/bsp/nucleo-f072rb/syscfg.yml
+++ b/hw/bsp/nucleo-f072rb/syscfg.yml
@@ -45,5 +45,4 @@ syscfg.vals:
NFFS_FLASH_AREA: FLASH_AREA_NFFS
COREDUMP_FLASH_AREA: FLASH_AREA_IMAGE_1
MCU_SYSCLK_PLL_HSI: 0
- OS_MAIN_STACK_SIZE: 256
MSYS_1_BLOCK_COUNT: 0
[mynewt-core] 02/04: Enable UART0 on nucleo-f072rb by default
Posted by ut...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit af608a4db12ec9ea2143d7064ec7e6b04e1fb595
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Wed Sep 4 15:38:56 2019 -0300
Enable UART0 on nucleo-f072rb by default
---
hw/bsp/nucleo-f072rb/syscfg.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/bsp/nucleo-f072rb/syscfg.yml b/hw/bsp/nucleo-f072rb/syscfg.yml
index 4c8dfc1..ab1075e 100644
--- a/hw/bsp/nucleo-f072rb/syscfg.yml
+++ b/hw/bsp/nucleo-f072rb/syscfg.yml
@@ -24,7 +24,7 @@ syscfg.defs:
UART_0:
description: 'Whether to enable UART0'
- value: 0
+ value: 1
UART_1:
description: 'Whether to enable UART1'
value: 0
[mynewt-core] 01/04: Update nucleo-f030r8 BSP to use st-util
Posted by ut...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 7dbfded3c72aeb2bceeb3c0b81ab67410fe98b35
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Wed Sep 4 15:37:58 2019 -0300
Update nucleo-f030r8 BSP to use st-util
---
hw/bsp/nucleo-f030r8/nucleo-f030r8_debug.sh | 7 ++---
hw/bsp/nucleo-f030r8/nucleo-f030r8_download.sh | 38 ++++----------------------
2 files changed, 8 insertions(+), 37 deletions(-)
diff --git a/hw/bsp/nucleo-f030r8/nucleo-f030r8_debug.sh b/hw/bsp/nucleo-f030r8/nucleo-f030r8_debug.sh
index 1fce237..8445f23 100755
--- a/hw/bsp/nucleo-f030r8/nucleo-f030r8_debug.sh
+++ b/hw/bsp/nucleo-f030r8/nucleo-f030r8_debug.sh
@@ -27,11 +27,8 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. $CORE_PATH/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
-CFG="-f board/st_nucleo_f0.cfg"
-# Exit openocd when gdb detaches.
-EXTRA_JTAG_CMD="$EXTRA_JTAG_CMD; stm32f0x.cpu configure -event gdb-detach {if {[stm32f0x.cpu curstate] eq \"halted\"} resume;shutdown}"
-openocd_debug
+stlink_debug
diff --git a/hw/bsp/nucleo-f030r8/nucleo-f030r8_download.sh b/hw/bsp/nucleo-f030r8/nucleo-f030r8_download.sh
index d7c1d22..4063ed8 100755
--- a/hw/bsp/nucleo-f030r8/nucleo-f030r8_download.sh
+++ b/hw/bsp/nucleo-f030r8/nucleo-f030r8_download.sh
@@ -17,39 +17,13 @@
# under the License.
#
-# Called with following variables set:
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
+. $CORE_PATH/hw/scripts/stlink.sh
-if [ -z "$BIN_BASENAME" ]; then
- echo "Need binary to download"
- exit 1
+if [ "$MFG_IMAGE" ]; then
+ FLASH_OFFSET=0x08000000
fi
-IS_BOOTLOADER=0
-
-# Look for 'bootloader' in FEATURES
-for feature in $FEATURES; do
- if [ $feature == "bootloader" ]; then
- IS_BOOTLOADER=1
- fi
-done
-
-if [ "$MFG_IMAGE" == "1" ]; then
- FILE_NAME=$BASENAME.bin
-elif [ $IS_BOOTLOADER -eq 1 ]; then
- FILE_NAME=$BIN_BASENAME.elf.bin
-else
- FILE_NAME=$BIN_BASENAME.elf
-fi
-FLASH_OFFSET=0x08000000
-
-echo "Downloading" $FILE_NAME "to" $FLASH_OFFSET
-
-openocd -d0 -f board/st_nucleo_f0.cfg -c "init; reset halt; flash write_image erase $FILE_NAME; reset run; shutdown" 2>&1 | tee /tmp/newt.log
+BOOT_LOADER=1
+common_file_to_load
+stlink_load
[mynewt-core] 04/04: Remove `.file` directive
Posted by ut...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 3ccd4f56d3d10f22f6e534cf804e8ae74859c8cd
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Wed Sep 4 15:40:57 2019 -0300
Remove `.file` directive
With this directive in place arm-none-eabi-gdb is unable to file the
file which makes it impossible to debug code inside it.
---
kernel/os/src/arch/cortex_m0/m0/HAL_CM0.s | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/os/src/arch/cortex_m0/m0/HAL_CM0.s b/kernel/os/src/arch/cortex_m0/m0/HAL_CM0.s
index edf4b59..695859b 100644
--- a/kernel/os/src/arch/cortex_m0/m0/HAL_CM0.s
+++ b/kernel/os/src/arch/cortex_m0/m0/HAL_CM0.s
@@ -27,7 +27,6 @@
#include <syscfg/syscfg.h>
#include "os/os_trace_api.h"
- .file "HAL_CM0.S"
.syntax unified
/*----------------------------------------------------------------------------