Not there yet... the small demo program works but my large program not, same issue.
I learned that the UIF is set after initialisation so if the interrupt is enabled the interrupt routine is called immediately but my interrupt routine is never called, instead the program hangs.
If i clear the UIF ...
Search found 11 matches
- Sun Jan 15, 2023 11:19 pm
- Forum: General discussion
- Topic: HAL_TIM_Base_Start_IT hanging
- Replies: 2
- Views: 3507
- Sun Jan 15, 2023 9:50 pm
- Forum: General discussion
- Topic: HAL_TIM_Base_Start_IT hanging
- Replies: 2
- Views: 3507
Re: HAL_TIM_Base_Start_IT hanging
After moving these to the bottom of the init routine and disabling the hardwaretimer function, i got it working.
/* TIM4 interrupt Init */
HAL_NVIC_SetPriority(TIM4_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(TIM4_IRQn);
/* TIM4 interrupt Init */
HAL_NVIC_SetPriority(TIM4_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(TIM4_IRQn);
- Sat Jan 14, 2023 11:18 pm
- Forum: General discussion
- Topic: HAL_TIM_Base_Start_IT hanging
- Replies: 2
- Views: 3507
HAL_TIM_Base_Start_IT hanging
I'm having issues with timer interrupts.
None of the handlers seem to get called and the program "hangs" after HAL_TIM_Base_Start_IT is called.
Arduino IDE 1.8.19, stm32h743zi2 nucleo board, stm32 libraries 2.4.0.
To eliminate other issues i made a very small program that has a timer with around 1 ...
None of the handlers seem to get called and the program "hangs" after HAL_TIM_Base_Start_IT is called.
Arduino IDE 1.8.19, stm32h743zi2 nucleo board, stm32 libraries 2.4.0.
To eliminate other issues i made a very small program that has a timer with around 1 ...
- Mon Dec 20, 2021 8:44 pm
- Forum: General discussion
- Topic: anybody got the ADC on stm32H743 working with DMA?
- Replies: 10
- Views: 11719
Re: anybody got the ADC on stm32H743 working with DMA?
Got it working, as often multiple issues are involved. The CPU was hanging during dma transfers, incompatibility issues between mxcube generated code and stm32duino, indeed memory access issues between dma and default variable memory. All sorted out now.
- Fri Dec 10, 2021 6:58 pm
- Forum: General discussion
- Topic: anybody got the ADC on stm32H743 working with DMA?
- Replies: 10
- Views: 11719
Re: anybody got the ADC on stm32H743 working with DMA?
(++) ADC conversion with transfer by DMA:
(+++) Activate the ADC peripheral and start conversions
using function HAL_ADC_Start_DMA()
(+++) Wait for ADC conversion completion by call of function
HAL_ADC_ConvCpltCallback() or HAL_ADC_ConvHalfCpltCallback()
(these functions must be implemented in ...
(+++) Activate the ADC peripheral and start conversions
using function HAL_ADC_Start_DMA()
(+++) Wait for ADC conversion completion by call of function
HAL_ADC_ConvCpltCallback() or HAL_ADC_ConvHalfCpltCallback()
(these functions must be implemented in ...
- Fri Dec 10, 2021 6:57 pm
- Forum: General discussion
- Topic: anybody got the ADC on stm32H743 working with DMA?
- Replies: 10
- Views: 11719
Re: anybody got the ADC on stm32H743 working with DMA?
I believe the default callbacks dont need to be registered, have not seen this in any demo.
Anyway there is only 1 adc value collected so these callbacks are never called.
Anyway there is only 1 adc value collected so these callbacks are never called.
- Fri Dec 10, 2021 12:36 pm
- Forum: General discussion
- Topic: anybody got the ADC on stm32H743 working with DMA?
- Replies: 10
- Views: 11719
Re: anybody got the ADC on stm32H743 working with DMA?
Thanks, tried it but same result. If i put some data into the buffer and read it back later in the main loop, the first value is changed and seems to reflect the analog input. Looks like only 1 value is transferred but none of the callbacks are triggered.
- Fri Dec 10, 2021 11:10 am
- Forum: General discussion
- Topic: anybody got the ADC on stm32H743 working with DMA?
- Replies: 10
- Views: 11719
Re: anybody got the ADC on stm32H743 working with DMA?
Maybe a little bit of code helps, i finally got the buffer setup in D2 ram, i can read and write it so thats done. But still nothing going on regarding callbacks and interrupts, if i start the following program i get a start message and thats it, it never goes into the callbacks, any clue?
ADC ...
ADC ...
- Thu Dec 09, 2021 1:24 pm
- Forum: General discussion
- Topic: anybody got the ADC on stm32H743 working with DMA?
- Replies: 10
- Views: 11719
anybody got the ADC on stm32H743 working with DMA?
I'm a bit stuck with my project, i know variables are created in ITCMRAM space wich is not accesable by DMA and should be setup in D2 RAM space.
Several solutions offered like assigning a variable to a section in the loader file do not work, the variable is always assigned to 0x00000000.
Either that ...
Several solutions offered like assigning a variable to a section in the loader file do not work, the variable is always assigned to 0x00000000.
Either that ...
- Tue Nov 02, 2021 7:36 pm
- Forum: General discussion
- Topic: undefined reference to `HAL_SRAM_Init'
- Replies: 2
- Views: 3060
Re: undefined reference to `HAL_SRAM_Init'
ok, figured it out
stm32yyxx_hal_conf.h
add:
#define HAL_SRAM_MODULE_ENABLED
then it compiles without errors, sure there must be a way to get around changing the basic source??
stm32yyxx_hal_conf.h
add:
#define HAL_SRAM_MODULE_ENABLED
then it compiles without errors, sure there must be a way to get around changing the basic source??