Questions tagged [cmsis]

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

The ARM Cortex Microcontroller Software Interface Standard (CMSIS) is a vendor-independent hardware abstraction layer for the Cortex-M processor series with the following components:

  • CMSIS-CORE: API for the processor core, peripherals and the instruction intrinsics.
  • CMSIS-Driver: Standard API for Ethernet, I2C, MCI, NAND Flash, NOR Flash, SPI, USART, USB etc.
  • CMSIS-DSP: SIMD optimized DSP Library for fix-point (q7, q15, q31) and single precision floating-point (32-bit) data types.
  • CMSIS-RTOS: Common API for Real-Time operating systems.
  • CMSIS-Pack: XML based package description of the user and device relevant parts of a file collection that includes source, header, and library files, documentation, Flash programming algorithms, source code templates, and example projects.
  • CMSIS-SVD: XML based description of the peripherals for debuggers.
  • CMSIS-DAP: A USB to Debug Access Port protocol and reference firmware implementation. Can be used by pyOCD.
183 questions
2
votes
2 answers

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 'jar:file:/path/cmsis-pack-eclipse-master'".…
Naveen Kumar
  • 325
  • 1
  • 3
  • 14
2
votes
1 answer

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: arm_rfft_q31( &rfftStruct, buffer, buffer); //…
Som
  • 83
  • 2
  • 9
2
votes
2 answers

Convert 24bit Two's Complement to float_32t

I have a quite specific question. An ADC gives me 24bit datapoints in the twos complement. Usually I stored them into an 32bit int (twos complement) (by copying them starting from the MSB of the int and then shifting them 8 bits towards the LSB to…
Chuchaki
  • 361
  • 1
  • 3
  • 14
2
votes
1 answer

CMSIS-RTOS osThreadId to integer type

I'm porting a product to a CMSIS-based RTOS, and the product needs to obtain the thread ID as a 32-bit integer. However, the CMSIS thread id type (osThreadId) is completely opaque, typedef'd to struct os_thread_cb * with a comment that it can safely…
Aaron Campbell
  • 562
  • 8
  • 19
2
votes
1 answer

CMSIS-RTOS's osMailFree() returns some address instead of osStatus-type value

So I'm using CMSIS-RTOS mail-queue mechanics with Keil uVision 5.0.5 at STM32F427 microcontroller running at 180MHz. And every now and then releasing previously allocated mailbox element with osMailFree() resulted in some address being returned…
Victor Che
  • 75
  • 7
2
votes
1 answer

proper FFT length for ARM CMSIS DSP fft function

I'm currently trying to use the ARM CMSIS DSP library on my cortex m3 PSoC 5lp chip. I ran into some issues using some of the functions and I have a question about using the functions arm_cfft_q15 (or any of the arm_cfft_*** functions). Say I have …
scarlso9
  • 195
  • 3
  • 14
2
votes
3 answers

Can weak symbol be resolved among libraries during linking?

My scenario is about cross-compiling to a Arduino Due (ARM target), but I guess it's a generic C weak symbol problem. I want to break my firmware into 3 parts: 1. The hardware library (CMSIS, Middleware) -> libHardware.a 2. Realtime OS library ->…
HelloSam
  • 2,225
  • 1
  • 20
  • 21
1
vote
1 answer

STM32 Cannot Erase Flash Memory - HAL_FLASH_ERROR_PGS

When I try and erase the flash memory on my STM32L451 using HAL, the erase operation fails and the when I get the flash error it returns HAL_FLASH_ERROR_PGS. This is a programming sequence error. I'm trying to erase the last page in my flash memory…
bluscape
  • 317
  • 3
  • 10
1
vote
1 answer

STM32L073RZ ADC Channel switching not working?

I have used three channels 6,7,8 to read data of 100 samples each. Hence I cannot use sequence continuous mode to read data. I have to switch the channel after reading 100 samples of one channel. For simplicity, I just reduced the sample to 1 and…
vishnu m c
  • 841
  • 1
  • 7
  • 21
1
vote
1 answer

Is This ISR Function Call Dangerous or Inefficient?

I have a project where I need to read in some UART data (in this case, multiple six-byte packets), do some (very minor) processing, then transmit it out on a different UART. I'm having an issue with some of the TX data being corrupted mid-stream…
nobby
  • 373
  • 1
  • 3
  • 15
1
vote
0 answers

delete modules and variables that are not used in IAR by some deifnes

Hi im new to embedded system, I am using IAR compiler to work with ST MCUS(stm32f103c8t6) And I want to use CMSIS DSP library which is a large library. and I just have a mcu with 20KB RAM & 64KB FLASH. The problem I faced is that when I use…
Ho3ein H K
  • 11
  • 2
1
vote
1 answer

32x8 matrix cascade command performance delay

I have a cascade of 4 8x8 matrices working via max7219. I use stm32 f103 for send commands to the cascade. For some reason when I send CommandN, CommandN-1 performs. Here's my code int main(void) { clockInit(); SysTick_Init(72000000); …
amplifier
  • 1,793
  • 1
  • 21
  • 55
1
vote
2 answers

Transfer data from ISR/callback to a thread with RTOS

I am using ADC with DMA that captures analog vlaues and generates a callback when transfer is complete. I then, will be transfering the data to a thread to process the data as processing takes some time and I don't want to block callback…
1
vote
0 answers

CMSIS_driver I2C problem, status stuck in busy

I tried to learn the CMSIS driver in I2C. I have STM32F407VGT6 and EEPROM at24c256 as test hardware. First, create the I2C environment with CubeMX to config the I2C. https://i.stack.imgur.com/qnm5J.jpg https://i.stack.imgur.com/FA8un.jpg then I…
BF_zub
  • 11
  • 1
1
vote
2 answers

Winbond W25Q and STM32F411 Blackpill - SPI not respond

I'm writing SPI driver on top of CMSIS for W25Q (25Q64FVSIG) populated on STM32F411 Blackpill board. My problem is that flash memory are not responding to signals via SPI. MCU is configured as master, flash as slave. Clock and MOSI signal are…
1 2
3
12 13