Questions tagged [stm32cubemx]

A C/C++ MCU configuration generation tool for STM32 products, from ST Microelectronics

116 questions
1
vote
0 answers

I'm trying to get the sensor measurements using spi

spi bus(?) datasheet : https://www.ti.com/lit/ds/symlink/ads8684.pdf?ts=1667284885553&ref_url=https%253A%252F%252Fwww.google.co.kr%252F I want to measure several sensors using spi, how can I get the value? I thought it was a code that worked, but…
user11503466
1
vote
0 answers

USB CDC-ACM on STM32 device not registering on Linux

Working with the STM32L062 Cortex-M0 and CubeMX the generated USB CDC-ACM code works fine in Windows. With loopback code running on the STM32 and TerraTerm running on Windows characters typed in the terminal window correctly echo back. However,…
1
vote
2 answers

STM32CubeMX I2C code writing to reserved register bits

I'm developing an I2C driver on the STM32F74 family processors. I'm using the STM32CubeMX Low Level drivers and I can't make sense of the generated defines for I2C start and stop register values (CR2). The code is generated in stm32f7xx_ll_i2c.h and…
Mark S
  • 15
  • 6
1
vote
0 answers

Makefile: ignore file in automatically generated dependencies

I have the following makefile, (mostly) generated by STM32CubeMX and slightly modified: ########################################################################################################################## # File automatically-generated by…
SRSR333
  • 187
  • 4
  • 15
1
vote
0 answers

STM32+CubeMX+HAL Library using pwm toggle output failed

I understand its principle is to use PWM comparison function when CRR = CNT is triggered interrupt and flip level. I set the ARR to 65535 to automatically add it up again. The CRR value is adjusted for each incoming interrupt, however the PWM…
haotian li
  • 11
  • 2
1
vote
1 answer

Is there a difference in the way one should build .S files vs .s files using makefile?

I have generated a ThreadX project using CubeMX, which has provided me with both .s and .S files. When building using make I get the 'No rule to make target' for the .S files, but not for the .s file (the object file is created successfully)...…
hdl
  • 13
  • 3
1
vote
0 answers

STM32: Unable to successfully load BLE firmware because of FUS_IMAGE_NOT_AUTHENTIC so my code is failing in SHCI_C2_BLE_Init()

I have a custom board with an STM32WB55CEU (512K Flash) that is failing to start the BLE stack on CPU2 in the function SHCI_C2_BLE_Init(). I believe it's failing this function because it failed to load the BLE firmware (stm32wb5x_BLE_Stack_full_fw…
1
vote
0 answers

How to detect when USB is disconnected?

I use a virtual com port for communication between the microcontroller and the computer. I have mk. stm32h743 self-powered from its own 3.3V power supply. With the help of a cube, I raised a virtual com port. How can you understand that the USB is…
zhilenkov
  • 111
  • 4
1
vote
1 answer

How to resolve error - L6236E: No section matches selector - no section to be FIRST/LAST

I've looked into other similer questions on stackOverflow but I haven't been able to get those solutions to work. So, I've generated the code for STM32F4-Discovery using STM32CubeMX. First of all, on code generation, I get error message, saying…
Muzahir Hussain
  • 1,009
  • 2
  • 16
  • 35
1
vote
0 answers

transmission and reception problems with stm32f103c8 with nrf24 library

i am developing my project in a stm32f103c8 (bluepill) with Keil and CubeMX, i want to use a nrf24l01 transmitter and for this i looked for a tutorial which is exactly what i want to do. the problem is that when i do it i notice that the radio…
Croma Nnon
  • 11
  • 1
1
vote
0 answers

Issue in STM32CubeMx

While using STM32 CubeMX (version 5.2.1) and selecting the i2c in SMBus-two-wire-Interface it shows as follows:- Warnings: STM32 CubeMX does not support the configuration of this mode of this IP.However,this IP can be configured manually. Anyone…
Rohith R
  • 21
  • 1
1
vote
0 answers

Multiple software configurations with continuous integration workflow with STM32CubeIDE/MX, .ioc, and git

Overview: Our workflow is described in this section. IDE: STM32CubeIDE Version Control: git Within git we track: along with other folders for our…
1
vote
2 answers

Clion (embedded development for stm32) CMake not found arm-none-eabi-gcc compiler

I made project like tutorial https://blog.jetbrains.com/clion/2019/02/clion-2019-1-eap-clion-for-embedded-development-part-iii/?gclid=CjwKCAjwhOD0BRAQEiwAK7JHmKUzvoJnORtCn3YxpsSb00Ep_dE0gNQOytiXVgFj6EXOjyCAIH9XTBoCngQQAvD_BwE&gclsrc=aw.ds I get arm…
1
vote
2 answers

Error coming while generating source code from STM32CubeMx to Keil V5.29

I am making LED blinking program with STM32F103C8T6 i opened the pc13 port for taking Input output then this error is occuring while generating code what will i do please help. This code is Successfully generated under C:/...... but MDK ARM v5.29…
user12435269
1
vote
1 answer

arm_math matrix multiplication hardfault

Not sure how to write this, since I'm very new to embedded systems, but I've been trying to code a state-observer for my graduation project and it needs to estimate 3 states on 2 different axis. The basic equations I'm trying to solve…