586 questions
0
votes
0
answers
41
views
How to configure DMA on STM32 using ADC
I'm really frustrated that this set up never works at all in any mode or any configuration as expected. Alread read the documentation 1000x times, looked for examples, but besides the crap ...
1
vote
1
answer
108
views
How can I make all functions from the HAL standard library file work from RAM at once?
There is a HAL library of functions for working with flash memory. I want all the functions of this library to work from RAM. How can I do this correctly, without writing _attribute_((section("....
0
votes
0
answers
103
views
Understanding ARM Cortex-M4 Pending Interrupt Behavior and Preemption Mechanism
I am learning how ARM Cortex-M4's pending interrupt works and how ISRs are pre-empted by higher priority interrupts (Basically how NVIC works). I have learned that an interrupt configured with higher ...
0
votes
1
answer
83
views
Bootloader on STM32 MCU
I am trying to develop a bootloader with STM32F469BIT mcu. First of all, I divided the 2048K flash area allocated to me into zones according to certain sector addresses. These areas;
Bootloader -> ...
4
votes
1
answer
147
views
STM32F407 Software Bootloader - Problem with receiving UART data
I am trying to make software bootloader for my STM32F407 project and I ran into some issue. The whole idea is that I send data using UART protocol from my PC to STM32F407. Data that I am sending is ...
1
vote
0
answers
92
views
Issue with USB CCID Communication on STM32F4
Hi StackOverflow Community,
I am encountering an issue while implementing USB CCID functionality on an STM32F4 MCU. I recently integrated the CCID driver from the following repository into my project:
...
0
votes
1
answer
104
views
STM32F401-Keil I cannot build blinky example and send to nucleo boards.Please Help me?
I want to create a basic LED blinking application with Keil MicroVision on the Nucleo STM32F401.
However, as shown in the image, the Keil program gives errors at two different points. It shows issues ...
0
votes
1
answer
143
views
STM32F4 : Send/receive data to MCP25xxFD using SPI with DMA
I am interfacing the can_fd controller MCP2517FD with the STM32F4 (Cortex-M) using the SPI HAL library.
using the controller driver :https://github.com/SDibla/Cortex-M4-MCP2517FD_Driver
In blocking ...
0
votes
0
answers
57
views
GPIO edge Interrupt not working on STM32G491RET
I am trying to implement a digital waveform capture using an external interrupt on a GPIO.
Here is the test code logic :
Enable a GPIO as output (PA5) and toggle it at 20Hz
Enable another GPIO as ...
2
votes
0
answers
382
views
OpenOCD Raspberry pi Bit Bang SWD Error connecting DP cannot read IDR
I am posting my question just as I have posted on the forum of STMicroelectronics.
I had been programming my STM32F407 MCU for almost 6 years using OpenOCD's GPIO Bit bang driver over Raspberry-pi for ...
1
vote
0
answers
50
views
Can STM32 PWM settings affect other timer settings?
#include "Main.h"
#define MAX_Intensity 1600
static volatile uint16_t Intensity = 10;
void Timer4_Configuration(void)
{
TIM_TimeBaseInitTypeDef TIM_BaseStructure;
...
-4
votes
2
answers
125
views
How to read a whole uint_8 variable?
I have a 8 bit variable received_control. This variable should store some 8 bit data. In my use case, I need be able to read all the bits, even those that are 0. Problem is that if my most significant ...
0
votes
0
answers
113
views
STm32F: Issue with Alarm B Not Triggering After Wake-up from Standby Mode
I am working on an STM32 project where I need to manage two RTC alarms: Alarm A for periodic wake-ups and Alarm B for switching modes after a specific timeout. The system enters standby mode and wakes ...
1
vote
0
answers
38
views
I have a problem with ITM Data Trace on STM32F407
I have a non-comercial download of STM32Cube IDE. I want to use the ITM Data Trace on a STM32F407 G disc1. In the main() call to initialise_monitor_handles(); the fun body in the system file is empty....
0
votes
1
answer
430
views
How to understand pinout diagram of STM32 micro controllers [closed]
I am new to embedded systems. I started with arduino and learnt programming online and have done some projects with it as well. Now I bought STM32 nucleo board to learn more in embedded systems. I ...
0
votes
0
answers
83
views
Micropython control stepper motor problem
I use the above packaged motor control library to control the stepper motor, but after I set the driver to 6400, the set speed and acceleration have no obvious effect, and the speed is always very ...
0
votes
0
answers
93
views
How to Properly Handle DMA Triggers for Sine Wave Generation in Center-Aligned Mode 2 PWM on STM32?
I'm generating a sine wave using an H-bridge with an STM32 microcontroller, utilizing center-aligned mode 2 PWM generation. In center-aligned mode 2, the DMA triggers twice per PWM cycle: once during ...
3
votes
3
answers
544
views
STM32 F401RE, Blinking LED program (Without HAL) not working
The following code is for blinking of the on-board LED on an STM32F401RE board. I am trying to do it without using HAL. When I flash it on to the board, it blinks once and then stays on. How can I fix ...
0
votes
1
answer
400
views
How/When exactly does Cortex-M4 (STM32 F4) switch its R13 from MSP to PSP? Do i have to manually switch if using PSP in inline asm?
I'm writing my own RTOS and I'm implementing the context switch function, where I have to use PSP. The function is written in inline assembly
I was working on another project on STM32 F4 writing ...
0
votes
1
answer
602
views
STM32 HAL_TIM_PWM_PulseFinishedCallback not being called. Suspect that problem is related to use of struct or union pointers
I'm writing a Neopixel driver for STM32 based on the example provided here.
In summary, the pixels aren't lighting correctly. My latest attempt had the first row of 8 pixels light up green before it ...
0
votes
1
answer
874
views
STM32F4 HAL_CRC_Calculate() gives false results
I have a STM32F429ZI (Discovery Board) and this really simple code, calculating the CRC8:
uint32_t data[5] = { 0x28, 0x4f, 0x4c, 0x43, 0x29 };
uint8_t crc = HAL_CRC_Calculate(&hcrc, data, 5);
The ...
1
vote
0
answers
126
views
STM32F412 SDIO Tx Underrun error when DMA is enabled
I am working on a project where I have to drive a SD Card. So far I have successfully implemented the initialization and reading data with DMA part. I am not using HAL libraries. The code to write to ...
0
votes
1
answer
321
views
When configuring cmake, I would like to add the header file into one folder
Since the stm32 vscode extension was updated to 2.0, we have been developing stm32 using vscode.
It wasn't difficult to add a library that you created yourself through CMakeListes.txt.
The function I ...
0
votes
0
answers
59
views
DWT on STM32F411 running in debug mode but not release mode
Using the example code from this site (and all other examples appear to be similar):
https://mcuoneclipse.com/2017/01/30/cycle-counting-on-arm-cortex-m-with-dwt/
The DWT counter on the STM32F411 ...
0
votes
1
answer
230
views
How do I stop my stm32 from halting my code when it gets it?
I recently got an stm32 board, and right now I am just trying to establish communication with it by turning on the LD2 light, using platformio. Right now when I try to upload the code the board seems ...