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
1answer
77 views

Can I add more RAM to the stm32f103c8t6? [on hold]

I am currently working on my project using the "super blue pill" which uses the stm32f103c8t6. This board has about 20kb of RAM so there is not too much to work with here. So far I have managed to ...
-1
votes
3answers
77 views

Startup code in pure Assembly program [on hold]

I came across some articles and books that saying when, I write in high-level language like C, startup code is used to prepare for my main code but when I write my program in pure Assembly there is no ...
-1
votes
4answers
94 views

Is my STM32F103C8T6 bricked? [on hold]

]2I recently started learning how to develop on the STM32F103C8T6. I got the Mastering STM book and followed it to run the first program, which was blinking the onboard LED. I ran the code and made ...
2
votes
0answers
32 views

Need help troubleshooting Teensy 3.6 SPI to DAC8568

running out of things to check with this problem I'm having. I designed a board around the Teensy 3.6 microprocessor, and I wanted to connect a DAC8568 chip to it for some analog outputs. It works ...
0
votes
0answers
41 views

Mecrisp-Stellaris Forth on TI Tiva C LaunchPad

I'm currently trying to load mecrisp forth on a spare tiva c series launchpad (TM4C123) board I have at home and am not having much success. I'm an electrical engineering student and while I've ...
-2
votes
5answers
117 views

Bitwise operations in embedded C if button pressed on AVR circuit

I am using ATmega32 AVR microcontroller. I am confused about bitwise operation in embedded C. I understand (AND, OR, XOR, NOT) logic gates very well, but there is something that I don't understand: I ...
1
vote
1answer
61 views

VISA: (Hex 0xBFFF0015) Timeout expired before operation completed

I'm writing a simple code in Python to remotely send commands from PC to RSHameg HM8134-3, using USB. I'm using visa to do so. Something to note, when I write to it, it doesn't give me any errors(...
1
vote
3answers
115 views

Can we connect Earth , Neutral and Digital Ground together in electronics system?

In our project has Digital Ground , Earth and Neutral. As per the requirement Digital Ground and Earth ground tied through Bead inductor. Is it advisable to connect Neutral with Chassis and Digital ...
1
vote
1answer
71 views

How to define the SPI pins in an ESP32 module?

I am working on a project where I am integrating BME688 ,CAN, LoRa, SD card, ePaper display and WiFi module. I am using the board Heltec LoRa V2. And I have found this pin diagram. What I don't ...
1
vote
2answers
54 views

CAN Transceiver Current Draw

I'm trying to determine the input current required to operate the following SN65HVD233 CAN transceiver at 1Mbaud: http://www.ti.com/lit/ds/symlink/sn65hvd233.pdf The first spec I see listed is ...
2
votes
1answer
114 views

100s of devices on SPI bus with daisy chaining - theoretically possible but who's done it?

I need to control 512 knobs digitally using 128 digital potentiometers. The AD5204 supports daisy-chaining but what do I need to be careful of when interfacing this with a ATmega328P? I plan to split ...
21
votes
6answers
2k views

How do you structure large embedded projects? [closed]

Background: Junior R&D electronics engineer (the only EE in the company) - the hardware and the coding is not the problem. My biggest issue is getting a proper overview of the project, and where ...
0
votes
2answers
74 views

How to configure PWM on STM32F429I-Discovery Board

