Questions tagged [cmsis]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
52 views

Why the program does not work when I enable PLL on STM32F4?

When I try to the code below, program running very well. But when I enable PLL_ON bit, the program does not work. Code that works: ...
4
votes
3answers
485 views

Difference between __I and __IO and __O in CMSIS core

in core_cm4.h header file defined some thing like this: ...
2
votes
3answers
93 views

Which libs to use with a STM32F103C6 microcontroller? [closed]

I'm very new with ARM microcontrollers and I've been doing a lite lecture of about 4 books to know how to configure this devices to start programming them. First I did a reading an how to use mbed but ...
1
vote
2answers
345 views

Garbage in SPI RX Buffer with DMA (STM32)

MCU: STM32f030f4p6 There is garbage in reception buffer, when I use SPI and 2 DMAs (for reception and transmission). ...
0
votes
1answer
32 views

Input and output array for CMSIS DSP Real FFT Q15 functions

The first question: in the documentations for CMSIS DSP real FFT functions, it is mentioned : The FFT of a real N-point sequence has even symmetry in the frequency domain. The second half of the ...
1
vote
0answers
742 views

RFFT on 8192 samples in Q15 with CMSIS

I need to perform an FFT on a block of 8192 samples on an STM32F446 microcontroller. For that I wanted to use the CMSIS DSP library as it's available easily and optimised for the STM32F4. My 8192 ...
0
votes
1answer
178 views

Error when using vPortFree(ptr) CMSIS-RTOS on STM32F4

I will need to handle dynamic memory using malloc and free. Looking on FreeRTOS documentation, I found pvPortMalloc(size) and vPortFree(ptr) , pvPortMalloc(size) works fine. When try to release memory ...
0
votes
0answers
20 views
0
votes
0answers
168 views

STM32CubeIDE issues with CMSIS-DSP library files

I have been trying to add the Library file libarm_cortexM4lf_math.a in the Eclipse based STM32CubeIDE as shown in the pictures below. But the linker is not able to find the library, and drops the ...
0
votes
1answer
2k views

Setting stm32f4 SystemCoreClock to 100MHz but can't get it (only get 57.6MHz)

I am triying to change the stm32f407 systeme core clock to be 100MHz. To do this I need to set the source of the PLL to be HSE, and configure the PLL coefficient so as to get the right value of SYSCLK....
1
vote
1answer
66 views

ARM Cortex M3 Systick Question

I ran across some code that is being used to create a 1ms timer in polling mode, not interrupt mode. However, I'm having a hard time wrapping my head around the function. So the Systick is ...
1
vote
1answer
83 views

CMSIS without HAL

Is it possible to create a project in System Workbench for STM32 with CMSIS but without HAL library? My target microcontroller is STM32L053R8 on a Nucleo board. When I create a with HAL and delete all ...
5
votes
1answer
631 views

STM32F0 SPI--what am I missing?

I'm trying to send SPI data to a MAX7219 from an STM32F042 (the protocol is one-way without MISO). I must be missing something very obvious. With the code below, the only visible side effect is the ...
3
votes
2answers
2k views

FreeRTOS on STM32 - What API should be used: CMSIS-RTOS API (v1 or v2) or FreeRTOS API? [closed]

According to ST's user manual UM1722 "Developing wireless applications on STM32Cube with RTOS" there are two APIs available: Generic CMSIS-RTOS API (v1 or v2) FreeRTOS API The CMSIS-RTOS API ...
-1
votes
1answer
401 views

Stm32F4-Discovery starting problem

I'm using CoIDE and the CMSIS library. The problem is that my programs start up normally only immediately after flashing the board. By disconnecting and reconnecting the board to the usb( just for ...
36
votes
5answers
41k views

CMSIS vs HAL vs Standard Peripherals Library

So I'm switching from PICs to ARM and I bought an STM32F4 discovery board. So far I understand that to program it you can either access all registers directly in memory (obvious way) and also there ...
0
votes
2answers
135 views

Does SysTick_Handler() have to be in main file?

Does the CMSIS SysTick_Handler() have to be placed in the main file (i.e. same file where it is configured)? If not, how would I go about placing it elsewhere? Is it just a matter of defining the ...
0
votes
1answer
554 views

