Skip to content

Instantly share code, notes, and snippets.

View japaric's full-sized avatar
🎯
focusing

Jorge Aparicio japaric

🎯
focusing
View GitHub Profile
Available Access Ports:
IDR {
REVISION: 0x2,
DESIGNER: 0x23b,
CLASS: MEMAP,
_RES0: 0x0,
VARIANT: 0x1,
TYPE: AMBA_AHB3,
}
Class1RomTable(
cargo flash --chip nRF52840_xxAA
Finished dev [unoptimized + debuginfo] target(s) in 0.01s
Flashing /tmp/app/target/thumbv7m-none-eabi/debug/app
DEBUG probe_rs::probe::daplink > Attaching to target system (clock = 1000kHz)
DEBUG probe_rs::probe::daplink > Successfully changed to SWD.
DEBUG probe_rs::probe::daplink > Adding command to batch: Read(port=DebugPort, addr=0)
DEBUG probe_rs::probe::daplink > Processing batch of 1 items
DEBUG probe_rs::architecture::arm::communication_interface > Debug Port version: DPv1
DEBUG probe_rs::architecture::arm::communication_interface > Reading DP register DPIDR
DEBUG probe_rs::probe::daplink > Adding command to batch: Read(port=DebugPort, addr=0)
travis_fold:start:worker_info
Worker information
hostname: 8bcfb16d-33a9-4e5f-bd88-87cff81db3e8@1.production-1-worker-org-c-3-gce
version: v3.3.0 https://github.com/travis-ci/worker/tree/29cff4f2bb0de30dcb50ec25aef6f2cb601dfba2
instance: travis-job-3e1b650f-7f91-46c5-bc37-fb879f63049b travis-ci-amethyst-trusty-1503972832 (via amqp)
startup: 21.145189689s
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
Build language: rust
@japaric
japaric / OK.svd
Created May 22, 2017 17:23
SVD files with errors
<device>
<name>OK</name>
<peripherals>
<peripheral>
<name>GPIOA</name>
<baseAddress>0xdeadbeef</baseAddress>
<registers>
<register>
<name>BSRR</name>
<description>GPIO port bit set/reset register</description>
target/thumbv7em-none-eabihf/release/examples/minimal: file format elf32-littlearm
Disassembly of section .text:
08000000 <EXCEPTIONS-0x8>:
8000000: 2000a000 .word 0x2000a000
8000004: 08000041 .word 0x08000041
Compiling libc-test v0.1.0 (file:///mnt/libc/libc-test)
error: failed to run custom build command for `libc-test v0.1.0 (file:///mnt/libc/libc-test)`
Process didn't exit successfully: `/mnt/libc/libc-test/target/debug/build/libc-test-c55d0d228610d2ee/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=../src/lib.rs
cargo:rerun-if-changed=../src/dox.rs
cargo:rerun-if-changed=../src/unix/mod.rs
cargo:rerun-if-changed=../src/macros.rs
cargo:rerun-if-changed=../src/unix/notbsd/mod.rs
cargo:rerun-if-changed=../src/unix/notbsd/linux/mod.rs
@japaric
japaric / README.md
Created August 6, 2016 22:34
How-to: figure out which compiler-rt intrinsics are *needed* to link `rustc`

Last updated: 2016-08-06

Summary: We'll modify the rustc-builtins crate to make all the intrinsics "undefined", then we'll proceed to bootstrap rustc normally. This will cause a linker error while linking rustc because the intrinsics are "undefined". The linker error message will list the intrinsics that are required to link rustc but the linker couldn't "find".

  1. First, we avoid building .so versions of std, rustc et al. because those will also fail to link but the linker error message will list all the intrinsics instead of only the ones that are actually needed to build a Rust program (binary). We do this by removing "dylib" from the
#
# Automatically generated file; DO NOT EDIT.
# Crosstool-NG Configuration
#
CT_CONFIGURE_has_make381=y
CT_MODULES=y
#
# Paths and misc options
#
@japaric
japaric / build.sh
Last active May 12, 2022 14:29
rustc for x86_64-unknown-linux-musl
# Build an statically linked rustc (with host=x86_64-unknown-linux-musl)
# Last tested on: 9316ae515e2f8f3f497fb4f1559910c1eef2433d
# Usage:
# # patches must be in $(pwd)
# $ ls *.patch
# liblibc.patch rust.patch
#
@japaric
japaric / dump
Created January 28, 2015 23:46
rustc 1.0.0-dev (92ff8ea52 2015-01-27 23:08:13 +0000) | Linux odroid 3.4.104-1-ARCH #1 SMP PREEMPT Wed Nov 26 11:57:51 MST 2014 armv7l GNU/Linux
cfg: build triple arm-unknown-linux-gnueabihf
cfg: host triples arm-unknown-linux-gnueabihf
cfg: target triples arm-unknown-linux-gnueabihf
cfg: enabling more debugging (CFG_ENABLE_DEBUG)
cfg: host for arm-unknown-linux-gnueabihf is arm
cfg: os for arm-unknown-linux-gnueabihf is unknown-linux-gnueabihf
cfg: good valgrind for arm-unknown-linux-gnueabihf is
cfg: using CC=gcc (CFG_CC)
cfg: enabling valgrind run-pass tests (CFG_ENABLE_VALGRIND_RPASS)
cfg: no lualatex found, deferring to xelatex