Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [cmsis]

The tag has no usage guidance.

0
votes
2answers
43 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
23 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
1answer
72 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
117 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.
1
vote
1answer
470 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 ...
3
votes
1answer
190 views

Difference between __I and __IO and __O in CMSIS core

in core_cm4.h header file defined some thing like this: ...
1
vote
1answer
65 views

CMSIS GPIO_DeInit Function

Why to Enable and then why to immediately Disable at the following piece of program? ...
3
votes
2answers
183 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
40 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
298 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
1answer
316 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 ...
0
votes
2answers
204 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
340 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 ...
1
vote
0answers
462 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
0answers
72 views

How to create a CMSIS project for DiscoveryF407VG board?

I have downloaded Keil 5.24a, and Arm cortex-M legacy support, when I want to create a new project, in micro selection step, in Software Packs there is no ...
0
votes
2answers
119 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
161 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: ...
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 ...
3
votes
2answers
10k 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 ...
2
votes
1answer
2k 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....
0
votes
1answer
652 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. ...
26
votes
4answers
32k 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
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....
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
448 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 ...