STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM32CubeMX v4.26.0 makefile code generation error

Posted on June 17, 2018 at 04:38Hi,I think I encountered with code generation error of STM32CubeMX v4.26.0 in Makefile setting. This is how to regenerate it:1. Create any project2. Generate code with Makefile setting.3. Close CubeMX4. Find the proje...

Reading a 16-bit word via SPI

In order to read a 16-bit word from a current sensor, is it correct to say: HAL_SPI_Receive(&hspi1, &SPIRx[0], 1, 1); //?SPIRx is declared as uint16_t SPIRx[1];I told CubeMx that the data size for SPI1 is 16 bits

xpp07 by Senior
  • 885 Views
  • 4 replies
  • 0 kudos

ARM Cortex M4 SVC interrupt causes usage fault

I’m trying to write a context switch assembly on STM32F411E but I encounter a usageFault right after I make a second call to the SVC 0 (in my second task) instruction. The funny thing is the first task can make SVC calls just fine but the second task...

SMola by Associate II
  • 1693 Views
  • 6 replies
  • 1 kudos

Using the inline compiling macro ?

I have an LCD is on an 8080 16bit FMC interface with A0 register select.I can read the status correctly here:#define LCD1_DEVICE_ADDR (uint32_t)0x60000000 #define LCD1_DEVICE_DATA (uint32_t)0x60000001   uint16_t *pLcdRStatusWAddress = LCD1_DEVICE_...

T J by Lead
  • 1486 Views
  • 13 replies
  • 0 kudos

ad转�?�波动

�?�片机型�?�:stm​32f103vet6 。出现问题 :数值�?�化基本是准的,就是ad转�?�波动。以4096的�?和范围有正负50-80的波动。实验对比:12V开关电�?和电池/晶振接地两端有1M电阻/软件中�?�?�值滤波/�?�AD转�?�和多AD MDA​ 无差异�?3路AD转�?�,采用MDA,请大家指点�?​

User.51 by Associate
  • 429 Views
  • 1 replies
  • 0 kudos

How to configure I2C2 module on STM32F217ZG?

I have managed to communicate via I2C1, but when I switch over to I2C2 I always get a "Busy" response state from the MCU.Please keep in mind that this is the same I2Cx module from the same datasheet which is set up and executed in the same way as I2C...

SJaci by Associate
  • 381 Views
  • 1 replies
  • 0 kudos

Resolved! STM32F030 HSI clock output on MCO pin

Hi,I have configured my Nucleo-64 board with the STM32F030R8 with the STMCube software.The HSI is set as system clock (no PLL) and measured over the MCO pin (PA8). I will attach the main.c.The measurement you can see below.There are breaks within the...

0690X000006C35eQAC.png

Setting up I2C1 on STM32L152

I'm having a problem which appears to relate to initialisation of the I2C. When I turn on the clock to the I2C1 it sets the busy flag. Sometimes when setting up the GPIO this flag clears, sometimes it doesn't! Could someone point me at guaranteed rel...

RPowe.9 by Associate
  • 444 Views
  • 1 replies
  • 0 kudos