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
1
vote
0answers
24 views

Debug and View Registers

I would like to view and analyze the registers in STM32 Embedded Cards(For Ex. STM32F407DISK) in STM32CubeIDE. As far as I know from the user manual and my own experience in CubeIDE, I did see my ...
0
votes
1answer
59 views

Signals acting weirdly in VHDL

I've always been told that a signal updates its values after a wait statement, or after a rising edge if we have for example if rising_edge(clk) then but in this testbench, after the first wait ...
0
votes
1answer
49 views

Parameters of One_Wire protocol function

How can we explaine the following line of statement in mikroC PRO for PIC Ow_Reset(&PORTE, 2); // Onewire reset signal I understand that ...
1
vote
1answer
68 views

How to suppress unused C library functions in SDCC compiler?

Previously I used the COSMIC compiler for STM8 development. In a cosmic compiler, there is an argument called 'SPLIT' which can be passed while using it on the command line. This allows the linker to ...
0
votes
1answer
76 views

Is it possible (and worth it) to store non-const program data in FLASH rather than in RAM?

I'm the situation that my program stack variables take 24kB, and global variables take 27kB. My MCU's SRAM is only 40kB. Would it be possible to store part of the data anywhere else? For example, in ...
0
votes
1answer
57 views

What pins in Radar ECU and Camera ECU should be detected for OC, STG, and STB faults and why?

A typical Electronic Control Unit(ECU) performs Open Circuit(OC), Short to Ground(STG), and Short to Battery(STB) Diagnostics on selected internal and external pins in the ECU. For example, consider a ...
-1
votes
0answers
61 views

Changing layers order while keeping stack-up

I have progressed really far with my project until I found out that the manufacturer had set different reference planes for my signal layers than the ones I intended to do. Here is the stackup that I ...
-1
votes
1answer
103 views

A question on handles in embedded C [closed]

Regarding handle concept in C the following is stated: The term handle is sometimes confused with a pointer. A handle is a reference to a system resource. Access to the resource is provided through ...
1
vote
1answer
59 views

Shared storage between microcontroller and Embedded Linux system

I'm working on a project in which I have to solve this problem. I'm not sure if it's unique, but it's certainly not one I've seen before so I thought it'd be interested to get some input from people ...
-5
votes
3answers
80 views

What is the bootloader function in Microcontrollers? [closed]

In PC Bootloader is necessary to show where BIOS is located in memory, and then BIOS starts actual operating system etc. But how is situation in embedded, where MCUs actually usually don't have ...
14
votes
6answers
5k views

Why do microcontrollers need a programmer device?

I mean, if binary code is already generated by PC, wouldn't it be possible to just take this binary code, transfer it to a specific place in flash memory via specific bus, for example Serial Wire, ...
4
votes
3answers
510 views

What is the meaning of the keyword "__weak" in this callback function in HAL GPIO function?

I have started learning STM32 programming in HAL and I am confused about what this function exactly does: ...
0
votes
0answers
23 views

Possible OBD-II/OBD2 connections for development phases

Is there any paper/document that summarizes all connection scenarios or cases when you are developing an OBD-II/OBD2 project for automative/car electronics? For instance, Scenario 1 : Real car -> ...
0
votes
1answer
44 views

Defining VIN trace width of DC\DC

I intend to use RT8068A in the following design: The requirements are: Vin = 3.3V, Vout= 2.5V, Iout_Max = 1A (+VPP is connected to DDR4 Memory SODIMM-260, 32GB, 2400MHz/2666MHz, 1.2V). My question is,...
1
vote
1answer
102 views

Assisted GPS (AGPS) on SIM7600 module does not work

