stm32 Questions

5

I'm using STM32F746ZG and use five UARTs. All UARTs are working fine. Can someone tell me the procedure to change the baud rate on the USART once it has already been initialized? I'm using USART6 a...
Isotron asked 31/7, 2019 at 4:44

4

Solved

I am stuck with HAL_Delay() function. When i call this function HAL_Delay() , control stuck in infinite loop. While searching for the problem, I found this http://www.openstm32.org/forumthread2145...
Frieder asked 22/12, 2018 at 22:51

6

I using an STM32 (L0 5) HAL I need to disable IWDG or WWDG before entering in STOP mode. The below code is working fine until IWDG is resetting the MCU from STOP mode. For WWDG usage this is much f...
Wariness asked 16/11, 2018 at 9:7

9

I have an application that I am porting from the Keil IDE to build with the GNU toolchain due to license issues. I have successfully be able to set up, build, flash and run the application on the d...
Cyna asked 23/12, 2014 at 16:4

3

Solved

Upd. See the end of post for working code I'm already mad with this. How can I make checksum from CRC unit on stm32f103 match with software implementation? Stm has polynom 0x04C11DB7 and reset val...
Grandmother asked 7/4, 2016 at 17:32

8

I am trying to implement UART in DMA mode to transmit a simple string every time a push button is pressed. So I have used CubeMX to generate the code and I have configured UART2 TX DMA in normal (...
Disbranch asked 8/4, 2017 at 18:16

6

Solved

I have been trying to create a neatly-organized makefile project template utilizing the ARM mbed library. I have already solved a few of the problems (see this post) related to header file paths. H...
Podiatry asked 11/7, 2016 at 5:42

2

Solved

Context is: STM32H753 bare-metal software compiled with arm-none-eabi-gcc. The reset handler is implemented in C and located in Flash memory: void reset_handler_c(void) { asm_func(); } The asm fu...
Hippy asked 11/4, 2024 at 9:39

8

Solved

I am trying to generate CRC with STM32L4 hardware modul. I would like to validate fatfs files so basically I have byte arrays. I am using this CRC generator. Unfortunately I cannot figure out how ...
Sholem asked 22/9, 2016 at 18:32

2

Solved

Introduction I am a student who wants to roughly measure the interrupt latency of ARM Cortex-M series chips without using an oscilloscope. However, I have encountered a very peculiar issue that has...
Librettist asked 19/2, 2024 at 2:46

2

I'm trying to get the external interrupt running on a Nucleo-F030R8 and hit a wall. Everything is configured and runs just fine in step mode but when I'm connecting my board to another testboard ...
Anglia asked 18/10, 2017 at 12:49

3

Solved

The standard technique to enforce atomic access to volatile variables shared with ISRs, via "atomic access guards" or "interrupt guards", in particular when running a bare metal...
Greenman asked 26/3, 2022 at 8:53

4

Solved

I am trying to flash a blue-pill clone with a CS32F103C8T6 chip using the AC6 SystemWorkBench and a ST-LINK v2 device. It is a project built from STM32CubeMX - I am using a MacOS Mojave machine. He...
Involuted asked 22/11, 2019 at 1:1

5

I tried to use the hardware NSS signal with the HAL library, but I can't find any function to make the NSS pin have a low or high level. I also tried to find the answer in the HAL documentation, bu...
Cleromancy asked 3/3, 2016 at 18:39

5

Solved

As the title said, can I populate automatically c_cpp_properties.json from an existing Makefile? Edit: For others trying to import makefiles, I have found a set of scripts that perform exactly wh...
Atmolysis asked 7/12, 2018 at 17:46

2

Solved

I am confused with the clock system on my STM32F7 device (Cortex-M7 microcontroller from STMicroelectronics). The reference manual does not clarify the differences between these clocks sufficiently...
Formularize asked 24/10, 2016 at 9:28

1

Solved

I'm working on a stm32f3 dev board, and met an error /opt/homebrew/Cellar/arm-none-eabi-gcc/13.2.0/lib/gcc/arm-none-eabi/13.2.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directo...
Toney asked 7/10, 2023 at 8:39

5

I am brushing up on microcontrollers, using the STM32 series. (Specifically using the STM32F072BDISCOVERY board). I am having some trouble understanding the use of timers and their various modes. ...
Arras asked 2/9, 2014 at 19:45

4

I'm working on a bare-metal STM32 project, compiling on a Linux x64 host. After upgrading my toolchain from gcc-arm-none-eabi-11.2-2022.02 to arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi, I get...
Dropper asked 16/9, 2022 at 9:33

2

On the STM32F103, the erasing of a flash page takes 20ms during which the core stalls for me. It's not clear from the ST PM00042 Flash programming manual whether the core would always stall when er...
Ministrant asked 10/8, 2010 at 2:22

3

Solved

I used the STM32Cube initialization code generator to generate an initialized Timer function. To generate a fixed duty cycle PWM signal I added HAL_TIM_Base_Start(&htim1); //Starts the TIM Base...
Andeee asked 18/4, 2017 at 23:20

4

I want to log out from stm32f405 via usart. In my syscall.c file i realize function to print via usart: int _write(int file, char *ptr, int len) { int todo; for (todo = 0; todo < len; todo++...
Augend asked 5/2, 2015 at 0:56

4

I am emulating code from an embedded system (stm32, Keil µVision 5, MDK-ARM) on a PC (mingw32, 32bit arch). The alignment of the ARM compiler does not match my desktop mingw build: // ARM Code (A...
Premiere asked 3/6, 2014 at 12:58

4

I want to flash my STM32 board with my USB serial port. And my STM32 board comes with an extended board which carries CH340. When I connected the board to my computer, I can see the device with the...
Deemphasize asked 26/11, 2021 at 11:5

4

Solved

STM32 microcontrollers are capable to boot from different sources such as: User-Flash System-memory Embedded-SRAM. On the firmware side, does "boot from user Flash" means executing a cu...
Carleecarleen asked 26/5, 2015 at 5:8

© 2022 - 2025 — McMap. All rights reserved.