Questions tagged [cubemx]
71 questions
0
votes
1 answer
Why does my usb HID output rubbish? STM32Cube
I'm trying to make a force feedback wheel, but software isn't my cup of tea.
This is supposed to toggle button 0 and it doesn't.
typedef struct{
uint8_t buttons;
int8_t relativeMvt;
}steer_t;
steer_t steer = {0, 0};
while (1)
{
…

antoine serry
- 67
- 11
0
votes
2 answers
How to boot STM32F405RGT6 with DFU
I have designed and assembled a PCB. All connections are fine and leds are blinking when i open the CUBEMX. But I don't know what to do after this point. Do I need to put some drivers before using DFU?
If so, i don't have an ST-LINK Programmer how…

Hakan ONAY
- 11
- 5
0
votes
1 answer
CubeMX timer configuration question (screenshot attached)
I am trying to understand how timer on the internal clock works.
I've attached my CubeMX config below.
For now, I have set the main clock to 480 MHz which is the maximum for this STM32H743ZI chip.
I am using TIM 2 so I am looking at APB1.
there from…

zytra
- 87
- 1
- 11
0
votes
2 answers
STM32F407 Register Level Clock Configuration Issue
I am working on an STM32F407 Discovery Board. But I didn't solve my clock configuration problem. I want to 168 MHz working frequency and I get help from CubeMX Clock Configuration Manager. And this is my PLLCFGR Register value from CubeMX:…

RasimGök
- 1
- 2
- 7
0
votes
0 answers
SWV Exception Trace is not working in Atollic Studio
I want to trace exceptions/interrupts happening in my board with STM32L4xx in Atollic Studio by SWV Exception Trace Log and SWV Trace Log.
I use SEGGER J-Link and In Debugger I have correctly set the interface to SWD and the Core Clock to 80 MHz.…

Keivan
- 1,300
- 1
- 16
- 29
0
votes
0 answers
STM32: HAL_UART_Transmit_IT function doesnt print the value
at the beginning, I'm relatively new to the world of microcontroller programming
I have a problem with HAL_UART_Transmit_IT called in another callback function (HAL_UART_RxCpltCallback).
I want to write a simple program that will read the…

Daniel
- 51
- 2
- 10
0
votes
2 answers
Cannot figure out how to send data to hat switch from stm32f103c8 to PC via USB
I have recently restarted to play around with micro controllers and finally got kinda stuck. So what I am building is a custom game pad. I can simulate data correctly for buttons but nothing works when I bring in the hat switch. I assume I am…

rololo
- 1
- 1
0
votes
2 answers
STM32F302 PWM Input CubeMX Settings
I am trying to set up PWM input on the STM32F302R8 to calculate frequency and duty cycle. In the STM32F302x8 reference manual, it says that we need to map IC1 to TI1 (CC1S = 01) and to map IC2 to TI1.
To match what the STM32F302x8 reference…

Ken Lin
- 986
- 1
- 8
- 22
0
votes
1 answer
FR_DISK_ERROR always is returned by f_open
My team has been working on a project that contains a SD card based on Standard Library. Recently we've decided to migrate to HAL and it started.
Fortunately, All part of our project were changed as well as possible to HAL and they're working great…

Ali Esmailpor
- 1,209
- 3
- 11
- 22
0
votes
1 answer
stm32 HardFault_Handler after reset
I am currently developing a stm32f103C8 based pcb. The current project state can be viewed in this GitHub Project.
The problem that I am facing, is that I can not run the code without debugging the device.
My Question is: what can I do to make the…

Alex Teeheee
- 1
- 1
0
votes
2 answers
What library or project generator to use for a first STM32F3 project?
I'm about to start my first STM32 project. (I have previously used atmega MCUs, and have decades of experience with C, mostly server-side.)
There seem to be three choices, given that I want to develop on the command-line in Linux, using make.
an…

fadedbee
- 42,671
- 44
- 178
- 308
0
votes
0 answers
STM32F429 ARTIFICIAL INTELLIGENCE TOOL AI_DATA_FORMAT_UQ NOT FOUND
I am studying on artificial intelligence with STM32F429. I generate the code with CubeMX for SystemWorkbench. CubeMX generated code has AI_DATA_FORMAT_UQ named macro but it has not defined anywhere. I mean;
#define AI_DATA_FORMAT_SQ \
…

DikotaLolly
- 47
- 8
0
votes
0 answers
Has cmsis_os.c of stm32CubeMX to be fixed?
I'm using cmsis_os.c and cmsis_os.h provided in STMCubeMX.
I found at least two place were cmsis_os.c should be fixed.
The first one:
#elif( configSUPPORT_STATIC_ALLOCATION == 1 )
return xTimerCreateStatic((const char *)"",
…

Alb
- 73
- 3
0
votes
0 answers
How Can I using mbedTLS with lwip without RTOS?
I want to use mbedtls with lwip in STM32F4 . And In the Cubemx, When I want to choose the mbedtls with lwip, I can not select middleware without FreeRTOS. But I dont want to use FreeRTOS. When I generate the code and delete the FreeRTOS file, folder…

NetworkStudent
- 401
- 2
- 13
0
votes
1 answer
Error compiling freertos for nucleo stm32f767
I have generated code using cubeMX and while compiling it gives me the following errors. I have already tried several fixes but none of them is working.
/tmp/ccvxTV8U.s: Assembler messages:
/tmp/ccvxTV8U.s:758: Error: selected processor does…

alex
- 23
- 1
- 4