Category "embedded"

How does GetCommState populate the DCB struct in Windows 10 when using usbser.sys CDC ACM driver

I am building a embedded device that will communicate to the outside world by virtual COM. I have the descriptor and all the callbacks for the USB set up correc

Why will CAN transmission error counter will increase and go in bus off state?

I am trying to establish Communication between Teensy 4.1with TJA1050 transceiver and 4 Arduino Nano. teensy has to transmitting CAN frame with different ids on

NEO 6M GPS does not respond to configuration except if commands are sent immediately after powering up gps

I am trying to configure my neo 6m GPS to stop automatic sending of information. I used Hterm serial terminal to send the proprietary messages ($PUBX,40,GLL,1,0

How to run FreeRTOS + Lwip application on EK-TM4C1294XL launchpad featuring a TM4C1294NCPDTI microcontroller device?

I have a EK-TM4C1294XL launchpad with a TM4C1294NCPDTI microcontroller device.I want to run a FreeRTOS + Lwip application on the board. The examples provided by

Cortex M33 missing vector table

I want to test my ARM project within QEMU using semihosting. Initially I built for Cortex A7 and A9 processors and had no issues running my code, however now th

Cortex M33 missing vector table

I want to test my ARM project within QEMU using semihosting. Initially I built for Cortex A7 and A9 processors and had no issues running my code, however now th

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