Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
19 views

Error handling in embedded systems development

I am developing a Firmware and I am using 3 layers: Driver, Platform and Application. In order to handle the communication between these layers, I am using an approach where each function will return ...
-1
votes
1answer
33 views

Changing the Linux SDK in the embedded platform

I am using an embedded platform that has Linux SDK version 2. It supports only gcc 4.9.2. Is it possible to configure the system to run gcc 8?
0
votes
1answer
48 views

How to calculate bus load of CAN bus?

I have a few questions regarding CAN bus load Is there any derived equation/formula to calculate the bus load? I need transmit below frames(Assume Standard frame format) at baud rate 500 kbps on the ...
1
vote
1answer
33 views

SAM Timer counter / atmel ASF

I'm trying to implement function call after having timeroverflow or comparison of counter registers. Chip: SAM4E ...
1
vote
1answer
34 views

connect Micron SDRAM to STM32H7 FMC but what should I do with DQM pin?

I plan to connect SDRAM from MICRON MT48LC series ( datasheet. The pin connection diagram is automatic generate by STM32CubeMX ( STM32H743 ). The setting is an 8-bit data bus, a 13-bit address, 4 ...
0
votes
1answer
67 views

Fingerprint scanning repeatedly

I am using 2 fingerprint module to make an attendance machine. Normally i have seen the attendance machines just need the user to put his/her finger on the scanner and it is scanned.. then next ...
0
votes
0answers
39 views

How to make use of Internal Oscillator in PIC16F676?

Im a beginner in PIC and using PIC16F676 for making an LED blinking program. But every tutorial uses an external oscillator. I want to make use of the internal oscillator to do this, so can anyone ...
2
votes
3answers
46 views

Does the addresses of an arbitrary peripheral register can be used to store data randomly during code execution?

I need to make sure of the concept of volatile qualifier in C-language. so volatile is used when we don't want the compiler to optimize the variable being identified as a volatile or in other words ...
1
vote
1answer
71 views

PICkit 2 VPP voltage level error. Check target & retry operation. Error in PICkit 2

We are using PICkit 2 (STL035V2.0 See here ) to program a PIC 16F676. We got the error : PICkit 2 VPP voltage level error. Check target & retry operation. Error in PICkit 2. We also ...
1
vote
4answers
92 views

Why is String Conversion Necessary to LCD

So I got this code up and running and it works fine but I don't understand just why and what it is the code concerning the ldc display string is doing. I know it has something to do with different ...
0
votes
0answers
47 views

Can I programming Bluetooth module internal registers through UART?

I have a customized Amicomm A8107 Bluetooth System-in-package (SiP) module for a project in a PCB with a STM32F103Z micro-controller. I have 5 connections between my microcontroller and the BT module: ...
2
votes
1answer
72 views

ATSAMR21 sleep high current draw

I have an ATSAMR21B18-MZ210PA, which is an ATSAMR21E18 packaged with MX25L2006E flash. The SAMR21 is itself a SAMD21 paired with an AT86RF233 wireless module. So that's a SAMD21 + low power wireless + ...
1
vote
1answer
33 views

msp430FR6989 board code problem

Working on a school project and I am stuck on my last bit of code. Let’s say S1 is held down and the red LED is on. If, in the meanwhile, S2 is pushed, the green LED remains off and the red LED ...
0
votes
0answers
95 views

Bus fault when accessing mcu internal peripheral

I am struggling with a bus fault error on my samg55 µC based on arm cortex m4 architecture. The issue occurs sporadically and is not 100% reproductible. Let me give some details. Application code ...
1
vote
1answer
37 views

Confused about the XIP (eXecute In Place) function of QSPI FLASH

There are lots of NOR QSPI FLASH chips that support XIP (eXecute In Place). In this mode the embedded cpu (or MCU) can directly execute the codes stored in the flash. But as we know, the qspi flash ...
0
votes
1answer
69 views

Unable to interface BeagleBone Green with MCP3008 ADC using SPI

I am unable to interface MCP3008 with BeagleBone Green. I am trying to set communication in mode 0 (CPOL=0 CPHA=0), the built in frequency in dts is set to 1MHz. Things I have tried: Enable device ...
2
votes
2answers
120 views

What's the difference between a generated hex file and a binary file in embedded systems?

I have an STM32 project (let's call it blinky). This project is developed using Keil IDE. It blinks an LED every 1 second. When I build it, a HEX file is generated. Let's say I want to upgrade the ...
0
votes
1answer
39 views

What is the 'H' in 'RWH' for register access type in mcu register map?

In the EFM32 Ref Manual, on pg 256, there are some registers in the timer peripheral's register map that have an access type of 'RWH'. I understand that R and W mean Read and Write, but what does H ...
0
votes
1answer
91 views

Reading byte array in C++ [closed]

I have following code in C++ ...
6
votes
1answer
612 views

Inaccurate timer interrupt STM32

I wrote a simple program to toggle an LED on and off using the TIM1 interrupt on an STM32F0 discovery board. CLK Freq = 48MHz Prescalar = 48000 Auto Reload Register = 1000 Using the following ...
0
votes
0answers
46 views

Power Monitoring on nVidia Jetson TX2

I'm performing an analysis of power consumption of CNN ( with the trtexec tool ) on Jetson TX2, varying the Host and Device frequencies. In the past I have performed this power analysis through a ...
0
votes
2answers
112 views

Generate and flash a binary file for STM32

I created a bootloader image for my STM32 and I stored it in a specific area of the memory. I have a new Keil project which represents the application layer. By default, Keil generates a HEX file. ...
0
votes
0answers
59 views

Can I use PICKIT3 instead of STLINK for programming STM32F103C8?

Can I use PICKIT3 for programming STM32F103C8 instead of STLINK ?
0
votes
1answer
18 views

How do I add existing files to a newly created group in Keil u Vision 4

I have struggled with this problem for hours now. I have created a new group in the project structure called inc. I have some existing header files that initialize the hardware in a separate folder ...
0
votes
0answers
39 views

Which chip is NVRAM on?

Where is NVRAM(Non-volatile random-access memory)? Which chip is NVRAM on? Is it on Flash, CPU or RAM? I have an embedded Linux router, which according to google has ...
0
votes
2answers
121 views

Bus-powered non-USB device (like fan,lamp) USB pin arrangement to getting highest power from USB host

Bus powered means device that only use Vbus of USB for it's power supply. I want to use micro USB as my board power supply. The is designed to take 600mA by 3.3v regulator. But I just don't know how ...
0
votes
1answer
35 views

Can you speed up debugging in Renesas High Performance Embedded Workshop by not flashing after breakpoint

I am debugging an H8S MCU in Renesas High Performance Embedded Workshop 4 with the attached E10A emulator, and find it's very slow when stepping through code because it keeps reflashing the chip ...
0
votes
0answers
21 views

How to listen to beacons(broadcaster) using the simple_observer example?

I am using the TICC2640 for this purpose. I am trying to use the simple_observer example from the SDK to listen to beacons. I am able to scan the devices and print their MAC addresses. I am ...
0
votes
2answers
90 views

Current drawn by microcontroller

How to estimate current drawn by microcontroller(on the ADC port) when interfaced to a module/IC/sensor theoretically? MCU manual: https://nxp.com/docs/en/data-sheet/LPC2131_32_34_36_38.pdf
0
votes
1answer
54 views

power consumption of sensors

How to measure the power consumed by a temperature sensor theoretically? The datasheets mention the supply voltage range and output current. So, to calculate the power supply current will be used in ...
0
votes
1answer
66 views

Embedded System power requirement calculation

How can I measure total power requirement of an embedded system which consists of a lpc2138 interfaced with various other components such as lcd, humidity sensors and temperature sensors. Also the ...
0
votes
1answer
42 views

Embedded web server

I am working on a college project in which I want to embed a http web server on a TIVA launchpad eval board. I have been looking through the internet for any guidance on the subject but the ...
0
votes
2answers
42 views

Does current draw of separate pins of a microcontroller affect each other?

I have a microcontroller with a IR LED and transistor, as well as a RGB LED. If my battery microcontroller is turning on its RGB LED, connecting to cellular, will this mean less current is going to my ...
0
votes
1answer
66 views

What does it mean when i2c_smbus_read_byte() returns 0

i2c_smbus_read_byte() returns a negative value when there is an error in reading data. But what if it returns 0? Following is the code from adt7316-i2c driver ...
1
vote
2answers
191 views

Combine C and C++ in STM32 application development [closed]

Generally, developing embedded systems applications is based on abstraction. We expose some functions from lower layers that can be used in the application layer. My question is: Can I develop the ...
0
votes
0answers
69 views

Going from PIC to ARM

I've been wanting to expand my embedded skillset with ARM MCUs after spending a few months working with pic24 devices but I've hit a roadblock. I wanted to start programming ARM more "on the metal" ...
0
votes
0answers
29 views

CC2530: adapting AVR/pgmspace.h for Zigbee

Goal: Adapt ENC28J60 codes written for ATMega328p (http://tuxgraphics.org/electronics/201204/embedded-ethernet-client.shtml) for CC2530. Problem: No equivalent library for AVR/pgmspace.h available ...
0
votes
1answer
78 views

How to understand “Power Up Checksum” in embedded system?

For an Embedded hardware system, how do we understand the "Power Up Checksum" in the initialization part? How does it work in detail? (Where does it check, what is the mechanism) A "Power Up ...
1
vote
3answers
128 views

Embedded Firmware Question - Memory dump

Ok so the back story is this. I landed an online code interview with a company that shall remain nameless. I know I am not ready for a job there but I was basically given the chance by an insider. ...
42
votes
9answers
6k views

Using volatile in embedded C development

I have been reading some articles and Stack Exchange answers about using the volatile keyword to prevent the compiler from applying any optimizations on objects ...
1
vote
2answers
159 views

Finding the address of structure knowing the address of one of it's members in C

This sounds like a little too far fetched, but is there any possibility to find the address of a structure, if the address of one of it's members is known? The struct itself contains different data ...
18
votes
7answers
3k views

Necessity of an external watchdog timer

What is the need for an external watchdog timer for a microcontroller? Most of the microcontrollers are designed with an internal watchdog timer. However, in some of the circuits they are using an ...
-3
votes
1answer
77 views

PIC 10F200 MCLR PIN as Output

I need To use MCLR pin to make led blinking using this configuration but I conn't write the code for that
1
vote
1answer
140 views

Whats the most effective int on a 8-Bit Microcontroller? [closed]

The size of an int is defined by the compiler, not by the processor. Thats why e.g. int_8 exist. However, I was thought that usually int is the most effective datatype. Is this still true when e.g. ...
1
vote
1answer
110 views

Systems similar to TI's PRUs [closed]

I have been working with TI's PRUs on the am335x, equipped on the BeagleBone Black. I would like to know if other hardware manufactures offer similar systems. I am doing my Bachelor Thesis on this ...
0
votes
1answer
108 views

ModBus Timeout Error

Anyone very experienced with Modbus & RS-485??? My task is to control a DC motor using micro PIC24. The motor setting like the angle, delay, start/stop, duty cycle, etc will be sent from PC using ...
21
votes
4answers
3k views

Why are SRAM based FPGA used more than NVM based FPGA?

SRAM based FPGAs need to load the bitstream again after power off. Meanwhile the Non-Volatile based one don't need that. I wonder, why are more experiments and security research done on the SRAM ...
0
votes
1answer
70 views

What is the difference between system clock and peripheral clock in case of arm Cortex M4 architecture? [closed]

System clock/core clock is the clock that drives the CPU. I understand that different internal peripherals use the oscillators. How do both differ from each other?
1
vote
0answers
44 views

Two-Terminal Passive Analog Component Tester Using the DE1-SoC Development Board

I am having hard time understanding this problem. I have to draw a Level 1 block diagram for this system. I really appreciated it if somebody can help me. I am new to DE1-Soc. use the Intel DE1-SoC ...
1
vote
2answers
143 views

How to design Watchdog timer that reset the system if Watchdog counter is not cleared at least every 1/4 seconds

This is the code I have for a green LED blinking every 2s with watchdog mode for MSP432. ...