Stack Exchange Network

Stack Exchange network consists of 175 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.

-5
votes
0answers
19 views

What are the charachteristic differences in ARM and PowerPC architectures inside a microcontroller?

I am currently studying the differences in ARM and PowerPC architectures in a microconroller.Can someone please explain me the differences between the two?
0
votes
1answer
29 views

LCD suddenly stops displaying

I am using a PC2002LRU-BWB-H-Q LCD with a STM32F4 micro and is powered through a TMP10424. There is also some 3V3 and 5V modules to. The problem is that the LCD is displayed fine for over days and ...
4
votes
3answers
64 views

How to properly use STM32 flash memory as an EEPROM?

I have to save certain parameters to the flash memory and these values should be non-volatile. But my program will change these parameters and I want the changes updated to the flash. I understand to ...
1
vote
1answer
35 views

USB D+ D- not present

So I am designing my first pcb and using an AT32ucb µc. It says in the data sheet it supports usb interface but on the pin-out listings and functions I can only find usb-id and usb-VBOF. So what am ...
0
votes
0answers
30 views

Using 19V, 3.4A power adaptor instead of prescribed 12V,3A power adaptor on an embedded box PC

I have an embedded box PC: Advantech Ark1122H. Instead of the prescribed 12V,3A power adaptor, I accidentally used a 19V,3.4A power adaptor that is supposedly for another embedded box PC. Now this PC ...
0
votes
1answer
36 views

When using SWD interface, is the reset pin necessary?

When using the SWD interface, is the reset pin is necessary? In JTAG, there are 5 pins TCK, TMS, TDO, TDI and RST but usually SWD is a 2 wire interface. So I am confused about this.
0
votes
0answers
31 views

Which micro-controller simulator or emulator to use? [closed]

I am an ECE student working for a lab at a university. My lab group has developed a PDE solver for a specific application that we would like to evaluate (run-time, accuracy, etc.) on various micro-...
-4
votes
0answers
26 views

What are the characteristic differences between ARM and PowerPC architectures? [closed]

I am trying to study the differences between ARM and PowerPC architectures inside a microcontroller. Can someone please explain the differences ?
0
votes
0answers
31 views

Converting handwritten SystemInit() function to CubeMX [on hold]

I have a handwritten SystemInit() function for STM32L476. I want to convert it to STM32F407 Discovery board and CubeMX format and use those pins which are not used on the Discovery board.
1
vote
2answers
82 views

How to choose the correct ARM chip and understanding the pins at a more intuitive level?

I'm just starting out my journey developing my own board and need some advice how to get started and understand a few things in better context. I will ask my first question first and provide the ...
1
vote
4answers
102 views

Volatile keyword with ADC, USB interrupt readings

I was just reading an answer about global variables, it also stated that I should use volatile affix whenever a global is used in an interrupt. In my program I am using a 30 byte ADC buffer without ...
0
votes
1answer
44 views

Why always in communication protocols R/W configuration,Reading is configured by “1” and writing by “0”? [closed]

when a microcontroller communicates with another one via one of the communication protocols there is a configuration bit in a control register to choose whether to send(write) or receive(read) this ...
0
votes
0answers
49 views

How can I shift bits in order to find the remaining weight on port D in this challenge problem?

So in my intro to embedded systems class I'm supposed to calculate the total weight that three sensors detect and are connected to ports A, B, and C respectively. Then I have to change the bit in PD0 ...
2
votes
0answers
54 views

Weird problem on STM32 ADC with Interleaved Mode

I am sampling a signal on STM32F3 Discovery board (stm32f303vct6) with two ADCs working in interleaved mode. It works great with a 200kHz 1V sine wave. But when I apply 10kHz 100mV sine wave, I see ...
0
votes
1answer
28 views

Unable to resolve ADC conversion error in stm8s105s6

