Category "embedded"

Why we need to make a software reset, I2C protocol?

I am studing I2C protocol and I want to implement it with the STM32 microcontroller. So reading the documentation file I show an initialization flowchart of I2C

writing to FILE for transmission over USART

I have a bit of code written by someone else that I'm trying to understand. I'm familiar with c enough to make basic/intermediate functions, but never really le

How to create a binary package in OpenWrt

I would like to create a binary package in OpenWrt. Initially, it would contain a single binary executable and a shared library it depends on. I can see example

Encryption Strategy for Flashing or updating firmware on ARM Cortex M0+

I want to flash a firmware update through CAN, on my ARM Cortex M0+ MCU. I'm using MKV11 microcontroller. How can I secure the firmware, so that, even if the tr

Read DHT22 with Rust on HiFive1 rev b

Im trying to read my DHT22 weather and humidity sensor on HiFive1 rev b board, but it doesn't want to respond. I connected data line with 10k resistor to 5V Vcc

What ADC precision and sampling rate for record sound?

What ADC precision and sampling rate would you choose and why if You wish to record sound that has frequency components are 200 to 2000 Hz. And the signal-to-no

I want to run two functions simultaneously on AVR microcontroller. Is there any method to do so?

int main(void) { DDRC = DDRC | (1<<2); DDRC = DDRC | (1<<3); while (1) { //openSolenoidValves(100,60); //startStep

PyFtdi Value Error 'No backend available' every now and then

I'm using pyftdi (https://eblot.github.io/pyftdi/) to handle a FTDI ft4232h. Everything usually works fine but every now and then I come across a ValueError say

How to check the Cortex-M4 VTOR register with gdb command?

(I am learning about ARM debugging so this may be a dumb question.) I checked the ARMv7-M Arch Ref Manual. It says the reset vector offset is stored in the VTOR

Building rust with LLVM Fork

Following the instructions here, I have tried building rust with a fork of LLVM which has a back-end for a new target. I have: Recursively cloned the Rust repos

Rust build error: unknown `--json` option `future-incompat`

I am trying to build a basic application for the Adafruit CLUE using Rust. When using the peripheral access crate (PAC) everything works fine, but I would like

Why would ch341-uart is disconnected from ttyUSB?

Here's the deal, I want to flash my stm32 board with my USB serial port. And my stm32 board comes with an extended board which carries CH340. When I connected t

How to set up interrupt registers on the stm32 microcontrollers?

I wanted to toggle a led status by reading a push button status's using interrupt instead of polling. I'm using a Nucleo board F411 and a register based program

Graph2Vec fit method by karateclub

I am struggling with running the graph2vec module by karateclub (or any other provider of a similar one) on my networkx Graph G. Graph2Vec was introduced in thi

Can ETL be used with Atmel Studio?

The Embedded Template Library provides the data structures of the STL without using dynamic allocation, to be used in embedded development. I'm experimenting wi

c code to paint an embedded stack with a pattern say (0xABABABAB) just after main begins?

I am working on dynamic memory analysis using stack painting/foot print analysis method. dynamic-stack-depth-determination-using-footprint-analysis basically t

Does TensorFlow Lite for Microcontrollers support Google Edge TPU?

I already know that TensorFlow Lite (TFL) supports the Google Edge TPU, for instance through the Coral Dev Board (Linux required). However I'd like to know whet

Linker error: "cannot move location counter backwards (from 200009f8 to 20000800)"

I am trying to build my code for Nucleo STM32F042k6 with PlatformIO firmware Mbed but i get the following error: .pio\build\nucleo_f042k6\STM32F042X6.ld.link_s

Embedded Board Support Package

As I understand, a BSP (Board Support Package) contains bootloader, kernel and device driver which help OS to work on HW. But I'm confused because OS also conta

How to fix STM32CubeProgrammer No STM32 Target Found

Hello guys Any one here faced this problem before ? After I run my code into my stm32f446re I couldn't upload any code after my last code and give me this erro