STM32 MCUs Embedded software

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Translate spi ready from Arduino top stm

Hi I wanted to translate the following Arduino code with hal stm:uint32_t TMC5160_SPI::readRegister(uint8_t address){// request the read for the address_beginTransaction();_spi->transfer(address);_spi->transfer(0x00);_spi->transfer(0x00);_spi->transf...

SDall by Associate II
  • 785 Views
  • 3 replies
  • 1 kudos

Resolved! I cant assign a value to variable

Hi,I am trying to assign Adc.Raw[0] and Adc.Raw[1] to Vref and Vtemp as in below code snippet. But, Vref and Vtemp gets 0. These variables never updated with Adc.Raw values.Could you please point me in the right direction ? 

demir_0-1708356711425.png demir_1-1708356733689.png
demir by Senior II
  • 1034 Views
  • 5 replies
  • 4 kudos

Resolved! SD Card no file system error.

Hi,I would like to make an application to access micro sd card via SPI from STM32F407VG-DISC1 board. I have configured the pins as seen in table below.Main file is also attached. However, when I run the application I get FR_NO_FILESYSTEM error. My ca...

demir by Senior II
  • 4344 Views
  • 10 replies
  • 2 kudos

Resolved! Problem when change delai of a synced timer

Hello Forum, I am struggling with a sync timer problem and I have no more idea for resolve it. Here we go :TMR5 is configured as master for TMR3TMR3 is configured as master for TMR4 I configured TMR3 as OnePulse output signal with a delai from a Outp...

mika14_0-1708009435115.png mika14_2-1708009506263.png
mika14 by Associate II
  • 1573 Views
  • 3 replies
  • 0 kudos

Resolved! HAL and concurrency.

I am wondering if HAL functions have some builtin protection mechanism or if I have to wrap them around a  semaphore/mutex take/give. For example, if two tasks call `HAL_ADC_Start(&hadc1);` or `HAL_UART_Receive_IT`, what will happen? Shall I use a se...

ubaldot by Senior
  • 613 Views
  • 1 replies
  • 1 kudos