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.

0
votes
1answer
18 views

MSP432+BLE+ Debugger interfacing

I would like to Interface a BLE to a MSP432 microcontroller in serial. The BLE has a inbulit Atmel controller. I have a firmware for BLE in keil. Intially I have flashed the firmware to BLE directly ...
3
votes
1answer
86 views

Compiler optimization prevents code from running

I was trying to upload a simple code to my board Tiva C EK-TM4C123GXL but it didn't work. I found out that when I turn the optimizer off, the code works fine. This is the code for blinking the on-...
-1
votes
1answer
36 views

How to figure out if I have reached the maximum bandwidth of usb 3.0? [on hold]

I have 10 intel realsense depth cameras connected via a usb hub to my laptop via usb 3.0 port. How would I know if it has reached its maximum bandwidth.
1
vote
2answers
50 views

Implications of dynamic frequency scaling in an embedded system

Dynamic frequency scaling is used to increase or decrease the speed of a processor to conserve power, heat, etc. I've seen my own processor fluctuate between 3GHz and 3.5GHz. What are the ...
0
votes
0answers
37 views

Cube IDE : Error: unknown type name 'HAL_StatusTypeDef'

I am taking code from a stm32f0 series and trying to convert it to a stm32l4 series dev kit. I have already changed the necessary addresses and include files that I needed to migrate, but I keep on ...
0
votes
0answers
25 views

Eclipse Plugins for STM32Cube-IDE

I am trying to explore this new IDE, but also have no hands on experience with Eclipse IDE.. "The new IDE is fully compatible with Eclipse, meaning STM32CubeIDE supports the thousands of plugins for ...
0
votes
1answer
76 views

Embedded Software Reliability Metric is short-term or long-term in time

If I test an embedded software (and the product based on this software) today and it fulfills all the customer requirements successfully at this point in time then I can safely say that this software ...
0
votes
0answers
16 views

Arduino DUE- flash space for user [migrated]

