Questions tagged [cmsis]

Cortex Microcontroller Software Interface Standard

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

How do I use CMSIS without a GUI or IDE?

I have a bare metal STM32 C project working on a NUCLEO-F446RE. To learn about MCUs, I did not use any code generators or IDEs, but created a simple Makefile, linker script, start up C code, and <...
SRobertJames's user avatar
0 votes
0 answers
35 views

STM32 FreeRTOS UART failing to return from interrupt

MCU is an STM32L422 FreeRTOS (CMSIS-V2), 3 simple tasks, they run just fine on their own. USART1 is configured to receive data via IDLE detection and DMA circular buffer. Again it works fine on it's ...
Charles's user avatar
  • 137
3 votes
3 answers
150 views

MAX32660-EVSYS SWD not working with longer cable

My MAX32660-EVSYS frequently fails to start pyocd and/or program the target when the ARM SWD (Single Wire Debug) cable (connecting it to the target MAX32660) is 12 inches or longer. It appears that ...
personal_cloud's user avatar
0 votes
0 answers
31 views

STM32: Can I use xQueuePeek while using CMSIS V2?

I'm new to STM32 and freeRTOS in general. The project I created with SMT32CubeIDE gave me the option to use freeRTOS but the choices were CMSIS V1 or V2 only. I picked V2. I've read that CMSIS Vx are ...
Rodo's user avatar
  • 915
0 votes
0 answers
34 views

Delete modules and variables that are not used in IAR

I wanted to use a standard library (CMSIS-DSP) and I only used a few functions & variables of that library, but it's like the whole library has been added to my project. And it takes a lot of ...
Ho3ein H K's user avatar
1 vote
1 answer
146 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 ...
Max Walczak's user avatar
1 vote
1 answer
187 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 ...
jake_asks_short_questions's user avatar
2 votes
3 answers
374 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 ...
Ilya's user avatar
  • 3,478
3 votes
0 answers
79 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 ...
V.Ajall's user avatar
  • 69
1 vote
1 answer
89 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 ...
Volt's user avatar
  • 169
-3 votes
2 answers
177 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 ...
Bratw's user avatar
  • 111
0 votes
0 answers
74 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 ...
thinwybk's user avatar
  • 125
2 votes
1 answer
919 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 ...
thinwybk's user avatar
  • 125
3 votes
1 answer
4k 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: ...
personal_cloud's user avatar
0 votes
1 answer
237 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 ...
blankMCU's user avatar
7 votes
3 answers
6k 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 ...
Amin Rostami's user avatar
0 votes
1 answer
243 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 ...
Souvik Saha's user avatar
0 votes
2 answers
215 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 ...
Cogno-Slayer's user avatar
-1 votes
1 answer
737 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 ...
Plasmabot's user avatar
0 votes
0 answers
139 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, ...
Luffy's user avatar
  • 65
3 votes
1 answer
757 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
726 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.
John Jin's user avatar
  • 147
0 votes
2 answers
530 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: ...
Furkan Mola's user avatar
2 votes
3 answers
366 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 ...
vram's user avatar
  • 158
0 votes
1 answer
962 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 ...
Tirdad Sadri Nejad's user avatar
0 votes
0 answers
48 views

Ping problem CMSIS Stm32f10x with UDP

Here is my program: ...
John Jin's user avatar
  • 147
1 vote
0 answers
2k 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 ...
Sandhan Sarma's user avatar
1 vote
1 answer
319 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 ...
user244879's user avatar
1 vote
1 answer
967 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 ...
Marco Svizzeri's 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 ...
iter's user avatar
  • 341
7 votes
2 answers
11k 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 ...
Fedor Chervyakov's user avatar
0 votes
2 answers
533 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 ...
19172281's user avatar
  • 685
0 votes
1 answer
756 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 ...
Marcelo Gadotti's user avatar
1 vote
3 answers
1k 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). ...
uis's user avatar
  • 106
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.
scico111's user avatar
  • 857
2 votes
1 answer
4k 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 ...
Amin Rostami's user avatar
4 votes
3 answers
3k views

Difference between __I and __IO and __O in CMSIS core

in core_cm4.h header file defined some thing like this: ...
Amin Rostami's user avatar
1 vote
1 answer
162 views

CMSIS GPIO_DeInit Function

Why to Enable and then why to immediately Disable at the following piece of program? ...
Amin Rostami's user avatar
3 votes
2 answers
549 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 ...
Kévin Isabelle's user avatar
0 votes
1 answer
68 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, ...
Sam Hammamy's user avatar
1 vote
0 answers
726 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,...
user3147192's user avatar
-1 votes
1 answer
547 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 ...
KwFx's user avatar
  • 7
0 votes
2 answers
408 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 ...
Leroy105's user avatar
  • 1,857
1 vote
0 answers
481 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 ...
Ris97's user avatar
  • 121
1 vote
0 answers
1k 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 ...
Florent's user avatar
  • 370
0 votes
2 answers
215 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 ...
mulesandip3's user avatar
0 votes
1 answer
297 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: ...
BachehKaraji's user avatar
6 votes
4 answers
4k 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 ...
Nguyễn Thanh Vũ's user avatar
2 votes
2 answers
107 views

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

...
prithivi raj's 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 ...
electro's user avatar
  • 375