Skip to main content

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
0 votes
1 answer
43 views

Problem initializing PLL as clock NUCLEO-H563ZI

I am trying to initialize the clock with PLL as system clock. The code I used is the following ...
gagan chopra's user avatar
0 votes
0 answers
33 views

MAX1415 ADC not reading voltages correctly. Incorrect setup procedure?

My device uses two of the MAX1415 dual-channel sigma-delta ADCs. I've labeled them "MADC" and "CADC" for "Measurement ADC" and "Calibration ADC". They are ...
AuFries's user avatar
  • 63
1 vote
1 answer
69 views

For a UART communication, when do we enable/disable the peripheral wrt changing between transmitting and receiving mode?

I am working with SAML22 microcontroller and I am supposed to write the transmission code using the interrupt mode. I am confused in which case I am supposed to disable the peripheral. When changing ...
missedSemiColon's user avatar
0 votes
0 answers
62 views

Getting PSSI to work via Rust on STM32

This will be more of a wider scoped question, as there is a lot that I am trying to understand here. Context: I am attempting to communicate with the 16bit-parallel data interface of a MAX11046 ADC ...
BlueOyster's user avatar
0 votes
1 answer
52 views

Embedded System Design Project - Picking Hardware and General Confusions [closed]

I’m currently working on the design of an embedded system for a robot that includes various components such as a depth camera, motors, LiDAR sensors, IMU, etc. I’m considering a modular architecture ...
Adiyat's user avatar
  • 1
3 votes
2 answers
625 views

How is a watchdog timer and the main loop related?

This is what I understand: There is a main loop in the code who's time of execution is say, n ms. Now, the developer needs to configure the watchdog timer for such a time m ms where m < n. This ...
missedSemiColon's user avatar
-2 votes
0 answers
15 views

My python application doesn't want to cross-compile using Yocto [migrated]

I'm currently trying to set up a Linux OS for one of our embedded projects, I've successfully cross-compiled many packages from pypi using the PiP2Bitbake package but when I tried to do it with a ...
SADALI Mohand's user avatar
1 vote
0 answers
88 views

Ethernet signal from STM32H7 to LAN8742A good, link good, receive good, no transmit

I am working with a custom board based on the NUCLEO STM32H745. The STM32H745 will receive a broadcast ping and ARP. It will try to respond to the ARP and disregard the broadcast ping. I can trace the ...
andy__H's user avatar
  • 11
0 votes
0 answers
38 views

Usart2 not writing to data register

I'm trying to program the usart protocol on an stm32f4 nucleo board. When I upload the code on the board nothing happens (nothing gets transmitted to the console via putty). Upon further investigation,...
omneuro's user avatar
  • 11
0 votes
2 answers
61 views

Extended IO registers handling in AVR using Assembly language

I want to program the ADC module of arduino Mega2560 using Assembly language (for simulation and learning), I can initialise the ADC Module using Assembly and my program converts in the first ...
learn design's user avatar
  • 1,018
0 votes
1 answer
41 views

STM32CubeIDE crashes - Problem: EXC_BAD_ACCESS (SIGABRT)

I'm using MacOS and I'm trying to build the default code on main.c on the STM32CubeIDE which is below: ...
tadm123's user avatar
  • 153
0 votes
1 answer
75 views

STM32 - Implementing UART to USB convertor

Considering STM32 Nucleo Boards, implementing a communication by serial port with a computer is a matter of using UART on the Nucleo Board and connecting it to the computer via USB, where you emulate ...
Humphrey Appleby's user avatar
0 votes
2 answers
44 views

ADC interrupt flag in ATmega2560

If we look to datasheet of ATmega2560 https://ww1.microchip.com/downloads/en/devicedoc/atmel-2549-8-bit-avr-microcontroller-atmega640-1280-1281-2560-2561_datasheet.pdf In the ADC Section, page 285, it ...
learn design's user avatar
  • 1,018
0 votes
0 answers
46 views

Facing runtime issue on STM32L452

I was working on a project with STM32L452RET6 using baremetal programming. I use Uart1, Uart2, I2C, Timer6, Timer2, RTC and GPIOs for my project. Uart2, RTC and Timer 6 works in interrupt with ...
Suhaib Saiyde's user avatar
0 votes
2 answers
45 views

In STM32F4 Complementary PWM, Can we set %0 dutycycle both CH1 and CH1N

My question is about complementary PWM. Can we get %0 dutycycle at CH1 and CH1N at the same time. Datasheet of MCU: https://www.st.com/resource/en/reference_manual/rm0383-stm32f411xce-advanced-...
MSB's user avatar
  • 75
-1 votes
1 answer
52 views

ATmega32U4 not appearing on Windows [closed]

I have made a custom PCB that contains a ATmega32u4-AU at its core. I have assembled the board, but when I connect it to my computer I am getting no response from it anywhere on my computer. It isn't ...
Cobalt Gray's user avatar
0 votes
3 answers
86 views

How do I convert a structure's data to the character data type and fill it in an array for UART transmission and reception?

