Questions tagged [embedded]

An embedded system is a computer system designed to perform one or a few dedicated functions often with real-time computing constraints. It is embedded as part of a complete device often including hardware and mechanical parts.

Filter by
Sorted by
Tagged with
0
votes
0answers
45 views

STM32F105RC not entering in DFU mode

I am using STM32F105RC for a project. I am currently using ST-Link to program the MCU, but i plan to upload the program using DFU mode. For this purpose i am trying make F105 enter into DFU mode with ...
0
votes
0answers
24 views

Can't seem to send more than 3 bytes from the NRF24L01+ TX to RX module

So I'm sending multiple payloads of the same width from the transmitter to a receiver and I see it sends only sends 3 times after which TX_FULL bit is set in the ...
0
votes
1answer
23 views

Can't seem to write to the status register of nRFL2401+

So I've been playing around with nRF2401+ radio module lately but been having a few issues. One of them (which could be the cause of the second one) is not being able to properly set the ...
-1
votes
2answers
75 views

SPI doesn't work properly between two STM32 microcontrollers

I'm trying to use SPI communication between 2 boards (custom design). Register programming approach is used. Sometimes SPI works fine, sometimes it doesn't. When it doesn't work properly, one of first ...
0
votes
0answers
28 views

No longer getting the expected default values from nrfl2401 radio module

So I've been playing around with nrfl2401 and I see I am no longer getting the expected default value when I read the configuration register. The default value is ...
0
votes
0answers
19 views

Understanding the inner workings of nRFL2401 module with different PTXes

So i'm writing drivers for nRFL2401 radio module and need to clarify something before I get down to coding it out: The following is a high level diagram of the point-to-multi-point kind of setup where ...
0
votes
1answer
35 views

Bug and Best Practices for Interrupt Handling/Organization

I've read a few documents on best practices for interrupt handling and thought I was doing things correctly, ensuring the variable set in the ISR was declared volatile. In my code the interrupt ...
2
votes
1answer
50 views

USB-C Debug Accessory Mode and USB 2.0

I want to build an embedded device which is using a USB-C for debugging purposes and USB 2 functionality. Now I am not sure whether or not I understood the USB-C Standard correctly. Is it correct, ...
0
votes
2answers
87 views

nrf24l01 radio chip seems to return incorrect bytes - am I even talking to the device or I'm just getting pre-existing bytes in SPI_DR?

So I am running into this issue where I try to read something off the radio module but I keep getting the same value, which is 0x1C, and I have no idea why 0x1C in ...
0
votes
1answer
43 views

Semaphore in FreeRTOS doesn’t work

I am a newbie to freeRTOS and I was trying to learn about semaphores,I am using ATmega32a microcontroller, the plan was to create 3 tasks each is blinking the same led for some time with different ...
0
votes
1answer
55 views

Getting unexpected I2C Slave Address from a LSM9DS1 sensor and reading the wrong data from the register I just wrote in

I am using a STM32F030R8 nucleo board and a LSM9DS1 sensor. I'm just starting out learning about this stuff and I am having troubles reading from the sensor. Here are all the details about the problem ...
0
votes
0answers
34 views

Differences in SPI SCK for half and full duplex mode

I am using SPI to communicate with the radio module; I want to use full duplex but I noticed a few things: when I set the BIDIMODE to 1 (1-line bidirectional), I ...
0
votes
0answers
38 views

Understanding the OVERRUN error for a duplex SPI communication with nrf24l01 radio module

So I am using an HAL library for SPI to talk with the radio module. I configured the SPI to be bidirectional or full-duplex so the master receives the data from the MISO line as it sends out on the ...
0
votes
0answers
20 views

Battery status monitoring of 1 cell NiMh battery powered embedded device

I am developing an embedded device (integrated RF controller) using 1 cell NiMh battery of 1.2 volt. I am figuring out ways to estimate the remaining battery capacity of the system. I have come across ...
0
votes
0answers
32 views

Is this an improper SPI Bus format?

I have been attempting a modified star topology for my SPI bus. In my application I have my SPI bus split to several ports. These ports have 1 to 3 slave devices connected in series to each other. Is ...
0
votes
0answers
26 views

Receiving image through USB to embedded device via USB CDC

I am trying to send images through the USB port to my stm32f7 eval board. I have taken pictures from webcam and send it by the code below ...
1
vote
0answers
15 views

