Questions tagged [cmsis]

CMSIS is a vendor-independent hardware abstraction layer for the Cortex-M processor series.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

STM32Cube: FreeRTOS 10.0.1 and CMSIS v2 generate warnings

I'm using STM32Cube to generate an IAR EW 8.2 project with FreeRTOS 10.0.1 and CMSISv2 API's. When I clean up the project and build again, I get the following warnings Warning[Pe177]: variable "...
1
vote
1answer
26 views

(STM32L476RG) Flag setting (osThreadFlagsSet) crashes microcontroller when executed in an Interrupt (GPIO EXTI)

I am currently learning CMSIS-RTOS v2 and I have an issue that is bugging me and I can't find the answer I need. I am using the STM32L476-Disco board and the joystick center button as an interrupt. I ...
0
votes
0answers
32 views

Extracting TensorFlow model info for deployment with CMSIS NN on Cortex-M

G'day! I'm a bit new to TensorFlow, and this question seems basic, but I can't find a straight forward answer. I've followed most of the ML concepts portion of the Google Machine Learning Crash Course ...
0
votes
1answer
32 views

How to add transform functions from CMSIS DSP library to a Makefile?

I wrote a code that used arm_cfft_f32 function from CMSIS DSP library. How to add CMSIS DSP library to Makefile of my project? The Makefile generated by STM32CubeMX for STM32F407 chips. I copied .c ...
0
votes
0answers
25 views

while running nn_quantizer.py for CIFAR10 got error blob_dims == blob->shape() Cannot load blob from hdf5

I am executing ML-examples ->cmsisnn-cifar10. Successfully generate mean file mean.binaryproto,ancifar10_test_lmdb and cifar10_train_lmdb. While converting trained Caffe model into .pkl file, so ...
0
votes
0answers
38 views

CMSIS DSP FFT library level measurement lacks accuracy

I tried to use CMSIS DSP library for FFT implementation on STM32F407. I based my project on Tilen MaJerle library. I sample data with on board ADC and fill the input buffer with function ...
0
votes
0answers
11 views

how can I add the CMSIS libraries to Mingw-w64?

I'm trying to set up an environment to develop in a Tiva-C Launchpad in Windows. i'm using MinGW to compile my C programs but I'm having trouble adding the CMSIS header files into MinGW. So I want to ...
0
votes
2answers
79 views

How to properly normalize pid coefficient in q15 fixed point

I'm working on a PID controller using CMSIS library on a STM32F4 microcontroller. I can't really understand the normalization of the PID parameter. Now I have the three Kp, Ki, Kd parameters of the ...
0
votes
0answers
51 views

objcopy given sections from elf to hex file

I'm trying to objcopy some elf file to ihex with following command: arm-none-eabi-objcopy -j .flash_vectors -j .isr_vector \ -j .text -j .rodata ./app.elf -O ihex ./app.hex and I'm trying to ...
0
votes
0answers
44 views

Using CMSIS HAL to access MSP

