# FULL ESPRUINO SCRIPT interface bcm2835gpio # RPi Zero/v1 interface #bcm2835gpio_peripheral_base 0x20000000 #bcm2835gpio_speed_coeffs 113714 28 # Raspi1 BCM2835: (700Mhz) #bcm2835gpio_peripheral_base 0x20000000 #bcm2835gpio_speed_coeffs 113714 28 # Raspi2 BCM2836 (900Mhz): #bcm2835gpio_peripheral_base 0x3F000000 #bcm2835gpio_speed_coeffs 146203 36 # Raspi3 BCM2837 (1200Mhz): bcm2835gpio_peripheral_base 0x3F000000 bcm2835gpio_speed_coeffs 194938 48 # 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