Currently I have some difficulties on the Discovery Board STM32F429I to control the on-board LEDs via PWM. According to the data sheet of the Discovery Board the LEDs are located on pin 13 and pin 14 (...
2
votes
2answers
465 views

What is the meaning of “do not populate test points” in a board schematic

I was finding test points in a schematic of an Analog Devices Evaluation board. In one of the schematic pages, there is a clause mentioned "do not populate test points". Does anyone knows what it ...
0
votes
1answer
41 views

SPI pins logic level issue [closed]

I have ESP32 and the popular dot matrix module MAX7219 8*8 module to interface. It is connected through SPI pins. After a sample word printing on the maxtix it shows garbage outputs. Is it happening ...
0
votes
1answer
41 views

Live variable view using openOCD and VScode

I really like using VScode + cortex debug extension + openOCD over Keil or Eclipse in embedded projects. Although i wasn't able to figure out how to set up live variable view, which you can set up ...
8
votes
2answers
880 views

PIC12F675 GP4 doesn't work

I'm using a PIC12F675 for a project, and everything works fine except one thing. GP4 does not work as digital IO. I've looked at the configs and the code a lot, but couldn't find anything. Config: <...
0
votes
2answers
57 views

Reading current memory image from a micro controller

I have the MPLAB XPress Evaluation Board, which has the PIC16F18855 microcontroller on it. The way to program it is just to copy a ...
2
votes
1answer
80 views

How can I protect a microcontroller from memory corruption due to buffer overruns? [closed]

I have recently been working on what I believe is a buffer overrun problem in a microcontroller with software that I wrote. I'm using an Atmega328PB, so it has no such thing as a MMU or address space ...
1
vote
1answer
58 views

serial monitor error/crash

After typing C, microcontroller responds with # Next, I type k, microcontroller responds with #INFO: TWI master enabled Next, I type !, microcontroller responds with C after typing in the next ...
2
votes
1answer
48 views

PIC12F675 ADC not working properly

I wrote a code that takes an analog input from a potentiometer and controls the frequency of a clock pulse. So, the idea is to increase the frequency when I increase the pot and decrease the frequency ...
0
votes
1answer
56 views

What is Mikrobus purpose?

I'm new to embedded systems. I have MPLAB Xpress Evaluation Board. I see that the board has MikroBUS connectors. Going through the internet, I couldn't understand what is the purpose of the MikroBUS? ...
0
votes
0answers
57 views

How to get analog input using PIC12F675

everyone. I'm new to embedded systems and I want to program a PIC12F675 for a project. I have most of the code figured, and there is only one thing left. It's the analog input. I tried some tutorials,...
7
votes
6answers
2k views

Concept of the static keyword from the perspective of embedded C

static volatile unsigned char PORTB @ 0x06; This is a line of code in a PIC microcontroller header file. The @ operator is ...
1
vote
1answer
120 views

Programming of ADC in PIC12F675: Not Working Properly

I'm new to embedded systems and I want to program a PIC12F675 for a project. So, the idea is that there is a switch. If the switch is off, the microcontroller normally outputs a clock signal, which ...
1
vote
2answers
86 views

Which flash sector to write into?

I need to save working configuration of my embedded application to the flash memory. I am using STM32f746 uController. According to the datasheet. There is 8 sectors on the main block of the flash ...
1
vote
2answers
118 views

STM32F4 Discovery board only works in DEBUG mode

I generated my project with STMCUBEMX with CAN, SPI, I2C peripherals and did some coding on top of it. Code basicly polls the CANBUS, stores data to some IC over i2c and sends the processed data to ...
0
votes
1answer
37 views

What is single and multi connection mode( AT+CIPMUX=0 or 1) in esp8266 AT commands

I was studying the AT commands to program atmega328p for the communication with esp8266. Now I am confused with the command AT+CIPMUX=0 or 1 , it explains that 1 for multiple connection, 0 for single ...
0
votes
2answers
108 views

Prevent compiler optimization for memory access in reflashable memory area

I am working with an embedded software in which part of the software(some CONST config values) are reflashable, without modifying the application software. Consider the following code: ...
0
votes
0answers
63 views

Embedded system with hot swapable sub modules

I am designing a embedded system where a master microcontroller (or possibly a SoC) needs to communicate with several different sub modules with a microcontroller of their own. The sub modules should ...
0
votes
1answer
72 views

ILI9486 Display Init FSMC

I have ILI9486 based tft display to initiate via 16bit FSMC. I did gpio, fsmc, and lcd initialization. ...
2
votes
0answers
51 views

USB Audio Interface with DSP [closed]

I am looking to build an audio interface that can also use real-time DSP to process audio coming from (most important) and going into the host. After some research, I have been zeroing in on the ...
-1
votes
2answers
72 views

how to find GSM service level of a IP-connection?

I am using a GSM modem to send data to a remote server over TCP/IP connection. I am using STM32F103 for the software. I want to connect 3 LED's with the 'F103 to indicate which connectivity and ...
2
votes
1answer
85 views

How to program STM32f411RE chip?

I've developed a prototype using the STM NUCLEO (NUCLEO-F411RE) board and now that I am happy with design I am now in the process of testing everything together on my own PCB. All the other components ...
2
votes
2answers
50 views

Problem in Clock Gating Control with ARM Tiva C

When I access a peripheral register (such as a GPIO port) just after enabling the clock gating of the peripheral, a hard fault happens. For example: This code doesn't work (generates a hard fault): <...
1
vote
1answer
40 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
132 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
vote
2answers
56 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
114 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
1answer
90 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 ...
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
21 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 ...
2
votes
3answers
161 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
39 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
240 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
52 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
117 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
47 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
134 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
32 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: ...