Skip to content

Instantly share code, notes, and snippets.

View nepozs's full-sized avatar
🎯
Focusing

nepozs

🎯
Focusing
  • Wrocław, Polska
View GitHub Profile
@nepozs
nepozs / Comparison Espressif ESP MCUs.md
Created November 29, 2023 20:06 — forked from sekcompsci/Comparison Espressif ESP MCUs.md
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December

CC2652 unbricking with Raspberry Pi and OpenOCD

I was a bit quick when flashing my generic CC2652R and ended up dowloading and flashing firmware for CC2652P.. Since it was the wrong firmware, the bootloader also didn't work anymore, making me unable to flash the correct firmware with the integrated USB serial programmer.

Luckily the module has a cJTAG debugging interface, that should make it possible to flash directly onto the chip without the bootloader. But I don't have any serial debuggers, so I have had to come up withj my own from various limited information I could find.

Approach

Using OpenOCD we can use a Raspberry Pi as a JTAG debugger. It does not support cJTAG for debugging, so it will instead send a signal to make the CC2652 switch to normal JTAG. We will then have to connect a few additional cables to the TDO and TDI pins for a full 4-pin JTAG connection.

@nepozs
nepozs / ambient_light.yaml
Created December 30, 2022 22:39 — forked from RubenKelevra/ambient_light.yaml
ESPHome example for an ambient light sensor with some smoothing / throttleling but overall extremly fast reporting
esphome:
name: $devicename
platform: ESP8266
board: d1_mini
substitutions:
devicename: ambient-light-sensor
friendly_name: "Ambient Light Sensor"
@nepozs
nepozs / Recommended MotionEye Settings
Created December 30, 2022 22:37 — forked from RubenKelevra/Recommended MotionEye Settings
Recommended MotionEye Settings (version 4.3.2 at the time of writing) capturing a large area with walking people with an ESP32-CAM (OV2640)
@nepozs
nepozs / Public_Time_Servers.md
Created September 23, 2022 22:10 — forked from mutin-sa/Top_Public_Time_Servers.md
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@nepozs
nepozs / Public_Polish_NTP_Servers.md
Created September 23, 2022 22:10 — forked from rail01/Public_Polish_NTP_Servers.md
List of Public NTP servers located in Poland with AS numbers and IP version used

Główny Urząd Miar [AS50606] [IPv4]

EN: Central Office of Measures

Email: time@gum.gov.pl

  • tempus1.gum.gov.pl
    • 194.146.251.100
  • tempus2.gum.gov.pl
    • 194.146.251.101
@nepozs
nepozs / hassos-rpi-camera-howto.md
Last active June 26, 2023 14:12 — forked from enegaard/hassos-rpi-camera-howto.md
Getting the Raspberry Pi Camera to Work on HASSOS

Getting the Raspberry Pi Camera to Work on HASSOS

Enabling the Raspberry Pi camera on HASSOS installations is unfortunately not as simple as connecting the camera and configuring Home Assistant as described at https://www.home-assistant.io/integrations/rpi_camera.

For the camera to work at all, an alternate firmware needs to be loaded when the Raspberry Pi boots. On Raspberry Pi OS (and many others), the alternate firmware is included with the OS installation image, and switching to the alternate firmware is accomplished by running raspi-config and selecting "Enable Camera" from the menu. HASSOS does not include either the alternate firmware or the raspi-config program, so all of the steps need to be done manually.

The steps below attempt to describe the steps that need to be performed. They have worked for me on a Raspberry Pi 3B+ running HASSOS 4.11 through 4.15. If you have a different setup your mileage may vary (but hopefully you'll get enough hints from the below to get it working).

A Home Assista