STM32CubeMX HAL vs CMSIS

If I generate code using STM32CubeMX then which files are related to CMSIS and which files are related to HAL? My toolchain is Atollic TrueSTUDIO.
4
votes
4answers
2k views

I want to learn a real microcontroller with STM32F4. Which library should I use (HAL, SPL, or CMSIS)? [duplicate]

From what I know, ST will stop to develop Standard Peripheral Libraries (SPL) for the next generations of STM32. And HAL is not ideal for people who want to understand well about STM32 and ...
2
votes
1answer
1k views

STM32F4 - RCC reset register

I can't understand what's the job of RCC_xxPeriphResetCmd() function in the stm32f4xx-rcc driver? in fact the thing that i can't realize is what happens to a ...
1
vote
1answer
92 views

CMSIS GPIO_DeInit Function

Why to Enable and then why to immediately Disable at the following piece of program? ...
3
votes
2answers
295 views

ARM Cortex cores with peripherals, basic requirements

I've been reading a lot of stuff about using ARM tool chain to build applications for different microcontrollers including ARM cores. Right now, I've been using the fairly easy route with Atmel Studio ...
0
votes
1answer
41 views

What is the procedure for going from discovery board to a deployable solution? [closed]

Just to clarify with some context: This voice based keyword detection requires an mbed discovery board; and I am sure some min flash size. Even for a hobby project, i.e. personal home automation, ...
1
vote
0answers
515 views

Wrong FFT result when using rfft function on STM32F4

I'm trying to use rfft function in STM32F407G and I am getting wrong results when I compare it with an online fft calculator . I give a sample input as {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,...
0
votes
2answers
288 views

CMSIS - Peripheral Definitions - Structs With Unions Syntax? [closed]

I've moving over from 8 bit bare-metal registers, and having to learn some new C Kungfu to wrap my head around the CMSIS Core approach. I have a snippet of code here from a Peripheral Access Layer ...
1
vote
0answers
394 views

ADC Channel Selection on STM32L476RGT6

I am writing CMSIS based code for STM32L476RGT6(on a Nucleo board) to use the ADC. I have gone through the datasheet but I couldn't find a register to specify the channel for the ADC conversion. How ...
4
votes
2answers
14k views

STM32 HAL drivers [closed]

I've been using STM32 ARM microcontrollers for more than two years, the best way of coding that I've found is using the CMSIS and ST std peripheral libraries, and I think it has no restrictions or any ...
0
votes
2answers
144 views

CMSIS driver for my ARM Cortex M4 STM32L1xx Series MCU?

I have STM32L1 series I want to use CMSIS driver for my application but my device does not Support to CMSIS Driver, There is another STM Family i.e STM32F1 Series MCU which is supports to CMSIS ...
0
votes
1answer
223 views

CMSIS-RTOSv2 - Access out of bounds in RTX RTOS window

During migrating my project to RTOSv2 and RTXv5, I recognize that after a few minutes my program hangs and the messages appear at the RTX RTOS window: ...
2
votes
1answer
3k views

Aren't pull-up / pull-down options documented for STM32F103?

While trying to configure the GPIOs using CMSIS on a NUCLEO-F103RB board, I couldn't seem to find in the reference manual how one is supposed to choose between internal pull-up and pull-down resistors....
2
votes
2answers
98 views
0
votes
1answer
761 views

stm32f10x cmsis spi driver

I'm trying to connect raspberry pi with stm32f103 over SPI where stm is a slave. I'm not really like SPL and also I found awesome cmsis drivers for peripheral from Keil so I decided to use them. ...
0
votes
1answer
1k views

What is the difference between CMSIS RTOS and Keil RTX?

I have read the articles about them separately, but there are no information about the relation between them. What I understood is that there is CMSIS RTOS that ARM created and Keil extended it to ...
1
vote
1answer
523 views

How to use CMSIS to set up bidirectional Port on STM32F4

I'd like to use the GPIO_TypeDef an GPIO_Init to create a bidirectional Port on the STM32F407, some input pins, some output pins. Do I just run GPIO_Init twice, once for the input pins and once for ...