Posted on May 30, 2015 at 04:14
Hi, when dealing with SPI with DMA this works:
SPI_CS_on();
if
(HAL_SPI_TransmitReceive_DMA(&hspi2, &dataout, &input, 1) != HAL_OK) {
/* error */
}
while
(HAL_SPI_GetState(&hspi2) != HAL_SPI_STATE_READ...
Posted on May 12, 2015 at 10:27
Hi, I'm fairly new to STM32 and, since I have to learn it from zero, I'm dealing with HAL which I'm told it's the future.
Well, maybe it will, but by now I'm having a hard time dealing with it. Docs are ok, bu...
Posted on June 02, 2015 at 23:09
From cubemx examples:
/*##-2- Start the transmission process #####################################*/
if
(HAL_UART_Transmit_DMA(&UartHandle, (uint8_t*)aTxBuffer, TXBUFFERSIZE)!= HAL_OK)
{
Error_Handler(...
Posted on May 12, 2015 at 21:25
Solved. In case someone is interested this is the right code to use:
// IRQ HANDLER FOR TIMER 3
void
TIM3_IRQHandler(
void
)
{
if
(__HAL_TIM_GET_FLAG(&TIM_Handle, TIM_IT_UPDATE) != RESET)
//In cas...