The revision I tried was the Initial commit (f91d2fd) .
OpenSK is using Tock as one of its submodules.
So you need to clone OpenSK and its submodules recursively.
After you have cloned it successfully, you should be able to find this directory.
[package] | |
name = "nusb-cmsis-dap" | |
version = "0.1.0" | |
authors = ["Ein Terakawa <[email protected]>"] | |
edition = "2021" | |
description = "nusb crate test" | |
# repository = "https://gist.github.com/elfmimi/a52416d87c1b616cd9c7145a6e272fe6" | |
# keywords = ["usb"] | |
# categories = ["command-line-utilities", "development-tools", "embedded"] | |
# license = "MIT OR Apache-2.0" |
# pyOCD user script | |
# 'usb_boot' command will put target RP2040 into bootloader mode | |
# | |
# Howto invoke: | |
# pyocd cmd --script rp2040.py -c usb_boot | |
options.update({ | |
"target_override": "rp2040", | |
}) |
name: R7FA4M1AB-testing | |
variants: | |
- name: R7FA4M1AB-testing | |
cores: | |
- name: main | |
type: armv7em | |
core_access_options: !Arm | |
ap: 0 | |
psel: 0 | |
memory_map: |
# pyocd cmd --script ra-util.py -c "erase_sector0" | |
from pyocd.core.exceptions import TransferFaultError, TransferTimeoutError | |
if not "target_override" in options: | |
options.set("target_override", "cortex_m") | |
# options.set("target_override", "R7FA4M1AB") | |
if not "frequency" in options: | |
options.set("frequency", 12500000) |
# Howto execute this script: | |
# Unblock-File .\CredReadTest.ps1 | |
# powershell -ExecutionPolicy RemoteSigned .\CredReadTest.ps1 | |
# | |
# The following command displays a list of credentials: | |
# cmdkey /list | |
Write-Output "CredRead Test Program" | |
$type_def = @' |
The revision I tried was the Initial commit (f91d2fd) .
OpenSK is using Tock as one of its submodules.
So you need to clone OpenSK and its submodules recursively.
After you have cloned it successfully, you should be able to find this directory.
TARGET=ISP_HID | |
NUC123BSP=../../../../../GitHub/Nuvoton-NUC123BSP | |
CMSISDIR=$(NUC123BSP)/Library/CMSIS | |
DEVICEDIR=$(NUC123BSP)/Library/Device/Nuvoton/NUC123 | |
DRIVERDIR=$(NUC123BSP)/Library/StdDriver | |
SAMPLEDIR=$(NUC123BSP)/SampleCode/ISP/ISP_HID | |
INCS=-I. | |
INCS+= -I$(SAMPLEDIR) |
#!/usr/bin/env python3 | |
# Copyright 2022 Takeshi Ishii (@mtei) | |
# Copyright 2022 Ein Terakawa (a_p_u_r_o@elfmimi) | |
# SPDX-License-Identifier: GPL-2.0-or-later | |
import sys | |
import re | |
import json | |
import subprocess |
Bus 004 Device 014: ID 0d28:0204 NXP ARM mbed | |
Device Descriptor: | |
bLength 18 | |
bDescriptorType 1 | |
bcdUSB 2.10 | |
bDeviceClass 239 Miscellaneous Device | |
bDeviceSubClass 2 | |
bDeviceProtocol 1 Interface Association | |
bMaxPacketSize0 64 | |
idVendor 0x0d28 NXP |
#!/bin/bash | |
# root privilege required | |
if cd /sys/bus/platform/drivers/ehci-platform >& /dev/null; then | |
for dev in *.usb; do | |
echo -n $dev > unbind | |
echo -n $dev > bind | |
done | |
fi |