- Take every jumper off except JP1. Take both jumpers off CN3. Take the jumpers JP2 and JP3 off from the bottom of the board.
- Put a jumper between
BOOT0
andVDD
. - Connect with a wire PA9 to 5V.
- Connect the device using the micro USB port, not the mini-USB port.
sudo dfu-util -d 0483:df11 -a 0 -s 0x08000000 -D build/Example_Project.bin
- Unplug the device.
- Disconnect the BOOT0 jumper.
- Plug the device in.
- PB5 - CAN2_RX
- PB6 - CAN2_TX
This file contains 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
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.6.15.tar.xz | |
tar -xf linux-5.6.15.tar.xz | |
cd linux-5.6.15 | |
docker run --rm dockcross/linux-x64 > ./dockcross | |
chmod +x dockcross | |
./dockcross make defconfig | |
./dockcross make -j 4 |
This file contains 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
const parseInstructions = (input) => { | |
const instructions = [] | |
let i = 0 | |
while (i < input.length) { | |
const instructionLow = input.readUInt16LE(i) | |
const is16Bit = (instructionLow & 0x01) === 0x00 | |
if (is16Bit) { | |
instructions.push(instructionLow) | |
i += 2 | |
} else { |
This file contains 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::{masks}; | |
pub enum Format { | |
// 16 bit formats | |
SB, | |
SBC, | |
SBR, | |
SBRN, | |
SC, | |
SLR, |
./configure --target-list=tricore-softmmu && make -j 4 && ./tricore-softmmu/qemu-system-tricore --machine tricore_testboard -nographic -D /tmp/qemu.log -d in_asm,out_asm,op,cpu,exec,mmu -singlestep
This file contains 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
Brandons-MacBook-Pro-2:can-utils-rs brandonros$ cargo build | |
Compiling can-utils-rs v0.0.1 (/Users/brandonros/Desktop/can-utils-rs) | |
error[E0382]: use of moved value: `frame` | |
--> src/main.rs:57:65 | |
| | |
55 | let mut handler = move |frame: Vec<u8>| { | |
| ----- move occurs because `frame` has type `std::vec::Vec<u8>`, which does not implement the `Copy` trait | |
56 | for websocket in websockets.lock().unwrap().iter() { | |
57 | let binary_frame = tungstenite::Message::Binary(frame); | |
| ^^^^^ value moved here, in previous iteration of loop |
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Start-Service sshd
Set-Service -Name sshd -StartupType "Automatic"
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force
This file contains 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
1. general (rpm, speed, gear, time) | |
2. engine load (actual + target) | |
3. torque (actual + target) | |
4. accelerator pedal angle | |
5. throttle body angle | |
6. boost (actual + target) | |
7. wastegate duty cycle | |
8. fuel trims (short term) | |
9. fuel pressure (low + high) | |
10. ignition timing (all cylinders + average) |