Hello David:

As I said in my email, the smoke test consists of erasing the flash, loading 
the bootloader then loading the image. The steps are (using my target names):

# Clean and buiild all the images.

newt clean arduino_zero_boot
newt clean arduino_zero_blinky
newt build arduino_zero_boot
newt build arduino_zero_blinky
newt create-image arduino_zero_blinky 0.0.0

# Erase the flash
newt debug arduino_zero_blinky

(gdb) mon at91samd chip-erase
chip erased
chip erased
(gdb) x/32wx 0
0x0:    0xffffffff      0xffffffff      0xffffffff      0xffffffff
0x10:   0xffffffff      0xffffffff      0xffffffff      0xffffffff
0x20:   0xffffffff      0xffffffff      0xffffffff      0xffffffff
0x30:   0xffffffff      0xffffffff      0xffffffff      0xffffffff
0x40:   0xffffffff      0xffffffff      0xffffffff      0xffffffff
0x50:   0xffffffff      0xffffffff      0xffffffff      0xffffffff
0x60:   0xffffffff      0xffffffff      0xffffffff      0xffffffff
0x70:   0xffffffff      0xffffffff      0xffffffff      0xffffffff
(gdb) q

# Load bootloader
newt load arduino_zero_boot

# Load image
newt load arduino_zero_blinky

Now it blinky.

My targets:
wes@~/dev/wes$ newt target show arduino_zero_boot
targets/arduino_zero_boot
    app=@apache-mynewt-core/apps/boot
    bsp=@mynewt_arduino_zero/hw/bsp/arduino_zero
    build_profile=optimized
    syscfg=BSP_ARDUINO_ZERO=1
wes@~/dev/wes$ newt target show arduino_zero_blinky
targets/arduino_zero_blinky
    app=apps/blinky
    bsp=@mynewt_arduino_zero/hw/bsp/arduino_zero
    build_profile=optimized
    syscfg=BSP_ARDUINO_ZERO=1