I am trying to solve the following problem where I am supposed to send the data of a structure from one micro-controller to another using UART. The problem statement is as follows: Write a sample ...
missedSemiColon's user avatar
1 vote
1 answer
97 views

Setting Boot Mode on Microcontroller without Boot Selection Pins

I've been tinkering around with this Generalplus microcontroller: GPM32F0118B and there are datasheets/some materials here: https://www.generalplus.com/GPM32F0118B-MkCri-...
Ceiling's user avatar
  • 59
0 votes
1 answer
50 views

Why 8051 is not detecting logic from circuit's voltage?

I am working on a ASK modulator and demodulator circuit which I wish to interface with a 8051 microcontroller to read serial data from demodulator circuit. The mod/demod circuit is developed and ...
Akshat Panda's user avatar
0 votes
0 answers
22 views

How to debug BLE HID Connection (STM32WB55)

I'm working on implementing a BLE HID keyboard using an STM32WB55 (the nucleo board). The BLE HID example they provide is a mouse, where you press a button on the nucleo and input stuff into a menu ...
mitch's user avatar
  • 1
0 votes
1 answer
87 views

How to program an STM32 MCU on a custom PCB

I am designing a PCB using an STM32 MCU to control a motor. My main concern is being able to use STM32CUBE IDE or the Arduino IDE to program the board. I don't want to spend a lot of money on a JTAG ...
Cqllysto's user avatar
0 votes
0 answers
22 views

16V Smart Load Switch

I am trying to make a "smart" load switch for my device. I have looked for existing options, but have not found something that can control 16V from a momentary switch but can be turned off ...
Andrew's user avatar
  • 1
0 votes
0 answers
38 views

Communication Issue with TCA9539 on MSP430FR4132

I am trying to communicate with the TCA9539 using my MSP430FR4132, but I'm encountering issues setting the registers using I2C. I've connected pull-up resistors (10kΩ) to both the SCL and SDA lines. ...
Aswin Raj K's user avatar
0 votes
0 answers
34 views

Unable to make ULPI works with STM32F446

I am using a USB3300 chip as an external HS 480Mbit/s USB PHY with STM32F446 MCU. Using CubeMX to generate code and add USB CDC Middleware. As I connect the USB Cable from the PC to the USB3300 chip ...
Yash's user avatar
  • 11
0 votes
1 answer
101 views

What would cause a router CPU to run 44x slower? [closed]

I have a TP-Link Archer C9 V5 router. After a recent power outage it did not come back up, so I am now trying to see if I can fix it. Occasionally it will still manage to boot and work normally, I was ...
sasodoma's user avatar
0 votes
1 answer
72 views

Why are GPIO Expander Registers Being Rewritten?

I'm using an LPC1768 microcontroller (mbed) and 4 GPIO expanders (MCP23017). I am trying to write to the expanders to enable the pull up resistors and some other functions, but am getting strange ...
Nate.Olson's user avatar
8 votes
6 answers
3k views

STM32 for loop slows down code too much

I am using an STM32 STM32F103C8T6 running at 48 MHz using ADC DMA and I find that using a for loop for manipulating arrays is much slower than multiple lines of ...
Sujoy Bhattacharya's user avatar
0 votes
0 answers
59 views

Turning on and off LEDs based on button input in ARM assembly

I am using an MSP432P401R. Attempting to turn on an LED when the button is pressed, and turn on a different one when the button is not pressed. It compiles but doesn’t do anything or light up either ...
ethanm's user avatar
  • 1
0 votes
2 answers
57 views

When using SPI interfaced SD Card Reader with MCU, the MCU is the master, right?

Hopefully this is a yes / no question. I just want to verify that when I'm using a simple MCU with a simple SPI interfaced SD card reader and writer, the MCU is in master mode and the SD card reader / ...
WackyTortoise's user avatar
-1 votes
1 answer
42 views

Need help for the definition of timer function

I've found below code that belongs to the timer declaration function but the definition is hidden by the author. Can anyone help me to provide a definition for the same? I want this to be utilized in ...
Ramandeep Singh's user avatar
0 votes
0 answers
147 views

Smart Card (SIM Card), connect to stm32 via USART

After get ATR and send PTS, I tried send APDU, but response always the same as APDU which has been sent. I tried to change the frequency for USART (clock) and baud rate, after I tried to change PTS ...
SAP4K's user avatar
  • 1
0 votes
0 answers
101 views

The LED doesn't turn on in the STM32 simulation in Proteus

The code running on STM32 is: while(1){ HAL_GPIO_TogglePin(GPIOA,GPIO_PIN_12); HAL_Delay(1000); } What am I doing wrong?
rohit's user avatar
  • 1
1 vote
1 answer
71 views

Why is no data written to the I2C bus using this PIC12LF1822 code?

I am trying to implement a basic I2C Master write sequence for a PIC12F1822 Microcontroller. I am programming the device using the PICKit 3 programmer. I have heavily simplified the code to isolate ...
BlueShoes's user avatar
1 vote
2 answers
93 views

What questions should I be asking in order to debug this I2C?

