Forum Posts
STM32L072 (B-L072Z-LRWAN1) - SPI2 not working
Hi,I'm working with B-L072Z-LRWAN1 platform and struggle to see a signal on SPI2.My SPI2 is connected on an accelerometer. It is configured as follow:void HW_IMU_SPI_Init( void ) { /*##-1- Configure the SPI peripheral */ /* Set the SPI parameters...
Not able to handle multiple external interrupts.
How to handle multiple External (more than 2 )interrupts on same port (eg Port A) of STM32. my code is below , I wants to know that how can I Differentiate External interrupt 0 And 1. I have configured pushbutton1 on PA0, Pushbutton2 on PA1, pushbutt...
Best way to interface to external ADCs like TI's ADS1232?
There is a plethora of 24-bit ADCs similar to TI's ADS1232, which output data using a "DREADY/DOUT" pin and expect the micro to supply a variable number of clock pulses depending on the operation (read / calibrate / write, etc).These are typically lo...
Best way to mate interrupts with c++ periephal drivers?
Hey!Lets say I write general Can periephal driver in c++ for stm32f4 series(which I'm actually doing), then interrupt handlers for can1 and can2.Now the proplem is how do I tell lets say can 1 rx interrupt, that >>this instance of object<< is the ...
__set_BASEPRI -- implicit declaration
__set_PRIMASK(1); // No error __set_BASEPRI(3 << 4); // Implicit declarationThis is a snippet of my code from keil uvision5. But, the IDE results in a syntax error; implicit declaration of function ' __set_BASEPRI ' is inval...
Could you give me some reason, why after run receiving I2S via DMA, the handler at half and full of fill of a buffer runs only once?
Configuration: DIR9001 as reciever of optical sound and convertor to I2SSTM32F407VG DISCOVERYSTM32 CUBE IDEAfter setting I2S, I can normally at while loop recieve valid I2S singnal from convertor. After change code to DMA and starting the DMA via con...
Need help !!! I want to make 3 delay functions which works guaranteed delay in nanoSecond, microSecond and milliSeconds using Timer.
What i am currently using to achieve my goal.Few Details :1: STM32F103C8 Blue Pill2: CMISS core Library3:Datasheet, Reference Manual and Programming ManualI have attached two files. Which give you some idea that how I want to make These 3 functions. ...
Enabling a PWM kills ability to set state on some GPIOs
I am working with an STM32F777. I need to enable both GPIOs and PWMs (which ones is configured at run time by the application). Right now I'm seeing that some PWMs kill other GPIOs. For example if I turn on a PWM on TIM4 CH3 (PB8), it kills GPIOs on ...