trouble flashing arduino 33 with zephyr examples

Hi all.  I am fairly new to zephyr so I apologize for any "noob" errors i seem to present.  I have been working with nrf52 dk board and have been able to accomplish many things, pwm, gpio, ble, etc.  However I have decided to switch to a non nordic development board to better understand pin assignment and device tree files, before I design my own custom board.  As I had an arduino 33 ble laying around I decided to solder connections to the swdio swcclk etc connections and connect it to the output from j link debugger on the nrf 52 dk board. I know my connections, and method should be good as I am able to erase and re write the ardunio bootloader to the board though the nrf programmer. To be clear I am trying to not utilize the arduino bootloader and flash directly through nrf connect or through the programmer with the zephyr.hex file. However when I try to flash the board with with the sample nrf blinky blinky program I get no success. The sample program uses pin 9 which I believe should be the green led on the nano 33 ble. 

I have attatchedd here what I believe to be the correct modified board.cmake file.

# This was before
# SPDX-License-Identifier: Apache-2.0
#board_runner_args(nrfprog "--softreset")
#include(${ZEPHYR_BASE}/boards/common/nrfprog.board.cmake)
#include(${ZEPHYR_BASE}/boards/common/bossac.board.cmake)

# SPDX-License-Identifier: Apache-2.0

#this is after modification


  board_runner_args(jlink "--device=nrf5340_xxaa_app" "--speed=4000")
 
  
 
 
  board_runner_args(jlink "--device=nrf5340_xxaa_net" "--speed=4000")
 
  
  include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
  include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
  

I also have attached the modified .yaml file which I included gpio at the bottom. 

identifier: arduino_nano_33_ble
name: Arduino Nano 33 BLE
type: mcu
arch: arm
toolchain:
  - zephyr
  - gnuarmemb
  - xtools
supported:
  - adc
  - ble
  - i2c
  - ieee802154
  - pwm
  - serial
  - spi
  - uart
  - usb_cdc
  - usb_device
  - watchdog
  - gpio

the arduino sample dts file includs the common dtsi file and thus I assumed it would make no difference.  however for test i tried to build and flash the dts file with the contents of the common dtsi file which is very similar to the nrf 52 f25840 example dts file.

thanks

Related