> On Nov 11, 2016, at 8:38 AM, David G. Simmons <[email protected]> wrote:
> 
> 
> How did you smoke test these?
> 
> I am trying to do the same this morning, and have run into problems. 
> 
> 
> DSimmons-Pro:arduino_zero dsimmons$ newt load arduino_boot -v
> Loading bootloader
> Load command: BOOT_LOADER="1" FEATURES="BASELIBC_PRESENT BOOT_LOADER 
> BSP_ARDUINO_ZERO_PRO CLOCK_FREQ FLASH_MAP_MAX_AREAS MSYS_1_BLOCK_COUNT 
> MSYS_1_BLOCK_SIZE OS_CPUTIME_FREQ SANITY_INTERVAL SPI_0_TYPE SPI_1_TYPE 
> TIMER_0 UART_0 WATCHDOG_INTERVAL" FLASH_OFFSET="0x0" IMAGE_SLOT="0" 
> CORE_PATH="/Users/dsimmons/dev/arduino_zero/repos/apache-mynewt-core" 
> BSP_PATH="/Users/dsimmons/dev/arduino_zero/repos/mynewt_arduino_zero/hw/bsp/arduino_zero"
>  
> BIN_BASENAME="/Users/dsimmons/dev/arduino_zero/bin/targets/arduino_boot/app/apps/boot/boot"
>   
> /Users/dsimmons/dev/arduino_zero/repos/mynewt_arduino_zero/hw/bsp/arduino_zero/arduino_zero_download.sh
>  
> /Users/dsimmons/dev/arduino_zero/repos/mynewt_arduino_zero/hw/bsp/arduino_zero
>  /Users/dsimmons/dev/arduino_zero/bin/targets/arduino_boot/app/apps/boot/boot
> Error: Downloading 
> /Users/dsimmons/dev/arduino_zero/bin/targets/arduino_boot/app/apps/boot/boot.elf.bin
>  to 0x0
> Open On-Chip Debugger 0.9.0 (2015-11-15-05:39)
> Licensed under GNU GPL v2
> For bug reports, read
>       http://openocd.org/doc/doxygen/bugs.html
> Info : only one transport option; autoselect 'swd'
> adapter speed: 500 kHz
> adapter_nsrst_delay: 100
> cortex_m reset_config sysresetreq
> Info : CMSIS-DAP: SWD  Supported
> Info : CMSIS-DAP: JTAG Supported
> Info : CMSIS-DAP: Interface Initialised (SWD)
> Info : CMSIS-DAP: FW Version = 01.1F.0118
> Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
> Info : CMSIS-DAP: Interface ready
> Info : clock speed 500 kHz
> Info : SWD IDCODE 0x0bc11477
> Info : at91samd21g18.cpu: hardware has 4 breakpoints, 2 watchpoints
> Error: Target not halted
> 
> 
> 
> load - Load app image to target for <target-name>.
> 
> Usage:
>  newt load <target-name> [flags]
> 
> Flags:
>  -j, --extrajtagcmd string   extra commands to send to JTAG software
> 
> Global Flags:
>  -l, --loglevel string   Log level (default "WARN")
>  -o, --outfile string    Filename to tee output to
>  -q, --quiet             Be quiet; only display error output
>  -s, --silent            Be silent; don't output anything
>  -v, --verbose           Enable verbose output when executing commands
> DSimmons-Pro:arduino_zero dsimmons$
> 
> Just to make sure, I checked all my repository sources, and newt is up to 
> date:
> 
> DSimmons-Pro:newt dsimmons$ newt version
> Apache Newt (incubating) version: 1.0.0-develop
> DSimmons-Pro:newt dsimmons$ pwd
> /Users/dsimmons/dev/go/src/mynewt.apache.org/newt
> DSimmons-Pro:newt dsimmons$ git status -v
> On branch 1_0_0_b1_dev
> nothing to commit, working tree clean
> 
> And the repos in the project are up to date:
> 
> DSimmons-Pro:arduino_zero dsimmons$ cd repos/apache-mynewt-core/
> DSimmons-Pro:apache-mynewt-core dsimmons$ git status -v
> On branch 1_0_0_b1_dev
> Your branch is up-to-date with 'origin/1_0_0_b1_dev'.
> Changes not staged for commit:
>  (use "git add <file>..." to update what will be committed)
>  (use "git checkout -- <file>..." to discard changes in working directory)
> 
>       modified:   apps/boot/syscfg.yml
> 
> no changes added to commit (use "git add" and/or "git commit -a")
> DSimmons-Pro:apache-mynewt-core dsimmons$ cd ../mynewt_arduino_zero/
> DSimmons-Pro:mynewt_arduino_zero dsimmons$ git status -v
> On branch 1_0_0_b1_dev
> Your branch is up-to-date with 'origin/1_0_0_b1_dev'.
> nothing to commit, working tree clean
> 
> So all looks good on the git front (for once). 
> 
> Ive used the Arduino IDE to re-flash the bootloader to the board, and I can 
> succesfully download and run Arduino sketches on the board, but it 
> steadfastly refuses to take the Mynewt boot loader. 
> 
> I've beaten my head against this wall long enough. Any ideas?
> 
> dg
> 
>> On Nov 10, 2016, at 9:19 PM, will sanfilippo <[email protected]> wrote:
>> 
>> olimex and arduino zero good too.
>> 
>>> On Nov 10, 2016, at 6:01 PM, will sanfilippo <[email protected]> wrote:
>>> 
>>> All:
>>> 
>>> Just wanted to note I smoke tested the following boards/bps. The smoke test 
>>> is basically erasing the flash, loading the bootloader and blinky (and 
>>> making sure it blinks!)
>>> 
>>> nrf52dk
>>> nrf51dk
>>> nrf51dk-16kb
>>> bmd300
>>> arduino mkr1000
>>> nucleo-f401
>>> 
>>> We had a snafu with the arduino zero if the flash was erased but that 
>>> should now be fixed. Going to re-test the arduino and olimex boards in a 
>>> sec.
>>> 
>> 
> 
> --
> David G. Simmons
> (919) 534-5099
> Web <https://davidgs.com/> • Blog <https://davidgs.com/davidgs_blog> • 
> Linkedin <http://linkedin.com/in/davidgsimmons> • Twitter 
> <http://twitter.com/TechEvangelist1> • GitHub <http://github.com/davidgs>
> /** Message digitally signed for security and authenticity.  
> * If you cannot read the PGP.sig attachment, please go to 
> * http://www.gnupg.com/ <http://www.gnupg.com/> Secure your email!!!
> * Public key available at keyserver.pgp.com <http://keyserver.pgp.com/>
> **/
> ♺ This email uses 100% recycled electrons. Don't blow it by printing!
> 
> There are only 2 hard things in computer science: Cache invalidation, naming 
> things, and off-by-one errors.
> 
> 

Reply via email to