Jailbreaking the BLESense - pt.2 - sensors

Last updated: 2023-03-15

This is the second part of the post about jailbreaking the BLESense board.

Here I will explain how to get the onboard sensors to work: how they are wired and how to use them. They require some pins to be switched on, for the I2C bus and the actual sensors to be active.

It has to be specified that this is about the original BLESense, not the new v2 (which has different sensors and possibly different PCB setup).

As explained in the previous post you can jailbreak the BLE Sense.

power to the sensor

https://github.com/arduino/ArduinoCore-mbed/blob/master/variants/ARDUINO_NANO33BLE/pins_arduino.h

https://content.arduino.cc/assets/NANO33BLE_V2.0_sch.pdf

go to part two

add simple BLUE LED blinking code that looks like in the GIF video

And now what?

https://learn.adafruit.com/introducing-the-adafruit-nrf52840-feather/hathach-memory-map

As you can see in the diagrams, the SoftDevice takes up space at the bottom of FLASH and RAM, so the values must be offset there.

MEMORY
{  
  FLASH (rx): ORIGIN = 0x26000,    LENGTH = 0xED000 - 0x26000
  RAM (rwx):  ORIGIN = 0x20003400, LENGTH = 0x20010000 - 0x20003400
}

https://rust-embedded.github.io/blog/2018-08-2x-psa-cortex-m-breakage/ - need to read this and experiment

[build]
target = "thumbv7em-none-eabihf"
rustflags = ["-C", "link-arg=-Tlink.x"]

go to part two


 

Categories:   rust  embedded  arduino  tinyml 

Comments

comments powered by Disqus