I am trying to make HWA work in standalone mode (without EDMA or any other input / output trigger).
All of the configuration seems to go well, but inspecting the debug register shows the HWA stuck in "RUN" mode (0x3) on thread 0:
- current paramSet index is correct (=1)
- numLoops is correct (=1)
- software trigger / immediate behave correctly (when no trigger is applied in software trigger mode, the state machine stays in "WAIT TRIGGER" mode 0x2)
- trigStatus is {0,1}
The start-up sequence seems correct and conforming to specification (using the HWA V0 driver library provided with the MCU+ SDK). In particular, the proper calls to HWA_Init, HWA_reset, enable, and configuration calls have been done. The paramSet configuration is as follows:
- accelMode = FFT, triggerMode = SOFTWARE
- src and dest complex 16-bit signed, scale = 2
- fftSize = 4, butterflyScaling = 0
- srcAcnt = 255, srcAIdx = sizeof(uint32_t), srcBcnt = 0
- dstAcnt = 255, dstAidx = sizeof(uinit32_t)
- All other parameters are 0
The memory banks do not get modified in any way (output bank is only zeroes, input bank is zeroes except for input values).
What could cause the HWA to be stuck in RUN mode forever, apparently doing nothing ?