Questions tagged [cmsis]

Cortex Microcontroller Software Interface Standard

Filter by
Sorted by
Tagged with
1 vote
1 answer
47 views

Resizing a vector with ARM CMSIS DSP on Teensy 4.0 (Cortex M7)

I have the following code that does the resizing of a 1D vector with nearest neighbor interpolation in a similar fashion you'd also resize an image, only in 1D rather than 2D. Another term would be ...
user avatar
1 vote
1 answer
50 views

CMSIS-RTOS2 message consumption from queue

The docs do not explicitly mention if a successfully received (get()) message is then wiped from the queue, aka "consumed". Is this unclear in the docs or ...
user avatar
2 votes
3 answers
99 views

STM32 on Registers Setting Up PLL, WWDG fault, Parameter/Setup Issue

STM32F746-Disco, Win 10, Cube 1.8.0; CMSIS-only (no HAL). C. I've been messing around with STM32F746 and learning to do various stuff directly via registers (interrupts, dma no problem). I left ...
user avatar
  • 3,286
2 votes
0 answers
45 views

LPC1788 multichannel ADC DMA

I have problem with reading LPC1788 ADC pins in multichannel with DMA. Here is the procedure I have followed. I use Keil, initialized UART 0 peripheral, have set all of the ADC pins to be analog, set ...
user avatar
  • 61
1 vote
1 answer
42 views

Mails Usage on FreeRTOS (STM32L4)

I have an application on STM32L4 with multiple queues and threads without problems. I try to add a mail queue via the following function : But it seems the linker can't find the reference : I check ...
user avatar
  • 159
-3 votes
2 answers
106 views

CMSIS - API or library

I have few question that I am not able to understand. What is the difference between API and library in embedded software? Any example would be appreciated. What is CMSIS - is it a library provided ...
user avatar
  • 61
0 votes
0 answers
36 views

Implications of CMSIS PID control algorithm variants

Of the CMSIS PID Motor Control there are 3 implementation variants w.r.t. data type used: Q15, Q31, and floating-point. Cause there is little documentation of the library it's difficult to understand ...
user avatar
  • 125
2 votes
1 answer
234 views

Understanding the incomplete CMSIS PID motor control documentation

I'm trying to understand the CMSIS PID Motor Control. Obvisouly it is a PID controller in parallel structure (instead of in series stucture or some sophisticated structure). It seems like there is no ...
user avatar
  • 125
0 votes
0 answers
1k views

Openocd cannot find CMSIS-DAP device

I compiled openocd from git (latest commit: March 7, 2021) with --enable-cmsis-dap. openocd cannot open my CMSIS-DAP device: ...
user avatar
0 votes
1 answer
101 views

How to prevent a function from overwriting memory?

I'm writing a program that basically aquires samples from a signal and does FFT on it (I'm using STM32L432KC MCU). I'm trying to send results from the FFT calculations through UART but there is a ...
user avatar
6 votes
3 answers
3k views

Memory To Memory DMA on STM32

According to STM32F407 reference manual page 313, memory to memory mode in DMA is a mode that doesn't need any triggering request from a peripheral and it will happen just after the stream enable bit ...
user avatar
0 votes
1 answer
141 views

ARM CMSIS Matrix conversion to a uint16_t array

I'm working on the STM32L476RG and I'm looking to perform some matrix operations on the controller, using C and CMSIS-DSP for ARM. I have 2 uint16_t arrays which I will be converting to matrices and ...
user avatar
0 votes
2 answers
115 views

Receiving additional garbage data (for some characters) from STM32F103C8T6 (blue pill) UART1

I am learning bare metal embedded development using CMSIS Core framework. The problem I am facing is with UART communication. I am getting additional garbage value along with the character I am ...
user avatar
-1 votes
1 answer
248 views

STM32F407VG Discovery + CMSIS HSE Clock Configuration

I am trying to program an STM32F4 discovery board using Vscode, Platformio and CMSIS. However, I cannot set the right clock frequency. I have programmed it to blink an LED every second, except it ...
user avatar
0 votes
0 answers
87 views

Strange behaviour of SPI lines on STM32

I am learning to develop drivers for Cortex M using CMSIS framework. In the past I have written SPI drivers for transmitting data to peripherals. Now I need to write code to receive on SPI line, ...
user avatar
  • 65
2 votes
1 answer
385 views

CMSIS DSP Library and RMS

I'm using a STM32 Cortex M0+ controller which does not have FPU. I'm reading 50/60Hz sine wave and I would like to calculate the RMS using the DSP library: keil.com/pack/doc/CMSIS/DSP/html/group__RMS....
user avatar
-1 votes
1 answer
227 views

How to obtain the unique id of STM microcontroller?

I need to know how to obtain the STM32f107 microcontroller unique ID. I have read this page but it doesn't cover how to find the address of unique ID of different STM MCU.
user avatar
  • 117
0 votes
2 answers
199 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: ...
user avatar
2 votes
3 answers
262 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 ...
user avatar
  • 128
0 votes
1 answer
496 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 ...
user avatar
0 votes
0 answers
34 views

Ping problem CMSIS Stm32f10x with UDP

Here is my program: ...
user avatar
  • 117
1 vote
0 answers
1k 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 ...
user avatar
1 vote
1 answer
199 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 ...
user avatar
1 vote
1 answer
500 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 ...
user avatar
5 votes
1 answer
1k 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 ...
user avatar
  • 341
5 votes
2 answers
8k 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 ...
user avatar
0 votes
2 answers
372 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 ...
user avatar
  • 591
0 votes
1 answer
555 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 ...
user avatar
1 vote
2 answers
838 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). ...
user avatar
  • 11
0 votes
1 answer
1k 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.
user avatar
  • 827
2 votes
1 answer
3k 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 ...
user avatar
4 votes
3 answers
2k views

Difference between __I and __IO and __O in CMSIS core

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

CMSIS GPIO_DeInit Function

Why to Enable and then why to immediately Disable at the following piece of program? ...
user avatar
3 votes
2 answers
439 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 ...
user avatar
0 votes
1 answer
45 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, ...
user avatar
1 vote
0 answers
646 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,...
user avatar
-1 votes
1 answer
487 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 ...
user avatar
  • 7
0 votes
2 answers
354 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 ...
user avatar
  • 1,749
1 vote
0 answers
447 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 ...
user avatar
  • 121
1 vote
0 answers
957 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 ...
user avatar
  • 370
0 votes
2 answers
176 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 ...
user avatar
0 votes
1 answer
278 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: ...
user avatar
4 votes
4 answers
3k 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 ...
user avatar
2 votes
2 answers
100 views

Why this Unions are required in between Structure while developing USB peripheral driver?

...
user avatar
4 votes
2 answers
15k 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 ...
user avatar
  • 375
3 votes
1 answer
4k 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....
user avatar
  • 846
0 votes
1 answer
861 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. ...
user avatar
44 votes
5 answers
49k 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 ...
user avatar
  • 1,291
0 votes
1 answer
2k views

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

I am trying to change the STM32F407 system core clock to be 100 MHz. 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....
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 459