Issue with USB HID Keyboard Interfacing with LPC 2468

We are using LPC2468 in our product. We have successfully interfaced USB Pen drive, USB Printer and USB HID Barcode Scanner with LPC 2468. Now we want to Interface USB HID Keyboard. We have been able ...
0
votes
1answer
59 views

Clarifying some doubts regarding PUPDR register of the GPIO [STM32]

Might come off as a trivial question but when does one use Pull up and Pull down as PUPDR register of the GPIO? I'd guess it's used to define the default state of ...
0
votes
1answer
16 views

Some questions regarding the SPI configurations to interface with nrf24l01 radio transceiver

I am looking at the product spec of nordic nRF24L01 transceiver module and trying to figure out how I can use with the STM32's SPI. The MCU that I have is STM32F4 nucleo and it's got 4 SPI peripherals ...
0
votes
1answer
32 views

I2S Data Structure (Inter-IC Sound)

There are tons of electrical descriptions of I2S; however, I cannot find information about how the data is formatted/structured. What I mean by format is, what does a value on the serial data line ...
0
votes
5answers
159 views

What happen when you store something greater than 32 bits on STM32?

A couple of questions regarding the word size: STM32 series have 32-bit wide words. Considering that, what happens when we try to store something more than 32 bits or even ...
0
votes
0answers
19 views

Communication with 14 UART/LIN devices

I'm working on device that will communicate with 13 LIN buses and forward everything to single UART bus. LIN is basically UART which uses one Bidirectional line that represents the single-wire bus ...
1
vote
2answers
72 views

Sensor data transmission without using a microcontroller?

What is the most traditional approach to getting sensor data onto a radio from an embedded device pcb that doesn’t utilize a microcontroller? Up until now, we’ve been utilizing a convenient firmware ...
0
votes
1answer
55 views

Adding a callback for processing the UART data seems to cause issues with I2C interrupts

So I wrote peripheral drivers on STM32 and wrote a simple application to read the user input via terminal and respond accordingly. I am using interrupts for both UART and I2C but the way I previously ...
1
vote
2answers
86 views

Difference between UART and USART and the essense of oversampling on STM32F4

USART is an asynchronous transmission whereas UART isn't (unless there's more to it). As shown in the photo below, USART being synchronous doesn't need start and end bits since clock is used to sync ...
0
votes
0answers
27 views

Why enc28j60 is not responding to another enc28j60?

I interfaced enc28j60 with atmega328p. Then I connected the enc28j60 board1 using ethernet cable to my laptop. I have checked the transmission and reception over the ethernet and it worked. I can sent ...
0
votes
0answers
44 views

Understanding the flow of the application with UART interrupts

I am trying to think of a design to make better use of UART interrupts. Currently, what I have involves calling a function that enables the UART interrupt control bits, and continues to poll till a ...
3
votes
3answers
204 views

Is it legal to create your own stm 32 board

Is it legal to create your own board containing STM 32 controller and advertise it commercially? I have made a custom board and want to advertise it - is it OK? Any legal/copyright issues? If yes how ...
0
votes
1answer
38 views

What does the word host in a host microcontroller mean?

The MAX32664 family can communicate with several of Maxim’s optical sensor solutions (see table for details) delivering raw or calculated data, as required by the user application. This is achieved ...
1
vote
3answers
48 views

Understanding calculations for baud rate fractional generator (STM32F4)

Trying to understand the USART_BRR oversampling calculation. According to the reference manual, if we know what value we want in the ...
0
votes
0answers
35 views

Embedded system - copying data from flash to RAM

This question uses some Xilinx-specific terminology. I'm currently working with a Zynq Ultrascale+ MPSoC (CPU + FPGA in same package). I'm using a QSPI flash chip to hold the CPU configuration code, ...
1
vote
0answers
72 views

Is this an elegant approach for a simple, debounced tank level controller?

I am interfacing some industrial (24v) process control equipment to some new projects in the embedded realm of electronics (3.3/5V small signal) and am coming up with some simple solutions for ...
1
vote
0answers
36 views

Is my design for data reading over an I2C bus and writing back to UART good enough?

