cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5A5: LinkedList is not triggering callback from USART1

Riscy
Senior

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?

 

 

3 REPLIES 3
Riscy
Senior

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

Rim LANDOLSI
ST Employee

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

Attached IOC.

Wishing you happy new year 2024

Riscy