I recently got a SIM7600G breakout board and wanted to use it with the CGPS functionality for A-GPS. It works with connecting with my SIM to the Internet and all, but when I try to use AT+CGPS=1,3 (UE-...
2
votes
1answer
56 views

stm32f051 - Config Timer14 to Interrupt only by counter overflow, not by counter initialization

I'm new to the world of embedded and I'm implementing a short, long and two-click on a button logic in my project on a stm32f051 I'm having a problem with the timer interrupt, I want it to generate ...
0
votes
1answer
42 views

PIC16F886 and Switch Setup with Diode

I would like to make a simple embedded program that will Display what is happening on and LCD screen. When Switch One is pressed, it displays "Switch One". When Switch 2 is pressed it ...
0
votes
1answer
68 views

What is the best approach to learning hardware design? [closed]

I am a self taught software developer who has recently become interested in embedded systems. I am interested in learning how to design PCBs and learn about the electrical components the PCBs house. I ...
0
votes
1answer
52 views

Fudan FM33LG048 microcontroller draws too much current in deep sleep mode

I am working with Fudan FM33LG048 low power microcontrollers. Despite turning off all clocks except low frequency external oscillator, disabling all peripherals, and entering to the deep sleep mode ...
1
vote
2answers
91 views

How to interpret this line in binary for this STM32 HAL function?

The following line of code sets(to logic 1) pin 12 of port D in an STM32 microcontroller: The middle argument of the above HAL function is GPIO_PIN_12 and when I hover on it shows: ...
0
votes
1answer
45 views

Lattice ICE40-LP1K 84-QFN SPI Flash Programming

I'm using ICE40-16-WLCSP-Eval-Kit as a reference design for the Lattice ICE40-LP1K 84-QFN which I'm going to use in the motherboard I'm designing. I did a little experiment with ICE40-16-WLCSP where I ...
0
votes
1answer
41 views

Internal Pull-Up (PU) for LATTICE ICE40 LP1k

I'm using AD8541 Amplifier as a Power Good indicator for +VCCST_CPU that comes from Intel Tiger Lake UP3 on the motherboard I'm building. The outputs V5S_OK and VCCST_CPU_OK go to an ICE40 LP1k FPGA. ...
0
votes
1answer
36 views

Connecting MISO and MOSI signals between master and slave

My goal is to flash the external SPI of ICE40 FPGA through Dediprog before powering on the FPGA and let the FPGA read the image file in the SPI after powering on the FPGA. after trying doing this on ...
2
votes
0answers
46 views

New ATSAMD21 chip, flashed Bootloader OK, but USB Device doesn't show up

I'm trying to build my own custom PCB based on an ATSAMD21E chip. I made a PCB breakout for the ATSAMD21E that just supports the reset button, a 3.3V voltage regulator, and a couple of capacitors. ...
0
votes
0answers
16 views

Checksum Error Using Dediprog to Flash M25P80

I'm trying t flash an image to M25P80 which is part of iCE40 16-WLCSP Evaluation Kit using Dediprog SF100 and their software tool. So I connected the Dediprog cable (shown in the picture) to J10 ...
2
votes
1answer
66 views

Mass storage for timing critical applications

I am working on a data logger that requires measurements to be taken during narrow time windows. I have been storing the measurement data on SD cards, however, the write times are very inconsistent, ...
0
votes
1answer
74 views

Electronics and electrical projects certification [closed]

What certification is required to sell my engineering projects online in India? if I build my project as product to sell online what certification is required for this as well?
2
votes
1answer
71 views

Roll out software update to multiple STM32s from a TCP/IP connection to PC

This is more of an "is this possible" kind of question, I'm not looking for a detailed step by step, more of a go ahead before I pull the trigger on all of the parts. I am in the design ...
3
votes
1answer
42 views

STM32F446RE PLL Config: What are the benefits and drawbacks of using different PLLCFGR register settings to achieve the same PLL output frequency?

Background I am learning how to configure the System Clock, and I am seeking help in understanding the benefits and drawbacks of various combinations of settings for PLLM, PLLN, and PLLP in the ...
1
vote
0answers
43 views

Can I use the ST-LINK for programming and debugging STR7 Chips?

Is it possible to use the ST-LINK V3 to program and debug STR7 Familiy chips? If not, what programmer can I use?
1
vote
0answers
74 views

How to program interrupts with standard peripheral libraries on stm32f103vet6?

I tried to program an interrupt with S2 that is connected to PB1 on my stm32f103vet6 board, but I failed and I don't know why! The codes here: ...
1
vote
1answer
86 views

Creating internal write and read enable pulses for a FIFO

I am trying to learn how to use Vivado's IP core generator. I came up with a simple project where I want to use a counter that measures the width of an incoming pulse, writes the measurement into a ...
1
vote
1answer
77 views

How to use GPIO on STM32 (F103VET6) as a kind of of output battery?

After I learnt how to blink LEDs on the board, I came up with the idea of making a LED matrix. The schematic is like this: But I could not figure out how to light it! Every LED can be lighted under 2....
0
votes
0answers
29 views

TMS320F28335: Operating two converters using one controller(28335) for battery charger

I am trying to control two converters using a single DSP 28335. Converter 1: Three-phase active front end converter(fsw=10kHz) ----sampling frequency= 10kHz(100us) Converter 2: DC-DC phase shift full ...
0
votes
1answer
83 views

STM8S: How to keep my functions from being interrupted by the delay function?

I was building a simple blink application on an STM8S. The LED on-off interval was controlled by the delay function using the TIM4 interrupt. A button event monitor is using another external ...
1
vote
1answer
26 views

Sequential writing from different hosts to one SD/SDIO

I was wondering if it is possible to access one SD card via two or more hosts via some sort of hub and write to it data sequentially (i.e host1 writes a bulk then hostN writes another bulk)
0
votes
2answers
81 views

Transferring large amount of data between MCUs running Linux and FreeRTOS

I have two MCUs: one running embedded Linux and the other FreeRTOS and I want to be able to send variable-sized payloads between them and large amounts of data (probably upto 5K bytes or so). Ideally, ...
0
votes
1answer
145 views

STM32 How can I run code from ram?

I have this really simple "Hello world" piece of software (project attached), running on a STM32WB55 Nucleo board (basically, it sends "HELLO WORLD\n" via USART1, every 1000 ms). I ...
-6
votes
2answers
84 views

Do all printers have Linux operating system in them so they can have colour LCD, network and USB support? [closed]

I have found that recently all printers have a complex GUI on small LCD. Also, for a long time now, they have had network and USB support. Now they can also connect via WiFi and print directly from ...
0
votes
2answers
64 views

The HAL drivers are feature-oriented instead of IP-oriented. What does this mean?

I had bought a STM32F3 Nucleo board sometime back and today I started going through the HAL documentation for that board. It said that the HAL drivers are "Feature-Oriented" and not "IP-...
0
votes
0answers
59 views

Embedded Android for custom device

I am using a SOC (System on a Chip) attached to some peripherals like camera and screen. Since this is not a very common hardware setup like a Raspberry Pi where there are adapted android builds for, ...
0
votes
2answers
136 views

Which is the best sensor to detect accident in a vehicle eg. A car?

I did some research on this and came across MEMS sensors, there were quite a lot of them, but most of them acted as a gyroscope which would give output for left-right front-back tilts. I want an ...
0
votes
3answers
104 views

How to make force sensitive resistor energy efficient?

I'm trying to sense when pressure stops being applied between two surfaces with a small embedded device connected to a coin battery smaller than 50mAh. All I care about is if they're separated or not (...
1
vote
0answers
81 views

can't view the transmitted bytes over UART on the received end as expected

I wrote a simple function to transmit the data over UART on nRF52 but having trouble seeing data on the receiving end: terminal. Every time I transmit something, it comes out as ? in a serial console, ...
1
vote
2answers
95 views

Are peripherals in microcontrollers purely hardware or do they run code?

Specifically in Cortex-M4 (if that matters), when doing GPIO you need to write and/or read from GPIO's memory-mapped registers. Before diving deeper into library code that handled this for me, I ...
0
votes
0answers
92 views

Is this design correct? How can I improve it?

I designed this circuit to control a total of 4 motors via a web interface hosted on the ESP32. The bridge is simply a 0 ohm resistor needed to activate the motor driver. The L80-M39 is an integrated ...
-1
votes
1answer
70 views

Error: Definition of nested anonymous union in packed "" must be __packed

I'm using the ARM DS-5 with the ARM 5 Compiler Toolchain. I'm attempting to use the "mavlink_types.h" (link: https://github.com/mavlink/c_library_v1). However, I've got an error said that: ...
0
votes
2answers
128 views

Embedded C++ save and restore data

I am working on an embedded C++ project. I am dealing with complex and dynamic objects with lots of objects pointing to one another. I need to store and recall these objects to non-volatile memory. In ...
0
votes
0answers
29 views

Samsung 32GB Evo SDHC Not Responding Correctly to CMD55

I am using the fatfs module by elm-chan. I have a Samsung 32GB Evo SDHC and trying to initialize it according to the suggestions presented in this thread. My code is stuck at sending cmd55 without ...
1
vote
0answers
85 views

STM32F4 Discovery ST-LINK no detection error

When these headers are on, I simply plug the STM32 to the computer by a micro USB expecting the embedded ST-LINK to upload the code to the system but I get "No ST-LINK detected!" error. Do ...

1
2 3 4 5
29