3,779 questions
1
vote
1
answer
93
views
Cannot get stm32 usb microphone transfer working
I am converting default usb middleware speaker example into microphone input. For now i am transmitting dummy data, not actual microphone data. I have replaced descriptor and it seems to be correctly ...
1
vote
0
answers
111
views
Using STM32H7 DCMI + DMA with AD9240 ADC
I am trying to use AD9240, a 14-bit ADC, with STM32H753 to sample a signal at 1MHz. I found that using DCMI with DMA is a good choice for it.
A 1MHz clock signal is generated on the MCU at TIM3_CH1. ...
1
vote
0
answers
123
views
Delay in triggering the BELL
I'm using STM32F072C8T6 Microcontroller with Konnekting Device Library . I want to trigger a BELL for less than half second . I wrote a logic for that BELL & it works well , but after a LONG RUN , ...
4
votes
1
answer
153
views
How to change memory mapping start address at Keil with 8051 processor
env
IDE : Keil uVision
chip : ABOV MC94F1102A(8051 processor)
language : C
detail
When I downloaded the program to the board, it didn't work.
I reviewed the memory mapping tables.
I found the ...
0
votes
0
answers
56
views
ESP32 cannot connect to Arduino Uno via HC-05 Bluetooth module
I'm trying to connect an ESP32 (as Bluetooth master) to an Arduino Uno that has an HC-05 Bluetooth module attached. My goal is to send serial data between the ESP32 and the Uno.
Setup:
Arduino Uno ...
2
votes
0
answers
190
views
STM32 - issues when jumping from one app to another
I'm working on a boot-loader for STM32G491. The device is supposed to jump from the boot-loader (BL, located at 0x08000000) to the application (APP, located at 0x08008000).
When I flash the APP ...
2
votes
0
answers
72
views
Bluetooth low energy with calliope mini
I would like to create a Bluetooth remote control for my Calliope Mini v2. The Calliope works with BLE (Bluetooth Low Energy), and I wrote the code for it in Python using Makecode. I used a BLE ...
2
votes
0
answers
58
views
ESP32 TaskReadTelegram() often hangs and triggers watchdog
I recently built myself a ham radio repeater and used ESP32 for its control unit. I added Telegram control capabilities to get some status info and force some actions remotely. Using FreeRTOS made ...
3
votes
1
answer
121
views
How to map a value from one range to another accurately without using floating point? [closed]
I am writing firmware for a microcontroller. (In this specific case it is a Microchip PIC, but I am looking for an answer that is equally applicable to any brand of microcontroller.)
Arduino has a map ...
2
votes
3
answers
136
views
Feeding watchdog in while(1) with bare-metal firmware
I have a bare-metal firmware for a microcontroller where some interrupts generate some data and they are passed to the main context where all the processing happens.
I am considering feeding the ...
3
votes
2
answers
103
views
PIC16F18877 — HC-SR501 PIR motion sensor always reads low on PORTD pin
I’m working on a PIC16F18877 project where I’m trying to read a digital motion signal from an HC-SR501 PIR sensor.
I’ve run into an issue where my PIR sensor seems to always read LOW (0) on my PIC ...
0
votes
1
answer
99
views
How does MCU get to know this interrupt it from particular pin?
I am working on interrupt and thinking about it lately. see if i configure a pin for example say PA1 as my interrupt. then while in Handler it is handling from PA1-PA9 Handler. meaning single handler ...
0
votes
1
answer
89
views
Displaying temperature and humidity in Proteus using Arduino
I need to do this project:
Design a circuit that includes an Arduino Uno board, a temperature and humidity sensor (22DHT), two dot matrices with drivers, a touch sensor, and some resistors. The ...
0
votes
1
answer
90
views
Question about behavior when resetting microcontrollers [closed]
I have an embedded systems course in my university and i have a weird question that i don't know the answer to
the question gives us the code (i may have a syntax error but the logic is correct)
void ...
-1
votes
2
answers
63
views
laser turns on without input
i have a setup with a microcontroller where pushing a button i attached with gpio pins turns on a laser pointer using gpio pins. this is part of a larger project including speakers and other leds and ...
1
vote
2
answers
142
views
Infineon c167 atomicity violation can
I have a problem with CAN sending variable of type ulong from microcontroller Infineon C167CS (ST10F168). External microcontroller sends me remote request, and I send data generated by my ...
1
vote
1
answer
168
views
How to use LL drivers on an STM32 to generate PWM deadtime
I am trying to generate 3 channel center aligned PWM with complementary outputs and deadtime insertion on an STM32G474. To test functionality of the timers, I currently have the 6 outputs connected to ...
1
vote
0
answers
40
views
How does the input value affect the performance of cosf in C? [duplicate]
The time that cosf takes seems to depend on the size of the input value. This is especially noticeable on microcontrollers but also present on high-end machines.
What exactly is the relationship ...
2
votes
1
answer
97
views
Why can't I write registers on my TPM? (Infineon SLB 9670)
I'm trying to write a driver for the Infineon SLB 9670 TPM to use it on an embedded system (AD Blackfin ADSP-BF607).
So far I'm able to read registers but I fail when I try to perform a write ...
0
votes
0
answers
107
views
STM32G0 crashes into system memory bootloader everytime during debug
The codebase is generated by CubeMX and now I'm facing issues during debug.
debug method is SWD using ST-LINK V2.
In debug mode, after resume fron HAL_Init(); , the code will crashed into system ...
-4
votes
1
answer
78
views
STM32L152RE C Bare Metal Can't get LED PIN to work
Im trying to set PA10 to HIGH, but It doesnt seem to work.
What I have:
STM32L152RE.ld(No idea whats going on here I got it from Chatgpt)
Makefile(same thing)
main.c(I wrote this by myself and think ...
0
votes
0
answers
203
views
LilyGO with a SIMCom A7670E suddenly returns errorcode 715 (Handshakefailed) when accessing an Azure Function App
My LilyGO TTGO T-SIM-A7670E R2 ESP32 - ESP32-WROVER sudddenly couldn't access my Azure Function App anymore.
It has been functioning non stop for more then 2 months. Without a problem.
And then, out ...
0
votes
2
answers
63
views
MCP23017 / C++ erroneous values on read
I am trying to read the GPIOB / GPIOA values through my program. This is a threaded program that gets messages over tcp/ip as a signal to change the pins.
unsigned char gpioMon::subtractiveLookup(...
2
votes
1
answer
99
views
ADC_READ for PIC
I made a code using ADC_Read function in MikroC PRO IDE, but the code doesn't build, and the following error message appears:
the variable ADC_Read isn't declared
I'm using a PIC12F675 with an ...
0
votes
0
answers
41
views
Exception in Renesas Rl78 microcontroller ( Illegal Memory Access )
I am running a program in renesas Rl78 microcontroller and sometimes not always during UART communication I get a reset due to illegal memory access. Now in genral for this and other microcontrollers ...
1
vote
0
answers
39
views
i.MX 8ULP Fusion DSP enable
I am using the i.MX 8ULP microcontroller, and I would like to use TPM3, lpSPI2 from the DSP domain. How could I activate or enable the domain and the PCC2 bus, so I could have full access to the ...
0
votes
1
answer
75
views
ARMv8-m TrustZone crashes with INVTRAN after call to non-secure code
I'm using TrustZone on RP2350 microcontroller. After setting up SAU to define secure and non-secure memory areas, I'm jumping to non-secure code with bxns instruction.
The non-secure part of the ...
1
vote
0
answers
29
views
Get Camera Frame Latency after Set Pins of microphone (INMP441)
I don't know why when I uncomment this line:
// i2s_set_pin(I2S_NUM_1, &i2s_mic_pins);
getting fb frame takes much more time. (I don't have any error.)
OUTPUT:
Without i2s_set_pin:
16:59:56.940 -&...
0
votes
1
answer
27
views
Is it possible to exit Stop mode on STM32F042 using Touch Sensing Controller (TSC)?
I read in TSC STM32 presentation that it is possible to exit Stop mode using TSC, but I can't find any real technical information about it
-3
votes
1
answer
123
views
No I2C connection found [closed]
I am trying to read i2c data from a battery board to an Up Squared 7100 board. This board uses the same 40 pinhead as the raspberry pi so I would think the i2c connection would work the same way.
When ...
0
votes
0
answers
22
views
How can I connect an LCD to an Up Squared Board using spidev?
Original Board: Raspberry Pi 4 model B
New Board: Up Squared 7100
LCD: NHD-PCB12832A1Zrev2
import RPi.GPIO as GPIO
from ascii_values import ASCII168
import icon_manager
# Mapping based on BCM (...
0
votes
0
answers
66
views
How can I solve the AutoRegisterSchemeHandlersJob and Initializing External-tools issues?
I have been using STM32 CubeIDE version 1.14.1 for programming STM32 microcontrollers for a long time. However, today when I opened it, I encountered the errors "AutoRegisterSchemeHandlersJob: ...
0
votes
0
answers
49
views
STM32F429: CAN cannot receive message from host PC
I am trying to use my STM32F429IGT6 CAN to receive some data from the host computer. The data is basically 4 16-bit unsigned integers (8 bytes in total), the message ID is 0x16 and uses the 11-bit ...
1
vote
0
answers
48
views
Measure PWM Duty Cycle with Pic
I am trying to measure two PWM input signals and, based on them, turn a LED on or off. I am using a PIC16F18313 microcontroller.
I have a Futaba remote control, and through its receiver, I receive two ...
2
votes
1
answer
56
views
Writing a log file to the RW612 Board and retrieving the file on another device
I am currently working on the frdm RW612 board and have the following code that measures the temperature in the room over a few days. My script works fine but I have no way of gathering this data. ...
0
votes
0
answers
97
views
PIC Assembler, rlf behaving weird
I have a question, when I use this code in MPLAB IDE v8.92, Windows 11, when it arrives to the rlf line it behaves weird either if I use 0 or 1 for "d" in rlf. Values for j and k are 0xFF.
...
1
vote
1
answer
88
views
Why is the stopwatch for PIC32MZ2048EFM144 microcontroller always disabled?
I am using a PIC32MZ2048EFM144 uC. I wanted to know time taken for a routine called adc7768(). When I go to
window->debugging->stopwatch
and try to debug it gets hung. Debug will not happen. ...
1
vote
0
answers
61
views
Quad SPI Memory Byte Swapping
We are using an NXP K82F microcontroller with a 4 MB Macronix MX25U memory chip connected over the Quad SPI bus to expand the Flash memory space. The expanded memory space has been working well up ...
2
votes
1
answer
65
views
ADC7768 CRC calculation
I am using adc7768 to receive ADC samples. According to datasheet to calculate CRC, we can do it every 4th or 16th sample. My question is for 4 samples last 3 samples CRC will be header of 4th sample. ...
0
votes
0
answers
270
views
MSP-EXP430G2ET development board not found in CCS
I have purchased the MSP-EXP430G2ET development board from Texas Instruments and installed CCS (Code Composer Studio Theia) on my Ubuntu. When connecting the board via USB to the computer, the leds ...
0
votes
0
answers
42
views
Virtual simulation of a PI and Microcontroller using Vagrant and Virtualbox
I am working on a vagrant / python script that will download micro controllers
The vagrant script loads the below VM:
pi5.vm.box = "debian/buster64"
Then I also load these as stand-ins for ...
0
votes
1
answer
393
views
How to convert C source code to intel .HEX file [closed]
I want to change the devices start logo. I placed my logo in 0x00060000-0x0007FFFF address range, it's 128kb. I am using this online tool for resizing, formatting and for generating array.
https://...
3
votes
0
answers
99
views
Zephyr serial printing garbage text on terminal emulator
I have an issue with printing basic things with serial with zephyr project. I have the following prj.conf
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_UART_STM32=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
and ...
0
votes
0
answers
45
views
Embedded CMSIS pack no longer have bitfields
I have noticed that the CMSIS packs for no longer include bitfields for the peripheral.
https://www.keil.arm.com/packs/
It appears that version 2 had bitfields and then version 3 does not. What ...
0
votes
1
answer
105
views
Interrupts on STM32F407G discovery Micro controller with HAL library to blink led
I am trying to create a metronome by using the led on my microcontroller board to blink at a specific number of beats per minute in order to figure out how to do hardware interrupts at specific ...
1
vote
2
answers
54
views
SAMR21 skipping parts of code while debugging
My code should read the ADC 3 times, then take the average, if it is less than half of the fullscale value, the the onboard LED should turn off, if it is higher than half of the fullscale value it ...
0
votes
0
answers
44
views
"Interrupt Handling Issues After Jumping from Bootloader to Application in APM8S007 Microcontroller [duplicate]
Description:
I am working with the APM8S007 microcontroller, which is an 8051-based 8-bit microcontroller, and I need to implement firmware update functionality. I have developed a bootloader that ...
2
votes
1
answer
70
views
Tiva C DevBoard - Microcontroller doesn't enter main function
I am working with a Tiva C EK-TM4C123GXL development board (MCU -> TM4C123GH6P). I am using Keil uVision 5, ARM compiler 6.12 and CMSIS pack for this specific microcontroller.
My code is following:
...
0
votes
0
answers
73
views
lwip UDP, CPU time consuming in stm32 boards
I am sending raw data using lwip library, udp protocol,RAW API.my evaluation board is stm32 F429zi.
The problem is when i send 48 bytes using udp_send() function, as i measured by oscilloscope, it ...
1
vote
2
answers
61
views
Selecting External Clock Source for NUCLEO-WB55RG Board [closed]
I am not finding the clock frequency of the oscillator used on the NUCLEO-WB55RG board?
What's the value?
Where can I find it?
How to select it as clock source for the MCU?
Which one should be ...