195 questions
0
votes
1
answer
82
views
IoT Nano 33 Timer Issues
For a project I have to fulfill the following conditions:
Setup interrupts on the ARM Cortex MCU using CMSIS APIs
a) Show how to initialise global interrupts on the ARM Cortex for GPIO pins and ...
0
votes
0
answers
49
views
Can I call CMSIS-RTOS2 osEventFlagsWait from 2 threads?
Documentation of CMSIS-RTOS2 function osEventFlagsWait does not indicate restrictions relative to sharing the same event object between two threads waiting for different set of flags.
Is there a ...
0
votes
2
answers
85
views
CMSIS RTOS2 behaviour upon kernel lock
I am working on CMSIS-POSIX port to CMSIS RTOS2, and I am trying to understand how APIs should behave after osKernelLock was called.
My guess it is like in ISR and just functions that can be called ...
-1
votes
1
answer
114
views
MPU 6500 WAKE-ON-MOTION INTERRUPT not working
Alright so I'm trying to make the MPU 6500 work with interrupt on motion. My issue is that it worked yesterday and today it stopped working. And I'm proper lost as to why. Currently it constantly ...
1
vote
0
answers
88
views
__WFI() does not work as it should in STMCube
I'm programming in C on STM32f103rbT6. I'm using STM32CubeIDE.
For some strange reason, the __WFI function, instead of waiting for an interrupt to occur, automatically calls itself and doesn't wait ...
1
vote
1
answer
41
views
STM32F407 TIM PWM mixed offset signals
I'm working on a project on an STM32F407-DISC and I want to output the attached signal via PWM, I would like to offload as much of this from the processor as possible while keeping the timing of these ...
0
votes
0
answers
48
views
Embedded CMSIS pack no longer have bitfields
I have noticed that the CMSIS packs for no longer include bitfields for the peripheral.
https://www.keil.arm.com/packs/
It appears that version 2 had bitfields and then version 3 does not. What ...
2
votes
0
answers
79
views
How to use Arm CMSIS-NN Softmax function for Embedded ML
I am trying to figure out how to use the CMSIS-NN Softmax function for a 16 bit signed input https://github.com/ARM-software/CMSIS-NN/blob/22080c68d040c98139e6cb1549473e3149735f4d/Source/...
0
votes
1
answer
77
views
Uninitialialized variable warning in cmsis_armcc.h
When I run a static analysis (codesonar) tool, I get security issues related to an uninitialized variable in the cmsis_armcc.h file for the following code:
__STATIC_INLINE uint32_t __get_CONTROL(void)...
0
votes
1
answer
129
views
How to write data to the control registers of the accelerometer LIS3LV02DQ?
UPD: added an oscilloscope view
I am writing a driver to measure acceleration using the accelerometer LIS3LV02DQ. I use STM32F411 and CMSIS. I connected a four-channel SPI and set it to a frequency of ...
0
votes
1
answer
160
views
STM32 I2S DMA TxHalfCplt Callback only execute once
I'm using I2S DMA to play some wav files (fixed format and sample rate) using double-buffer technique,
and somehow when the transmit starts, TxHalfCplt Callback only called once and then stopped ...
0
votes
0
answers
76
views
STM32CubeMX xTaskCreate() not scheduling on STM32F030
I have used STM32CubeMX to create a FreeRTOS task on the STM32F030 development board using the CMSIS-RTOS v2 interface, but the task I created using xTaskCreate() is not scheduling correctly, and the ...
1
vote
1
answer
82
views
Why does eTaskConfirmSleepModeStatus not return eNoTasksWaitingTimeout?
I use FreeRTOS with tiskless mode enabled.
I'm having trouble understanding what's happening in the code:
I call this function:
eSleepModeStatus eTaskConfirmSleepModeStatus( void )
{
/* ...
0
votes
0
answers
271
views
LSM6DS3 SPI-communication problem with STM32F4
I'm having trouble getting data from the LSM6DS3 sensor over 4-wire SPI. The datasheet says 4-wire SPI is the default, so I didn't send anything for the sensor settings, and immediately tried to read ...
1
vote
4
answers
128
views
C How to hold off a thread while stepper motor is running
I have CMSIS RTOS running on an ARM controller. One thread is used for executing stepper motor movements.
The stepper motor moves 2000 steps in one direction and returns to the startpoint.
Currently, ...
1
vote
1
answer
239
views
scipy butterworth filter to arm cmsis
Witn scipy, I did some experiments with a butterworth filter like this:
sos = butter(order, normal_cutoff, btype='low', analog=False, output="sos")
I expect sos to be the coefficient of the ...
0
votes
1
answer
359
views
Using CMSIS with baremetal ARM cortex-M0 on Texas Instruments
I'm trying to integrate CMSIS-Core into a project that uses the MSPMOL-1306-Q1 MCU from Texas Instruments. Most examples seem to be for STM32 Cube MCUs. For instance, this and this.
I am facing an ...
0
votes
0
answers
130
views
Problem with STM32F407VET6 ADC via CMSIS. The ADC returns zero values
I am configuring the ADC to sequentially digitize the inputs ADC9, ADC14, ADC15, ADC6, ADC7, ADC8 (pins PF3, PF4, PF5, PF6, PF7, PF8). The controller pins are also configured. I also allow interrupts ...
3
votes
1
answer
2k
views
How to get CMSIS 6.0 + DSP running in CubeIDE?
Until now I always used CMSIS 5.7 plus the DSP library in CubeIDE. Unfortunately this version has no arm_atan2_f32 function, which I need for my actual project. So I tried to update to a newer version ...
2
votes
1
answer
386
views
Configuring the STM32F407VET6 ADC using CMSIS
I'm trying to configure the ADC of the STM32F407VET6 microcontroller. I use the following code.
int main(void)
{
// GPIOF Clock enable
RCC->AHB1ENR |= RCC_AHB1ENR_GPIOFEN;
// Analog ...
0
votes
0
answers
139
views
Matrix convolutional multiplication with CMSIS-DSP
Can the library CMSIS-DSP do matrix convolutional multiplication?
When I looking at the documentation of the library I can see that it only supports regular convolutional vector multiplication.
...
0
votes
1
answer
343
views
STM32 change PWM Duty Cycle dynamically in RTOS
I'm using this code below trying to achieve a intensity transition effect upon turning on a light:
void output2ControlTask(void *argument)
{
/* USER CODE BEGIN output2ControlTask */
uint32_t ...
0
votes
0
answers
143
views
STM32 DMA is not restarting when used with CMSIS V2 Queue
I am developing STM32 firmware based on FreeRTOS. I am using Nucleo-G491RE board.
I am using CMSIS V2 and Queue to handle the data received on UART. The UART fires correctly on receipt of data and ...
0
votes
1
answer
129
views
Selective linking of CMSIS DSP?
My ARM based app reports > 1,250,000 bytes of program memory, but most of that is .rodata ("Read-only const") and not code. I found this in the .map file:
.rodata%268 0x00407318 ...
-1
votes
3
answers
638
views
why is CMSIS DRIVER not providing all the important drivers used in embedded world
I wanted to use CMSIS driver APIs instead of HAL provided by stm. when I visited the link CMSIS DRIVER APIs No where I found, the most commonly used drivers like pwm, adc, gpio etc., why is that so, ...
-1
votes
1
answer
271
views
Why does cmsis-nn determine “#if defined(ARM_MATH_DSP) && !defined(ARM_MATH_MVEI)”
I'm compiling the cmsis-nn library, and in that library there are some functions which determine "#if defined(ARM_MATH_DSP) && !defined(ARM_MATH_MVEI)".
For example arm_relu_q15.c. ...
0
votes
1
answer
140
views
Can pSrc and pDst function arguments in ARM DSP point to same memory?
I use the following functions from ARM DSP library:
void arm_fir_f32(const arm_fir_instance_f32 *S, const float32_t *pSrc, float32_t *pDst, uint32_t blockSize);
void arm_biquad_cascade_df2T_f32(const ...
0
votes
0
answers
170
views
Stm32f103c8 LEDs blinking using Systick (Registres Programming)
I have an STM32f103c8 with 8Mhz SystemClock i configured My Systick to make delay every 1 seconde , i have a Button Connected to PA1 (Input Pull up) and Two Leds PB8 and PB9 i want when i press first ...
0
votes
1
answer
2k
views
Are STM32 HAL drivers based on CMSIS?
I was wondering how HAL drivers are implemented, and more in general how CMSIS is involved in peripheral drivers for ARM based microcontrollers (specifically STM32 microcontrollers, but also Cypress ...
0
votes
0
answers
164
views
No Data Receiving from UART using poll for conversion in stm32f103cbt6
I'm currently working on a distance sensor with stm32f103cbt6 which transmits data serially using UART. I used HAL_UART_Receive function to receive the data but I cannot see any data on Serial Monitor....
0
votes
0
answers
399
views
SPI Slave on STM32 dosen´t send and receive data
I'm trying to send data to my STM32F427 MCU using the MCP2210 as the master in SPI communication. The MCP2210 acts as a HID device that converts USB data from the computer to an SPI signal, acting as ...
0
votes
1
answer
944
views
In stm32, when I use any function in the HAL library in while, it enters while only once
The software does not stand up when I use any function from the Hal library. It goes into While only once and then does nothing.
I reinstalled the project, made all the settings again and got the same ...
1
vote
1
answer
3k
views
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 ...
1
vote
1
answer
623
views
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 ...
1
vote
1
answer
207
views
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 ...
1
vote
1
answer
4k
views
how to avoid HAL_UART_RECEIVE_IT() overrun error (errorcode 8)
my IT is called after receiving 8 bytes:
HAL_UART_Receive_IT(&huart2, buffer1, 8);
where buffer1 has length 8.
in my callback function I copy the 8 bytes to a seperate buffer2 and empty buffer1 &...
0
votes
0
answers
368
views
Bare metal programming with CMSIS library
I want to build a simple project by programming nucleo f103rb board (just blink led for the moment). I want to use CMSIS library to run my code. ( yes I know there is platform io and Kiel IDEs that ...
2
votes
1
answer
765
views
STM32 entering in STOP mode with FreeRTOS
I am trying to enter in STOP mode and wakeup using the RTC Alarm.
It works fine when testing the code before starting the FreeRTOS Kernel.
After starting the FreeRTOS Kernel the wakeup does not work, ...
0
votes
1
answer
93
views
how can the use of a function and a series of variables affect the value of other unrelated variables? [closed]
I use the CMSIS-DSP library to calculate the Fourier transform, but when I want to calculate the magnitude, I run into a problem. This affects other data (a struct variables )and makes them 0 in the ...
0
votes
0
answers
418
views
CMSIS_OS V2/FreeRTOS HardFault
i am writing a code using STM32CubeMx generated code with CMSIS-OSV2/FreeRTOS. I am sending a structure with Queues between tasks. In some point i am having a Hard Fault.
enter image description here
...
1
vote
0
answers
118
views
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 ...
1
vote
1
answer
37
views
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)
{
...
-1
votes
2
answers
575
views
How can I use hardware timer with cmsis-rtos2?
I know very well how to setup timer with hal API in stm32cubemx but I'm new to keil-rtx. Unfortunately STM32CubeMX does not support CMSIS-RTOS2.
My question is I wanna have a timer with less than 1 ms ...
0
votes
0
answers
176
views
Wait for all tasks to get initialized before starting capturing of data
I am running an application which reads ADC data through DMA at a frequency of 12kHz and transfers the captured data in a queue as soon as I get an interrupt.
Following is the configuration
STM32L496
...
2
votes
0
answers
213
views
CMSIS DSP library for ARM and MATLAB gives two different results of FFT
I am working on a project where I have to compute FFT of a signal. Same signal is fed through both MATLAB and STM32 controller and results are compared.
Results seems to be different from each other. ...
0
votes
0
answers
123
views
HAL_Delay command not working on STM32 - Nucleo-L
in our Computer Science class, we are learning to use the STEM32 - Nucleo-L controller, to code assembler. I'm a bit further than the rest of the class, so my teacher tasked me to experiment with the &...
-1
votes
1
answer
183
views
STM32 SPDIFRX Peripheral problem (interupts not firing)
I am trying to make myself Digital audio to Analog audio converter
I have STM32F769i Discovery0: https://www.st.com/en/evaluation-tools/32f769idiscovery.html
Which has SPDIFRX and SPDIFTX ports
I ...
1
vote
2
answers
1k
views
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 ...
0
votes
1
answer
564
views
CMSIS and HAL at one project integrating CMSIS and HAL
I am wondering, is it possible to add CMSIS and HAL libraries at the same project in KEIL...
based on my knowledge I added CMSIS libraries in different folder but in compiling I got these errors...
...
0
votes
1
answer
1k
views
Compiler generates FPU instructions
I realize a CMSIS Project solution with VS Code but I've an error on an include file :
#include "stm32f10x.h"
And I've got this error :
In included file: "Compiler generates FPU ...