I need for my project to save only 32bit in non-volatile storage. What is the easiest/cheapest way to do that in Arduino DUE? ArduinoDUE is Atmel SAM3X8E so according to the attached table (from ...
1
vote
0answers
50 views

Embedded system code design vs functionality [closed]

If there is a newly designed consumer product using STM32F103 and it is performing its functions as expected during the burn-in testing phase.. but its software is spaghetti code which is not based on ...
15
votes
3answers
2k views

Why am I Seeing A Weird “Notch” on the Data Line For Some Logical 1s?

I'm attempting to build a Z80 homebrew computer for some retrocomputing fun and to teach myself the basis of electronic design. For proof-of-concept, I've already assembled a basic system on ...
1
vote
1answer
15 views

what triggers the PREADY signal in a slave of an APB?

I was trying to understand the state machine of an APB. I was curious on how the PREADY signal is triggered low so that it can exit from the ACCESS state? If anyone could help me with this basic ...
1
vote
0answers
50 views

MIT vs GNU licences for Embedded system projects [migrated]

For embedded system projects which have small hardware using MCU's and sensors and use open source c-source codes. How will it make a difference if my license is an MIT or a GNU licenses?
2
votes
3answers
148 views

Bare minimum FreeRTOS

My only requirement is time triggered cooperative scheduler. I heard they are more reliable and predictable. If I want to use only the 'cooperative scheduler' of FreeRTOS for STM32F103 then is it ...
0
votes
1answer
34 views

Tasks inside Interrupt Handler

Is there any schedular that exists for STM32F103 in which the 'tasks' are run at the ISR() level while the Schedular() code runs in the main() thread?
8
votes
1answer
203 views

SPI on STM32 won't work without pullup resistors and even then performs poorly

I've been trying to get the SPI1 on the STM32F103C8 (Blue Pill board) working correctly for some time now. As I'm just starting to learn ARM, I am simply trying to shift data to a 74HC595 shift ...
1
vote
1answer
51 views

Infinite While loop in Vivado

Here is what I am exactly working on: I have to run an infinite while loop and check the output on oscilloscope. As I change the processor frequency, I will get a ...
1
vote
3answers
111 views

int functions with no return statement

In a course I am taking on embedded systems, I program LPC1768s which are based on ARM using C. The main functions are always of int return type. However, there ...
0
votes
1answer
46 views

How to recognize an OTG USB port on an embedded device? [closed]

Sorry for the noob question, I'm trying to flash a new firmware on a tv box with rk3066. The datasheet says that the chip has OTG capability but there are 3 usb ports on the board and I can't tell ...
2
votes
1answer
115 views

CPU Utilization Methods

To fulfill customer expentations and fill out customer reports about the device, is there also one section about CPU Utilization. Because I have never done such task before I have overview some "...
0
votes
0answers
27 views

STM32 with Winbond W25Q80DV Write Data Issue

I am trying to store data in SPI FLASH MEMORY of WINBOND W25Q80DV. I am able to read status registers and manufacturer ID successfully but can't able to write data into it. The procedure I followed: ...
11
votes
3answers
1k views

Variable declaration with @ in C

I am reading some C code and came across this declaration in the program: unsigned char serv_ctr @0x0002; Can someone point me to documentation, or explain what ...
8
votes
2answers
439 views

Why are logically related bit fields in MCU registers often in separate locations?

Forgive me if this question has already been answered, but I was unable to find an answer either on this page or in the wider Internet. I'm an experienced developer with decent knowledge regarding ...
0
votes
1answer
48 views

STM32 USB programming using the OTG interface [closed]

I'm new to ARM based STM32 controller. The Controller which I'm using STM32F427VIT6. It has USB OTG FS interface where I need to program it using the USB interface. Is it possible to program or I have ...
0
votes
1answer
63 views

Why stm32 sends invalid data by spi?

Two boards: arduino nano and stmvldiscovery. Boards are connected by spi interface. Arduino is master device. Stm32vldiscovery is slave device. In the txBuf (transmit buffer) both board have the same ...
1
vote
3answers
82 views

Questions on STM32 multiple GPIO names

I started designing the development board for STM32F427VIT6 of LQFP100 package. Its has multiple USART and UART pins. The USART names in the datasheets are USART1, USART2, USART3, UART4, UART5, ...
0
votes
2answers
86 views

Post build flashing of configuration data in embedded systems

I need to implement a mechanism by which I should be able to update the configuration data of some of the modules in a post-build fashion. To describe, consider I have the following files: ...
1
vote
2answers
124 views

STM32F7 device freeze: cannot access registers

I am encountering random freezes with the STM32F7. This issue is difficult to debug as any debug session launched in Eclipse crashes when trying to halt the core, which makes it impossible to see ...
0
votes
2answers
159 views

Can VCC and ground be swapped on a microcontroller?

We have a Particle Electron microcontroller connected to an Adafruit RFID Shield(PN532). Somehow, the microcontroller's VUSB (+5V typical) ended up connected to the GND pin of the Shield and the ...
0
votes
1answer
57 views

Need help understanding how this decoder IC & differential amplifier circuit works

I need help to better understand differential amplifiers, when interfaced with an decoder IC. For the circuit below, which is from the reference design here: It shows a mono differential amplifier (...
0
votes
1answer
48 views

Configuring ADC on Nucleo-F401RE in Arduino IDE gives erratic values for input freq greater than 100Hz

I want to configure ADC on STM32(Nucleo-F401RE) using Arduino IDE and transmit the values through SPI to Basys 3 FPGA(End Goal). The ADC works for input signal frequency only below 100Hz. How do I ...
0
votes
1answer
84 views

what is a Pareto-optimal design?

I cannot find any information on this I can understand, is this even the right place to post this question? Asking in regards to the evaluation of different designs
0
votes
1answer
58 views

STM32 interrupt from Matlab Code

I'm using the STM32 MAT plugin and embedded coder for Simulink to generate C-Code out of my models to compile them onto an STM32F4. As IDE I use TrueStudio and for my MCU Configuration I use CubeMX. ...
2
votes
6answers
206 views

Memory allocation in embedded software development

In embedded systems, the use of dynamic allocation is strongly discouraged. MISRA C do not allow using malloc and calloc because of their unexpected behaviour. My question is: How do you handle memory ...
1
vote
2answers
113 views

How can I determine how much memory a function occupies?

How can I view how much program memory a function is occupying ? I am currently at 95% program memory usage and do not have a licence to enable optimization. I am looking to find out which functions ...
1
vote
1answer
49 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
230 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
38 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
36 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
55 views

When using SWD interface, is the reset pin necessary? [duplicate]

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.
1
vote
2answers
86 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
110 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
45 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
51 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 ...
3
votes
0answers
109 views

Weird problem on STM32 ADC with Interleaved Mode

I am sampling a signal on the 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 ...
0
votes
1answer
29 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
62 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
174 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
20 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
111 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 (...