You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by Asmita Jha <jh...@zerowav.com> on 2019/06/16 04:29:33 UTC

Mynewt load command query

 

Hello,

I am working on Real-time location system using MDEK1001 kit. I am
successfully able to do things with the already built firmware image that
has come with the board. I am now trying to implement using my newt as given
on the decawav github site : https://github.com/Decawave/mynewt-dw1000-apps.
I am facing some issues, I am posting the issue here.

I erased the default flash image using JLink. Now, while loading the
bootloader as per given guideline on github, it is stuck at point . Same
thing is happening when I am trying to load blinky example as given on
mynewt website. I have shown here the verbose that I got :

newt load dwm1001_boot -v
Loading bootloader
Load command:
E:/Projects/RTLS/nRF/GitCodes/mynewt-dw1000-apps/repos/mynewt-dw1000-core/hw
/bsp/dwm1001/dwm1001_download.cmd
E:/Projects/RTLS/nRF/GitCodes/mynewt-dw1000-apps/repos/mynewt-dw1000-core/hw
/bsp/dwm1001 bin\targets\dwm1001_boot\app\apps\boot\boot
Environment:

*        BOOT_LOADER=1

*        FEATURES=BASELIBC_PRESENT BOOT_LOADER BSP_NRF52 CONSOLE_UART_BAUD
CONSOLE_UART_DEV CONSOLE_UART_FLOW_CONTROL DW1000_DEVICE_0_IRQ
DW1000_DEVICE_0_RST DW1000_DEVICE_0_RX_ANT_DLY DW1000_DEVICE_0_SS
DW1000_DEVICE_0_TX_ANT_DLY DW1000_DEVICE_BAUDRATE_HIGH
DW1000_DEVICE_BAUDRATE_LOW FLASH_MAP_MAX_AREAS HAL_FLASH_VERIFY_BUF_SZ
I2C_0_FREQ_KHZ I2C_1_FREQ_KHZ I2C_1_PIN_SCL I2C_1_PIN_SDA MBEDTLS_AES_C
MBEDTLS_BASE64_C MBEDTLS_ECP_DP_SECP224R1 MBEDTLS_ENTROPY_C
MBEDTLS_PKCS1_V15 MBEDTLS_PKCS1_V21 MCU_DCDC_ENABLED
MCU_FLASH_MIN_WRITE_SIZE MCU_NRF52832 MSYS_1_BLOCK_SIZE NFC_PINS_AS_GPIO
OS_CPUTIME_FREQ OS_CTX_SW_STACK_GUARD OS_IDLE_TICKLESS_MS_MAX
OS_IDLE_TICKLESS_MS_MIN OS_MAIN_STACK_SIZE OS_MAIN_TASK_PRIO
OS_SYSVIEW_TRACE_CALLOUT OS_SYSVIEW_TRACE_EVENTQ OS_SYSVIEW_TRACE_MUTEX
OS_SYSVIEW_TRACE_SEM QSPI_FLASH_SECTOR_COUNT QSPI_PIN_CS QSPI_PIN_DIO0
QSPI_PIN_DIO1 QSPI_PIN_DIO2 QSPI_PIN_DIO3 QSPI_PIN_SCK SANITY_INTERVAL
SPI_0_MASTER_PIN_MISO SPI_0_MASTER_PIN_MOSI SPI_0_MASTER_PIN_SCK TIMER_0
UARTBB_0_PIN_RX UARTBB_0_PIN_TX UART_0_PIN_CTS UART_0_PIN_RTS UART_0_PIN_RX
UART_0_PIN_TX UART_1_PIN_CTS UART_1_PIN_RTS WATCHDOG_INTERVAL XTAL_32768

*        FLASH_OFFSET=0x0

*        IMAGE_SLOT=0

*
CORE_PATH=E:/Projects/RTLS/nRF/GitCodes/mynewt-dw1000-apps/repos/apache-myne
wt-core

*
BSP_PATH=E:/Projects/RTLS/nRF/GitCodes/mynewt-dw1000-apps/repos/mynewt-dw100
0-core/hw/bsp/dwm1001

*        BIN_BASENAME=bin\targets\dwm1001_boot\app\apps\boot\boot

After this, nothing is happening . How much time does it takes to upload the
bootloader?

Hope to hear from you soon.

Thanks & regards,

Asmita Jha

Firmware Developer

Jha.asmita@zerowav.com <ma...@zerowav.com>  | +91 9960845898

www.zerowav.com <http://www.zerowav.com> 

 


Re: Mynewt load command query

Posted by marko kiiskila <ma...@runtime.io>.

> On 16 Jun 2019, at 7.29, Asmita Jha <jh...@zerowav.com> wrote:
> 
> 
> 
> Hello,
> 
> I am working on Real-time location system using MDEK1001 kit. I am
> successfully able to do things with the already built firmware image that
> has come with the board. I am now trying to implement using my newt as given
> on the decawav github site : https://github.com/Decawave/mynewt-dw1000-apps.
> I am facing some issues, I am posting the issue here.
> 
> I erased the default flash image using JLink. Now, while loading the
> bootloader as per given guideline on github, it is stuck at point . Same
> thing is happening when I am trying to load blinky example as given on
> mynewt website. I have shown here the verbose that I got :

