Skip to main content
Riscy
Associate III
December 4, 2023
Question

STM32U5A5: LinkedList is not triggering callback from USART1

  • December 4, 2023
  • 3 replies
  • 1575 views

In following up with excellent tutorial for GPDMA between ADC12 and USART1 (removed 2D address) via this link

https://rristm.github.io/tomas_materials_v2/RRISTM/stm32u5_workshop/master/6_gpdma_handson_events_intro.md/

Based on the event and ioc file from STM32CubeMX and realized either ADC12 or USART1 generated an interrupt at the end of the Linked List's Node block. I figure to do this

 

extern DMA_NodeTypeDef YourNodeUSART1;
extern DMA_NodeTypeDef YourNodeADC;
static void GPDMA_TransmitComplete(DMA_HandleTypeDef *hdma)
{
	if (hdma->LinkedListQueue->Head == &YourNodeADC)	// This is working for ADC12
	{
		__NOP();
		//		while(1)
		//		{
		//		__NOP();
		//		}
	}
	// ###:ISSUE: Unable to trigger to here, have tried 4 different transfer event config.
	if (hdma->LinkedListQueue->Head == &YourNodeUSART1)
	{
		while(1)
		{
		__NOP();
		}
	}
}

 

The ADC12 callback is working fine, but I am unable to get a callback from USART1.

Attached are two files.

Have I missed something?

It seems there is no configuration option to mask out interrupts from ADC and focus on USART instead?

 

 

This topic has been closed for replies.

3 replies

Riscy
RiscyAuthor
Associate III
December 17, 2023

Any progress for this query?, do you need anything more?

Rim LANDOLSI
ST Employee
December 21, 2023

Hello  @Riscy and welcome to the community,

 

Could you please attach the .ioc file for this project for further analysis of the problem.

 

Thanks,

Rim

Riscy
RiscyAuthor
Associate III
December 31, 2023

Attached IOC.

Wishing you happy new year 2024

Riscy