So I implemented drivers for I2C and USART using interrupts with some guidelines online, and was wondering if I can get some suggestions from a design point of view even though the code works (tried ...
0
votes
0answers
36 views

File path issues - HAL_StatusTypeDef defined in hal_def.h isn't recognized in HAL driver header files anymore [STM32]

So i'm trying to figure out the cause of a bunch of errors that i'm getting that are related to file paths mainly complaining about HAL_StatusTypeDef which is ...
0
votes
0answers
30 views

Why aAtmega328p not responding to USBasp programmer? [closed]

I am using USBasp programmer to program my atmega328p. I am using fuses L : E7, H: D9 , E : FF. I have replaced a atemga328p on my board since it was not detecting on programmer. After replacing the ...
0
votes
2answers
68 views

What capability or features are needed to make a module programmable?

This is a noob question but I was looking at some modules just to realize not all of them have MCUs - meaning they can't be programmed considering MCUs have a flash memory where the programs are ...
0
votes
2answers
63 views

Why are most sensors designed to operate on a low voltage?

I took a look at sensor boards from Adafruit and Embeddio SNAP Boards and I've noticed that most of those boards use sensors that operate on a fairly low voltage of 3V3. Is there a specific reason ...
0
votes
1answer
63 views

How to detect in the code (Not have to design any extra hardware) if a (peripheral) PCB has been inserted/ plugged/ interfaced to the main PCB?

I have a main PCB with a microcontroller on it with lots of connectors on it to connect to many other (peripheral) PCBs which have sensors and report data to the MCU on the main PCB. I wanted to ...
0
votes
1answer
38 views

Suggestions for incorporating wireless capability to a simple sensor based project [closed]

So I have a simple application that involves reading the input over terminal via UART, and then responding accordingly, be it toggling an LED or outputting a sensor reading over I2C. As a step up, I ...
-2
votes
2answers
100 views

Finding the root cause of getting invalid pc load usage hard fault [STM32]

So I am playing around with UART by setting different baud rates at the RX/TX ends (9600 vs 19200), and I see sending data from serial causes a hardfault. When I checked into the respective memory, I ...
0
votes
1answer
32 views

Built in Self Test - In Embedded memories

I am reading this thing called -BIST (Built in Self Test). I understand that, before a module enters its intended functionality, this BIST is made to run within the module. Once, this BIST is passed, ...
1
vote
2answers
66 views

Usage of callbacks and circular buffer UART reads using DMA

Trying to understand the flow of the DMA transfer via uart: ...
0
votes
0answers
36 views

RTC not Responding

I'm using a MCP7940 with a Atmega328P on a custom board. I'm using the Arduino Wire library. When I first start communication to write the time to the registers, things seem to work fine but then in ...
1
vote
0answers
46 views

9*Help debug DMA TX bytes to UART

So I'm writing drivers for DMA for transmission for now and running into a few issues. So I am transferring bytes from memory to UART peripheral with a threshold of ...
0
votes
2answers
109 views

How is Machine Learning/Artificial Intelligence used in Electrical Engineering? [closed]

So i've been trying to find out the answer to this question but i can't seem to find a specific answer with examples. by the way i have heard about "Machine Learning Processors" but i don't know what ...
0
votes
1answer
48 views

STM32 Spi receive problem

I'm trying to do simple SPI communication on STM32 Discovery, HAL lib is used. I'm trying to send some data via SPI1 and to receive same data on SPI3 (SPI1 = Full Duplex Master, SPI3 = Full Duplex ...
0
votes
1answer
43 views

How to handle power failure in embedded SOC

I'm familiar with using BODs with microcontroller devices so that the system is safely pulled into reset and started when the supply is normal. I'm also familiar with projects on SOCs on devices ...
1
vote
1answer
37 views

Where is Interrupt Vector Table stored in ATmega32A?

Given that Atmega32A has three types of memory : 1) SRAM. 2) Flash (Program memory). 3)EEPROM. In which section the Interrupt Vector Table is stored ?
0
votes
1answer
39 views

How to change clock frequency of STM32L432KC

I am not entirely sure whats going on here. I think I'm changing the right registers but when it comes to trying to enable the ADC clock and GPIOA clock and etc there's no write action, I can't write ...
1
vote
2answers
65 views

How do I implement authentication on an embedded device? [closed]

I have been reading a lot about encryption lately but most sources just care about making sure that the connection between two parties is secure. I want to know how I can be sure that the party I am ...

1
2 3 4 5
24