Windows systems have been problematic in the past, not sure what the
current expected dev system setup is supposed to be. I imagine you
followed the latest info from mynewt.apache.org <http://mynewt.apache.org/>?
Problems are mostly due to pathnames.

> 
> newt load dwm1001_boot -v
> Loading bootloader
> Load command:
> E:/Projects/RTLS/nRF/GitCodes/mynewt-dw1000-apps/repos/mynewt-dw1000-core/hw
> /bsp/dwm1001/dwm1001_download.cmd

Debug tip: add ‘set -x’ in the start of 
E:/Projects/RTLS/nRF/GitCodes/mynewt-dw1000-apps/repos/mynewt-dw1000-core/hw/bsp/dwm1001/dwm1001_download.sh

it’ll cause it to echo everything the shell script is running underneath. Specifically,
you’ll see the exact command line used when doing the download. That on it’s
own might tell you what’s not working.

If not, uou can cut’n’paste that and execute the command(s) by hand. See what
gets stuck.


> E:/Projects/RTLS/nRF/GitCodes/mynewt-dw1000-apps/repos/mynewt-dw1000-core/hw
> /bsp/dwm1001 bin\targets\dwm1001_boot\app\apps\boot\boot
> Environment:
> 
> *        BOOT_LOADER=1
> 
> *        FEATURES=BASELIBC_PRESENT BOOT_LOADER BSP_NRF52 CONSOLE_UART_BAUD
> CONSOLE_UART_DEV CONSOLE_UART_FLOW_CONTROL DW1000_DEVICE_0_IRQ
> DW1000_DEVICE_0_RST DW1000_DEVICE_0_RX_ANT_DLY DW1000_DEVICE_0_SS
> DW1000_DEVICE_0_TX_ANT_DLY DW1000_DEVICE_BAUDRATE_HIGH
> DW1000_DEVICE_BAUDRATE_LOW FLASH_MAP_MAX_AREAS HAL_FLASH_VERIFY_BUF_SZ
> I2C_0_FREQ_KHZ I2C_1_FREQ_KHZ I2C_1_PIN_SCL I2C_1_PIN_SDA MBEDTLS_AES_C
> MBEDTLS_BASE64_C MBEDTLS_ECP_DP_SECP224R1 MBEDTLS_ENTROPY_C
> MBEDTLS_PKCS1_V15 MBEDTLS_PKCS1_V21 MCU_DCDC_ENABLED
> MCU_FLASH_MIN_WRITE_SIZE MCU_NRF52832 MSYS_1_BLOCK_SIZE NFC_PINS_AS_GPIO
> OS_CPUTIME_FREQ OS_CTX_SW_STACK_GUARD OS_IDLE_TICKLESS_MS_MAX
> OS_IDLE_TICKLESS_MS_MIN OS_MAIN_STACK_SIZE OS_MAIN_TASK_PRIO
> OS_SYSVIEW_TRACE_CALLOUT OS_SYSVIEW_TRACE_EVENTQ OS_SYSVIEW_TRACE_MUTEX
> OS_SYSVIEW_TRACE_SEM QSPI_FLASH_SECTOR_COUNT QSPI_PIN_CS QSPI_PIN_DIO0
> QSPI_PIN_DIO1 QSPI_PIN_DIO2 QSPI_PIN_DIO3 QSPI_PIN_SCK SANITY_INTERVAL
> SPI_0_MASTER_PIN_MISO SPI_0_MASTER_PIN_MOSI SPI_0_MASTER_PIN_SCK TIMER_0
> UARTBB_0_PIN_RX UARTBB_0_PIN_TX UART_0_PIN_CTS UART_0_PIN_RTS UART_0_PIN_RX
> UART_0_PIN_TX UART_1_PIN_CTS UART_1_PIN_RTS WATCHDOG_INTERVAL XTAL_32768
> 
> *        FLASH_OFFSET=0x0
> 
> *        IMAGE_SLOT=0
> 
> *
> CORE_PATH=E:/Projects/RTLS/nRF/GitCodes/mynewt-dw1000-apps/repos/apache-myne
> wt-core
> 
> *
> BSP_PATH=E:/Projects/RTLS/nRF/GitCodes/mynewt-dw1000-apps/repos/mynewt-dw100
> 0-core/hw/bsp/dwm1001
> 
> *        BIN_BASENAME=bin\targets\dwm1001_boot\app\apps\boot\boot
> 
> After this, nothing is happening . How much time does it takes to upload the
> bootloader?

Less than a second. Should exit pretty much immediately.

I have not used decawave, but some boards come with flash locked (redbear nano2, so you had
to reset the locking with JLinkExe before downloading things).

Good luck,
M