Hi,
I am trying to stop the DSP on the DM814x, as part of implementing a low power mode. I find that the firmware_loader stop operation fails - if both video or audio have been played simultaneously. I was able to reproduce this issue with normal EZSDK examples, using the ti-ezsdk_dm814x-evm_5_05_02_00, without modification.
Procedure:
1. Start EVM as you would normally.
2. Wait for TI's Qt matrix app to start.
3. Load DSP code using the following lines:
# cd /usr/share/ti/rpe
# firmware_loader 0 ./dm81xx_c6xdsp_debug.xe674 start
4. Start video decode+display as background process:
# /usr/bin/runDecodeDisplayHDMI &
5. Start audio decode while video is still being decoded:
# ./aacdec_a8host_debug.xv5T -i aacdectest.cfg
6. Wait for video display to finish.
7. Attempt to stop DSP firmware:
# firmware_loader 0 /usr/share/ti/rpe/dm81xx_c6xdsp_debug.xe674 stop
FIRMWARE: I2cInit will be done by M3
FIRMWARE: Memory map bin file not passed
Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1>]
===Mandatory arguments===
<Processor Id> 0: DSP, 1: Video-M3, 2: Vpss-M3
<Location of Firmware> firmware binary file
<start|stop> to start/stop the firmware
===Optional arguments===
-mmap input memory map bin file name
-i2c 0: i2c init not done by M3, 1(default): i2c init done by M3
FIRMWARE: isI2cInitRequiredOnM3: 1
FIRMWARE: Default memory configuration is used
Firmware Loader debugging not configured
Default FL_DEBUG: warning
AllowAssertion at Line no: 1799 in /swcoe/sdk/cm/netra/arago-tmp/work/dm814x-evm-none-linux-gnueabi/ti-syslink-2_20_02_20-r1j/syslink_2_20_02_20/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/MessageQ.c: (MessageQ_module->heaps [heapId] != NULL) : failed
ed FL_DEBUG levels: error, warning, info, debug, log
MemCfg: DCMM (Dynamically Configurable Memory Map) Version : 2.1.2.1
Hopefully, you can see the same error. Do I need to do something specially to successfully stop the DSP?
FYI, I initially submitted this issue to the DM814x forum, but they could not solve it due to "lack of resources".
Thanks,
Dan -