diff --git a/buildflash.sh b/buildflash.sh deleted file mode 100644 index 8bc1e7a..0000000 --- a/buildflash.sh +++ /dev/null @@ -1,5 +0,0 @@ -west build -b adafruit_feather_nrf52840 . -# nrfutil dfu genpkg --application build/zephyr/zephyr.hex --application-version 0xFF --dev-revision 0xFF --dev-type 0xFFFF --sd-req 0x81 feather_nrf52840_express_bootloader-0.7.0_s140_6.1.1.zip -# nrfutil dfu usb-serial -pkg app.zip -p ttyACM0 // DO NOT FUCKING DO THIS -# ./uf2conv.py build/zephyr/zephyr.hex -c -f 0xADA52840 -cp build/zephyr/zephyr.uf2 . diff --git a/feather_bootloader/feather_bootloader.zip b/feather_bootloader/feather_bootloader.zip deleted file mode 100644 index 3302d59..0000000 Binary files a/feather_bootloader/feather_bootloader.zip and /dev/null differ diff --git a/feather_bootloader/manifest.json b/feather_bootloader/manifest.json deleted file mode 100644 index 243b0e3..0000000 --- a/feather_bootloader/manifest.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "manifest": { - "dfu_version": 0.5, - "softdevice_bootloader": { - "bin_file": "sd_bl.bin", - "bl_size": 39000, - "dat_file": "sd_bl.dat", - "init_packet_data": { - "application_version": 4294967295, - "device_revision": 52840, - "device_type": 82, - "firmware_crc16": 40783, - "softdevice_req": [ - 65534 - ] - }, - "sd_size": 151016 - } - } -} \ No newline at end of file diff --git a/feather_bootloader/sd_bl.bin b/feather_bootloader/sd_bl.bin deleted file mode 100644 index 078abd2..0000000 Binary files a/feather_bootloader/sd_bl.bin and /dev/null differ diff --git a/feather_bootloader/sd_bl.dat b/feather_bootloader/sd_bl.dat deleted file mode 100644 index 31fa19d..0000000 Binary files a/feather_bootloader/sd_bl.dat and /dev/null differ diff --git a/src/main.c b/src/main.c index d3fc0b5..62d2167 100644 --- a/src/main.c +++ b/src/main.c @@ -1,9 +1,3 @@ -/* - * Copyright (c) 2016 Intel Corporation - * - * SPDX-License-Identifier: Apache-2.0 - */ - #include #include #include @@ -78,7 +72,7 @@ static int spi_write_test_msg(void) // Reset signal k_poll_signal_reset(&spi_done_sig); - + // Start transaction int error = spi_transceive_async(spi_dev, &spi_cfg, &tx, &rx, &spi_done_sig); if(error != 0){ @@ -145,7 +139,7 @@ static int spi_slave_write_test_msg(void) // Reset signal k_poll_signal_reset(&spi_slave_done_sig); - + // Start transaction int error = spi_transceive_async(spi_slave_dev, &spi_slave_cfg, &s_tx, &s_rx, &spi_slave_done_sig); if(error != 0){ @@ -189,7 +183,7 @@ void main(void) spi_slave_init(); printk("SPI master/slave example started\n"); - + spi_slave_write_test_msg(); while (1) { @@ -203,7 +197,7 @@ void main(void) if(spi_slave_check_for_message() == 0){ // Print the last received data printk("SPI SLAVE RX: 0x%.2x, 0x%.2x\n", slave_rx_buffer[0], slave_rx_buffer[1]); - + // Prepare the next SPI slave transaction spi_slave_write_test_msg(); }