I'm currently working on a bare metal embedded rust project and I'm trying to get the I2C peripheral on the STM32 Nucleo board to work. I've managed to start the peripheral and even get the master to ...
omneuro's user avatar
  • 11
0 votes
1 answer
149 views

Why would a UART only transmit the first character and then stop?

For some context I'm using a STM32H7A3 chip: reference manual With this UART and pin configuration: ...
ultraturbonoob's user avatar
0 votes
0 answers
44 views

Unable to communicate with SPI based display board

I need to communicate with a display board that is acting as master and my board will act as slave. The reference document says that " Totally 26 bytes for communication between display and ...
Saqib Sohail's user avatar
0 votes
4 answers
207 views

Where should the interrupt vector table be placed in memory on STM32H7A3RGT6 chips?

According to the STM32H7 programming manual "On system reset, the vector table is at address 0x00000000." But at the same time the STM32H7A3 reference manual says in it's memory map ...
ultraturbonoob's user avatar
1 vote
1 answer
98 views

SSD1306 horizontal mode not working

I'm trying to fill the screen of SSD1306 white. I'm using horizontal page addressing mode to not set page address manually using commands. According to SSD1306 datasheet, when the column address ...
Pavlo's user avatar
  • 13
0 votes
0 answers
42 views

STM32F302xx Flash Location

recently I tried to flash my STM32F302CCT7 with a ST-link, openOCD, and gdb for arm. I am using the rust toolchain which requires that the ROM and RAM locations to be specified in a memory.x file when ...
matthew choe's user avatar
1 vote
1 answer
107 views

Power Supply for STM32G071CxU microcontroller (VDD/VDDA vs VREF+ for analog peripherals)

I am currently working on a STM32G071C8U7 microcontroller schematic and have some questions regarding the decoupling and general connectivity of the power supply pins. First I am presented with this ...
rbe's user avatar
  • 23
0 votes
4 answers
186 views

Using ARM Cortex on breadboard

I want to know if can I use an ARM-Cortex-M4 processor directly on a breadboard and then create a microcontroller on a breadboard. I already tried searching google but didn't find anything. Please ...
stng's user avatar
  • 3
1 vote
0 answers
34 views

How to design for Transient Immunity especially for IEC61000?

I'm working on a PLC project wherein I've to design the protection for transient immunity tests as per IEC61000 standards. I checked in the net regarding deign for EFT,ESD and Transient voltages. I've ...
Anil Suha's user avatar
  • 101
0 votes
0 answers
48 views

Is the use of ethernet cables/RJ45's appropriate for high frequency applications (3GB/s, 1.5GHz )

I am looking into using a GMSL2 serializer/deserializer pair for using a CSI camera at long distances from a computer. The GMSL2 channel specifications give the following information: Firstly, I'm ...
Harrison's user avatar
1 vote
0 answers
126 views

How can I connect multiple I2S devices to STM32H7?

I am building an audio application using STM32H7 to communicate with two 32 bits SRC (Sample Rate Converters), two 24 bits CODECs, one 32 bits ADC and two 24 bits DAC. I want to receive audio data ...
El-Zinkii's user avatar
0 votes
1 answer
46 views

Why does this LCD Bias Driver Have a Fault Mode?

I have a product that uses a TPS65150 LCD bias driver. I recently had an issue with a batch of boards, where this driver would go into fault mode (low on FDLY pin). The fault mode is triggered on a ...
Drew's user avatar
  • 7,078
0 votes
0 answers
53 views

Reading TCS34725 with MSP430G2553

I'm trying to read the red color data from the TCS34725 color sensor that is attached to this board by Grove (https://www.seeedstudio.com/Grove-I2C-Color-Sensor-V2.html) by combining its low value and ...
JAladwan1's user avatar
0 votes
2 answers
59 views

SPI protocol master CS pulled low

If I run the system on SPI protocol and keep the master slave connected with it, will communication happen if I disconnect both the CS pins master and slave and tie them to ground?
S M Kalim Ahmed's user avatar
0 votes
1 answer
66 views

MSSP setup on PIC16F18313

I am new to using PIC16F18313 and having some difficulty setting up the MSSP module. I am using PICKit 3 on Windows 10 with MPLAB X IDE v5.40 and XC8 compiler v2.41. The IC has pullup resistors 4.7k ...
RickyBoy's user avatar
  • 169
1 vote
2 answers
57 views

How to consistently read two counter registers across PDEC and TCC on SAMD51

I am using the PDEC on a SAMD51 to read a quadrature encoder from a closed loop stepper motor which has 4000 encoder increments per rotation. The PDEC counter is only 16 bits wide, which would ...
Scott Duckworth's user avatar
1 vote
2 answers
183 views

Why do AVR microprocessors have two ways (paths) to access I/O ports?

I've an ATmega328P. Register Summary Page 275 ATmega328P datasheet. The first address is the I/O address, and the second is the data memory address. I'm going to set all (D ports) Data Direction ...
Amr Elkamash's user avatar

1
2 3 4 5
34