This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// The following is a list of opcodes for talking with the XDS110 probe. | |
/// The actual arguments aren't listed here, because they are not yet known. | |
/// The original list (i.e. anything not labeled ???) came from openocd, | |
/// which has an implementation using this device. | |
/* XDS API Commands */ | |
#define XDS_ECHO 0x00 /* ??? */ | |
#define XDS_CONNECT 0x01 /* Connect JTAG connection */ | |
#define XDS_DISCONNECT 0x02 /* Disconnect JTAG connection */ | |
#define XDS_VERSION 0x03 /* Get firmware version and hardware ID */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Demonstrate the off-by-one error with the ARM CMSIS-DAP DAP_SWD_SEQUENCE command. On projects | |
// using ARM-supplied code, the IDR will be shifted by one. | |
// | |
// Compile with: | |
// | |
// Bash: | |
// gcc $(pkg-config libusb-1.0 --libs --cflags) usb-breakage.c -o usb-breakage; ./usb-breakage | |
// | |
// Fish: | |
// gcc (pkg-config libusb-1.0 --libs --cflags | string split -n " ") usb-breakage.c -o usb-breakage; and ./usb-breakage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/probe-rs-tools/src/bin/probe-rs/cmd/info.rs b/probe-rs-tools/src/bin/probe-rs/cmd/info.rs | |
index 8fcbd62b3..af949976a 100644 | |
--- a/probe-rs-tools/src/bin/probe-rs/cmd/info.rs | |
+++ b/probe-rs-tools/src/bin/probe-rs/cmd/info.rs | |
@@ -14,9 +14,12 @@ use termtree::Tree; | |
use crate::{ | |
rpc::{ | |
client::RpcClient, | |
- functions::info::{ | |
- ApInfo, ComponentTreeNode, DebugPortInfo, DebugPortInfoNode, DebugPortVersion, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Extract the archive with 7zip, for example `&"C:\Program Files\7-Zip\7z.exe" x .\file.tar`, | |
# and then run this script on the resulting directory. This will replace all symlinks with | |
# directory links created with `mklink /d`. | |
# | |
# This script requires you to run it in Administrator mode, or have Developer Mode enabled. | |
param ( | |
[string]$rootDirectory | |
) | |
if (-not (Test-Path $rootDirectory -PathType Container)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include <libusb.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct bmda_probe | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Includes one of the default files in src/bootstrap/defaults | |
profile = "library" | |
change-id = 116998 | |
[build] | |
# When building the standard library, you almost never want to build the compiler itself. | |
build-stage = 2 | |
test-stage = 2 | |
bench-stage = 2 | |
target = ["riscv32imac-unknown-xous-elf"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "unwind" | |
version = "0.0.0" | |
license = "MIT OR Apache-2.0" | |
repository = "https://github.com/rust-lang/rust.git" | |
edition = "2021" | |
include = [ | |
'/libunwind/*', | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(non_camel_case_types)] | |
#![allow(non_snake_case)] | |
#![allow(non_upper_case_globals)] | |
pub type rv_inst = u64; | |
#[derive(Clone, Copy, PartialEq)] | |
pub enum RvIsa { | |
Rv32 = 0, | |
Rv64 = 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This program tests `ecall` and `ebreak`. Link with the | |
// following linker script: | |
// | |
//-- linker.x ---------------------------------------------- | |
// MEMORY { FLASH : ORIGIN = 0x80000000, LENGTH = 512K } | |
// SECTIONS { .text : { *(.text .text.*); } > FLASH } | |
//---------------------------------------------------------- | |
// | |
// Compile and link into a binary with: | |
// riscv-none-elf-gcc -march=rv32imac_zicsr -g my.S -o my.elf -nostdinc -nostdlib -T my.ld |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use crate::os::xous::ffi::{map_memory, unmap_memory, MemoryFlags}; | |
use core::arch::asm; | |
use core::cell::Cell; | |
use core::sync::atomic::{AtomicBool, AtomicU8, AtomicUsize, Ordering}; | |
const TLS_KEY_COUNT: usize = 128; | |
const TLS_MEMORY_SIZE: usize = 4096; | |
pub type Key = usize; | |
pub type Dtor = unsafe extern "C" fn(*mut u8); |
NewerOlder