About to reset my local repo

This commit is contained in:
Ben Kyd
2023-06-18 20:13:28 +01:00
parent 8985df0a6e
commit d4e84fe4cf
6 changed files with 4 additions and 35 deletions

View File

@@ -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 .

View File

@@ -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
}
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -1,9 +1,3 @@
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
@@ -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();
}