I need to start the main stack pointer of my device to initialise at a different address from the ORIGIN section. It is to implement a second-stage bootloader. Point is that I cannot use the __set_MSP(...
-1
votes
1answer
64 views

Compilation of CMSIS-DSP application, .a library not recognized

I am using GNU MCU ECLIPSE and the ARM toolchain to target CortexM MCUs, and I want to use functions from CMSIS DSP library. I have downloaded the library from the repository from https://github.com/...
0
votes
0answers
24 views

CMSIS_OS2.c does not compile

I am working on a C project using FreeRTOS but I would like to update it using the abstraction layer CMSIS_OS2. Problem that is my FreeRTOS config file, I don't have all options enabled, so for ...
0
votes
1answer
49 views

Understanding the execution of command *__SIMD32(pIn)++ in embedded C

int8_t scratchbuffer[27000]; *pV = scratchbuffer; *pSRC=pV; *pIn=pSRC; I need to understand solving of *__SIMD32(pIn)++ The definitions are mentioned below. #define __SIMD32_TYPE ...
2
votes
4answers
155 views

How to run a periodic thread in high frequency(> 100kHz) in a Cortex-M3 microcontroller in an RTOS?

I'm implementing a high frequency(>100kHz) Data acquisition system with an STM32F107VC microcontroller. It uses the spi peripheral to communicate with a high frequency ADC chip. I have to use an RTOS. ...
1
vote
0answers
111 views

Not possible to do CFFT Frequency binning with CMSIS on STM32?

At the moment I am attempting to implement a program for finding 3 frequencies (xs = 30.1 kHz, ys = 28.3 kHz and zs = 25.9 kHz) through the use of the CMSIS pack on the STM32F411RE board. I cannot get ...
0
votes
3answers
133 views

Unknown datatypes IRQn_Type,

When trying to build my project, I get errors like: Drivers/CMSIS/Include/core_cm4.h:1816:41: error: unknown type name 'IRQn_Type'; did you mean 'ITM_Type'? 1816 | __STATIC_INLINE void ...
1
vote
1answer
73 views

uint32_t seems to be unknown in the CMSIS Math files?

I am getting the error: CMSIS/DSP/Include/arm_math.h:3943:3: error: unknown type name 'uint32_t'; did you mean 'wint_t'? I could add stdint.h to the arm_math.h but I assume I did something wrong ...
1
vote
1answer
142 views

i2c transmission, stm32f103 as a Master, problem with STOP condition generation

I am using KEIL. Here is my code for I2C setup. I am trying to set it up using interrupts. Actually, everything works fine like this. But only problem I have is that I did one strange thing in order ...
1
vote
1answer
293 views

How to include the CMSIS-DSP headers in Atollic TrueStudio

I am trying to implement the use of DSP in the STM32 F411RE board, but I cannot seem to include the necessary files without invoking numerous errors. Background I have previously had CMSIS and CMSIS-...
0
votes
2answers
287 views

FreeRTOS stuck in osDelay

I'm working on a project using a STM32F446 with a boilerplate created with STM32CubeMX (for peripherals initialization and middleware like the FreeRTOS with the CMSIS-V1 interface). I have two threads ...
0
votes
1answer
267 views

STM32 CMSIS FreeRTOS: configASSERT triggered when releasing BinrarySemaphore from ISR

I have a UART Idle interrupt that is supposed to notify a task that activity on the UART has ended. For this I am using a BinarySemaphore which in this case is just a Semaphore with max count of 1. ...
0
votes
3answers
73 views

How to make my code independent of “RTOS”?

I want to to write a module that need some RTOS APIs like Mbox and Task creation API ! I'm trying to have structured code and to do that I'm looking at some libraries like "lwip" . In "lwip" there is ...
0
votes
0answers
45 views

Cannot access target, debug stopped STM32F407 ARM Cortex

I am trying to run deep learning neural model described in https://www.dlology.com/blog/how-to-run-deep-learning-model-on-microcontroller-with-cmsis-nn/, I am using updated MDK Lite version 5.27. The ...
1
vote
0answers
68 views

CMSIS arm_rfft_fast_f32 in place gives different results depending on the device

I've recently updated some code performing a real FFT for armV7M based micro-controllers. After noticing some regressions, not all the time depending on the board I was testing on, I found out the ...
1
vote
0answers
372 views

CMAKE - find_library find_path find_file all not working

So I have a library here /path/to/CMSIS/libarm_cortexM4lf_math.a I can't seem to find it using find_library with Cmake. Further more I can't find a simple text file with find_file or find_path. I've ...
1
vote
1answer
63 views

fft output show unexpected symmetry

I am running a cfft on a signal. The output seems to show symmetry. I know that an fft is symmetrical, but the code arm_cfft_f32(&arm_cfft_sR_f32_len512, &FFTBuf[0], 0, 1); arm_cmplx_mag_f32(...
0
votes
0answers
101 views

applying a window to audio samples screws the output

Using arm_mult_f32 to multiply two arrays produces unexpected(garbage) results. I have been reading up about dsp. I am creating Hann coefficients to apply to sampled PCM data, before the FFT. THe ...
-1
votes
1answer
79 views

Keil microVision “Cannot download file … Cannot write destination file”

Trying to download the ARM::CMSIS-RTOS pack my mouse is hovering over and I get the errors in red at the bottom ("Cannot download file http://www.keil.com/pack/ARM.CMSIS-RTOS_Validation.1.1.0.pack: ...
0
votes
0answers
176 views

CMSIS DSP returning Hard Fault (Cortex M0)

I'm trying to debug this code and identify what's causing a hard fault upon calling the fft method. The program is reading from an ADC via interrupts and every 128 cycles it calculates the FFT of the ...
0
votes
0answers
42 views

CMSIS inHandlerMode() Function

i am using CMSIS on a STM32. I stumbled upon a function which seems to be able to detect whether i'm in an IRQ handler or "normal" thread mode. Basically this function ends up calling __attribute__( ...
1
vote
3answers
112 views

How to create a struct of structs of known maximum size [closed]

Edit: I am now aware of the confusion I made between array and pointer. I appreciate the remarks but won't make the question more accurate, as it would lose part of the reason I wrote it. I am trying ...
2
votes
1answer
777 views

How to install CMSIS package for Eclipse?

I want to install CMSIS pack provided by Keil. The page says to download the source code and install from Help Menu of Eclipse. But when I select the folder it is showing an error "Could not find file ...
1
vote
1answer
2k views

[Atollic Truestudio][STM32] “Load Failed” while GDB download/debug using CMSIS-pack/Components

I am trying to use CMSIS-pack with my new F103 project. Until now, I was using auto-generated project structure, just moving some files elsewhere and everything worked fine. Now with CMSIS-pack, ...
1
vote
1answer
74 views

Cannot find lpc1768 specific FreeRTOS-Plus libraries

I inherited a project that is built on lpc1768-based hardware. This was not used for years and the original developers left the company. The project uses FreeRTOS, CMSIS library for the lpc1768 and ...
0
votes
1answer
202 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
832 views

Unable to use CMSIS library in Atollic

I am trying to use CFFT function for my STM32 microcontroller in Atollic TrueStudio. But I am unable to use any of the DSP functions. I get the error - undefined reference to `arm_cfft_f32' and ...
0
votes
0answers
54 views

Could a chip revision change break binary compatibility by CMSIS?

Suppose the following situation: You develop something to a certain manufacturer's ARM based microcontroller. You are using CMSIS for interfacing the hardware (as recommendable on this architecture). ...
1
vote
3answers
600 views

STM32f091rc UART Receive function returning only the last byte of the packet instead of the full data packet

I have been working on STM32f091rc board, trying to get UART1 and UART2 work. I tried sending 8 bytes of packet from a controller to the STM board. Due to some reasons, my function is just displaying ...
1
vote
0answers
200 views

Undefined reference, when using fft routine from cmsis library

I am trying to use fft functions in my application code for particle-photon. I have managed to link my library to the cmsis prebuilt-library for Cortex M3. However when I call the actual fft function: ...
0
votes
0answers
493 views

Got a “Fatal Error : Failed to connect to CPU Session aborted !” in IAR IDE

I use CMSIS-DAP link for debugging and CMSIS-DAP firmware load successfully. and I use IAR Workbench Version 7.80 IDE. I can build code successfully. But after I Got a "Fatal Error : Failed to ...
1
vote
1answer
379 views

CMSIS DSP FFT output for same input signal is different for number of FFT points

I am using the CMSIS DSP FFT functions to convert a known signal from time to frequency domain. The signal in question is a 1 KHz sine wave of peak-peak amplitude of 1V with a DC offset of 1.25V. I am ...
1
vote
2answers
340 views

Mutex captured by one thread and released by another CMSIS and FreeRTOS STM board

We are having an issue with a mutex in CMSIS and FreeRTOS on an STM32F407 board. There are two threads that can access a hardware radio via a UART. We are using a mutex to ensure only one thread can ...
0
votes
2answers
160 views

CMSIS for Cortex-M1

Sadly I'm forced to use and obscure microcontroller based on ARM Cortex-M1 core. I just found out that the latest CMSIS (5.2) does not support it and official CMSIS docs say this: CMSIS supports ...
-1
votes
1answer
136 views

CMSIS - Peripheral Definitions - Structs With Unions Syntax?

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
461 views

LwIP on STM32F769

I'm trying to make a webserver out of my STM32F769I-Discovery board with RTOS and LwIP. It's supposed to return a few simple html/image files. Here's the link to the full code I have so far: https://...
1
vote
1answer
588 views

How to link arm_cortexM4l_math.lib in Openstm32

I've included CMSIS_5 library, but I don't know how to link arm_cortexM4l_math.lib to my stm32 project for FFT. My board is stm32f407-DISCOVERY and I'm using Openstm32.
0
votes
0answers
2k views

CMSIS real-FFT on 8192 samples in Q15

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
2answers
2k views

multiple thread in CMSIS RTOS - STM32 nucleo L053R8

Today I developing RTOS (CMSIS RTOS) for kit STM32 nucleo L053R8. I have issue relate to multiple task. I create 4 task(task_1, task_2, task_3, task_4), however only 3 task run. This is part of my ...
0
votes
0answers
1k views

Can't send data through UART using HAL_UART_Receive_IT

I am using stm32f4 on discovery board with freertos running on it. Just started working with stm32 controller and trying to make data transfer using UART. Printf based on HAL_UART_Transmit works ...
0
votes
0answers
804 views

CMSIS-RTOS osMessageGet function

I have been working on a software based on CMSIS-RTOS and I have a problem with function osMessageGet. My software consists of four RTOS tasks and two of them exchange data via osMessageQueue in ...