I'm trying to learn ADC on stm8s105s6. But not getting proper adc result. I shorted VCC to analog pin 3 and expected conversion value near 1023 as stm8 has a 10 ...
0
votes
2answers
56 views

Setting pins as output Code - micro-controller

So i am using the MSP432 and i am confused on how the code for setting pin to desired function works. so for example from the manual i have found that: ...
1
vote
1answer
50 views

Delays using Timer in stm32

I am currently trying to achieve delay of 1 uS using timer in stm32 for my application purpose. SYSCLk is set to 16MHZ LSI and define same for timer clock. Timer used is a 16 bit timer. The logic I ...
0
votes
1answer
18 views

Clock gating on Tiva Launchpad

I am working on a Tiva launchpad board and want to use the GPIO. I have successfully enabled the clock on PORTF using this line of code: SYSCTL_RCGCGPIO_R = 0x20U; ...
0
votes
3answers
109 views

Embedded Architecture [closed]

The most common idea on 'new age' embedded devices - IoT Devices is using an Arm Cortex (Mostly M Series) processor as Central Unit and some Sensors and Peripherals for acquiring data and metrics (...
1
vote
1answer
52 views

How does ARM CMSIS functions access Core registers in unprivileged mode?

As per my understanding the ARM M4 core registers such as NVIC registers can be accessed only when the software is in privileged mode, that means it should be running in handler mode if I am correct. ...
2
votes
1answer
76 views

ARM Cortex-M3 Interrupts and Interrupt service routine &interrupt handler

I am trying to understand arm architecture and i got stuck with one concept, i.e, INTERRUPT SERVICE ROUTINE. I had gone NVIC structure for HARDWARE & SOFTWARE interrupts. But at some point i got ...
0
votes
1answer
44 views

Avrisp mkii not recognizing atmega 328p chips

I have three different sets of chips, the attiny85, 328p, 328p-au. Initially, the avrisp mkii, was programming the atmega328p, however now it is not recognizing this chip (i.e. 328p) or the 328p-au. ...
0
votes
1answer
50 views

Sending data over UART when data has been received over I2C on AVR

So I'm receiving data from an ESP module via I2C. I then need to send this data immediately over the UART. Not sure how I should do this. Would it be ok to place the UART sending inside the i2c ...
0
votes
1answer
128 views

Developing an embedded system; from arduino to microcontroller?

Can I develop an embedded system; starting with prototyping by using an arduino board. Then extract the hex code that I verified on the arduino board and load it on to a microcontroller. (Of course ...
10
votes
2answers
996 views

Is there a way to not have to poll the UART of an AVR?

I'm receiving data over UART from another AVR. However I'm doing other stuff so don't want to have constantly keep polling the UART. I know there are interrupts but I can only see one for receive ...
0
votes
1answer
50 views

Interchangeability of SWD programmers

I am a newbie when it comes to Cypress cortex M0 and ARM chips in general. The chip I am using supports SWD. I only know the basic of SWD like IO pins required for it. Does ARM support ...
1
vote
0answers
33 views

Help required regarding Cypress 4200 coding

I am a newbie when it comes to Cypress chips. I am developing a capsense keypad. I recently started with CY8kit049. I can code into the chip on board. How can I code other PSOC 4200 chips too using ...
2
votes
4answers
116 views

How can we determine memory usage of a microcontroller

How can we determine how much memory is being used, or will be used by firmware in a microcontroller? What tools can support this? Generally we don't use dynamic memory in embedded systems, but how ...
1
vote
3answers
165 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 ...
0
votes
1answer
41 views

Changing the Linux SDK in the embedded platform [closed]

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?
1
vote
2answers
271 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
58 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
124 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
71 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
44 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
49 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
166 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
96 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
49 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
86 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
41 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
99 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 ...
2
votes
1answer
136 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
89 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
262 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
58 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 ...
1
vote
1answer
99 views

Reading byte array in C++ [closed]

I have following code in C++ ...
6
votes
1answer
668 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
92 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
240 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. ...