# FULL ESPRUINO SCRIPT # RPi Zero/v1 interface interface bcm2835gpio bcm2835gpio_peripheral_base 0x20000000 bcm2835gpio_speed_coeffs 113714 28 # RPi v2+ interface # interface bcm2835gpio # bcm2835gpio_peripheral_base 0x3F000000 # bcm2835gpio_speed_coeffs 146203 36 # Pins bcm2835gpio_swd_nums 25 24 bcm2835gpio_srst_num 18 reset_config srst_only srst_push_pull # Transport transport select swd # Target set WORKAREASIZE 0 set CHIPNAME nrf52832 source [find target/nrf52.cfg] reset_config srst_only srst_nogate adapter_nsrst_delay 100 adapter_nsrst_assert_width 100 # Execution init targets halt nrf52832.dap apreg 1 0x04 0x01 flash write_image espruino_2v01_nrf52832.hex reset halt targets verify_image espruino_2v01_nrf52832.hex reset run targets exit