- Insert debug probe into Device
- Run
./bbctl device fbduo bootstrap --bootloader bootloader --firmware bootstrap --hardware v1_1
. Note the first line (UUID: "ba79a2bd874d2301"
) this is the "Full UUID" for later. - Wait for label to be printed, and then terminate process (
ctrl-c
) - Go to
cloud.blackbird.online
, Administration page -> Devices, and claim the device using the 7 digit ID - Run
./bbctl device fbduo inject-credentials <Full UUID>
eg../bbctl device fbduo inject-credentials ba79a2bd874d2301
- Run
probe-run --chip STM32L475VGT firmware-v1_1
and wait for(HOST) INFO success!
print - Remove debugger & power, and apply label
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
00000000 N | |
0004038b N | |
000403e7 N | |
00040438 N | |
00040444 N | |
00052e61 N | |
0004044d N | |
0000079e N | |
00000094 N | |
0006ce7b N |
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 hal::{ | |
delay::Delay, | |
dma::{dma1, dma2, Event as DmaEvent}, | |
gpio::{ | |
gpioa::{PA0, PA1, PA15, PA6}, | |
gpiob::{PB1, PB14, PB4, PB6, PB7}, | |
gpioc::{PC13, PC4, PC5}, | |
gpiod::{PD14, PD15, PD3, PD5, PD6, PD8, PD9}, | |
gpioe::{PE0, PE1, PE2, PE4, PE5}, | |
Alternate, Edge, Floating, Input, OpenDrain, Output, PushPull, AF7, AF8, |
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
/* # Developer notes | |
- Symbols that start with a double underscore (__) are considered "private" | |
- Symbols that start with a single underscore (_) are considered "semi-public"; they can be | |
overridden in a user linker script, but should not be referred from user code (e.g. `extern "C" { | |
static mut __sbss }`). | |
- `EXTERN` forces the linker to keep a symbol in the final binary. We use this to make sure a | |
symbol if not dropped if it appears in or near the front of the linker arguments and "it's not |
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
#![feature(prelude_import)] | |
#![no_main] | |
#![no_std] | |
#[prelude_import] | |
use core::prelude::v1::*; | |
#[macro_use] | |
extern crate core; | |
#[macro_use] | |
extern crate compiler_builtins; | |
use atat::{self, ClientBuilder, ComQueue, Queues, ResQueue, UrcQueue}; |
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 embedded_hal::{digital::v2::OutputPin, PwmPin}; | |
#[derive(PartialEq)] | |
pub enum Polarity { | |
ActiveLow, | |
ActiveHigh, | |
} | |
#[allow(unused)] | |
#[derive(PartialEq)] |
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 embedded_hal::timer::CountDown; | |
use stm32l4xx_hal::time::Hertz; | |
use void::Void; | |
pub struct Millis(pub u32); | |
impl From<u32> for Millis { | |
fn from(ms: u32) -> Self { | |
Millis(ms) | |
} |
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
// | |
// Decompiled by Procyon v0.5.32 | |
// | |
package com.st.microxplorer.plugins.ip.i2c.gui; | |
import java.util.ArrayList; | |
import org.apache.log4j.Logger; | |
public class I2cTimingTraitement implements I2cConstants |
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
#![no_main] | |
#![no_std] | |
#[rtic::app(device = stm32l4xx_hal::pac, peripherals = true, dispatchers = [UART5, SPI1, SPI2])] | |
mod app { | |
#[monotonic(binds = SysTick, default = true)] | |
type MyMono = DwtSystick<80_000_000>; // 80 MHz | |
const MQTT_QUEUE_LEN: usize = 6144; | |
type MqttClient = Client<'static, 'static, MQTT_QUEUE_LEN>; |
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
#!/usr/bin/env bash | |
declare -gA CRED_MAP=() | |
assume_role() { | |
CREDENTIALS=`aws sts assume-role --role-arn arn:aws:iam::$1:role/ExternalAccessProvisionIoT --role-session-name "VERSION-MIGRATION" --duration-seconds 3600 --output=json` | |
AWS_ACCESS_KEY_ID=`echo ${CREDENTIALS} | jq -r '.Credentials.AccessKeyId'` | |
AWS_SECRET_ACCESS_KEY=`echo ${CREDENTIALS} | jq -r '.Credentials.SecretAccessKey'` | |
AWS_SESSION_TOKEN=`echo ${CREDENTIALS} | jq -r '.Credentials.SessionToken'` |
OlderNewer