2022-10-15 06:14 AM
1. HAL_NVIC_SystemReset() does not work. it always stays at __NOP(), no reset
for(;;) /* wait until reset */
{
__NOP();
}
2. Before I implemented ADC with DMA, the soft reset below works. But after implemented ADC with DMA. it does not work.
__set_PRIMASK(1);
SCB->AIRCR = ((uint32_t)0x05FA0000) | ((uint32_t)0x01);
Q1. Is there a delay to reset after implemented ADC with DMA?
Q2. If not reset, what is the problem to cause no reset.
Jiannong
2022-10-15 06:31 AM
Make sure the NRST is NOT driven high by some other push-pull circuit in the design.
Watch what's happening with the VDDA/VSSA supply
2022-10-15 11:39 PM
Some microcontroller models do not implement the SystemReset - check in the Ref Man. On these microcontrollers you may trigger the reset using watchdog timer.
There might be a problem in your code with a constantly-pending interrupt (interrupt flag not reset in an ISR). This suspends the execution of any thread or lower-priority interrupt code.
2022-10-16 01:01 AM
> Some microcontroller models do not implement the SystemReset - check in the Ref Man.
Can you give an example, please?
JW
2022-10-16 02:07 AM
NXP LPC17xx.
2022-10-16 03:25 AM
OK, thanks.
JW