![]() |
Jetson Sensor Processing Engine (SPE) Developer Guider32.7.5 Release |
The AODMIC application demonstrates how to operate Always On (AON) DMIC from the SPE/AON processor. AODMIC is in the AON domain for both Jetson TX2 and Jetson AGX Xavier. The compilation of this demo app can be controlled by the ENABLE_AODMIC_APP
flag in the soc/*/target_specific.mk
file. The ENABLE_GPCDMA_FUNC
flag must also be enabled.
Stereo PDM mics should be connected to the AODMIC pins on the respective Jetson platform. An example PDM mic part is https://www.mouser.in/datasheet/2/389/mp34dt01-m-955068.pdf. Details of the AODMIC pins are mentioned in the platform specific sections further down.
The app runs continuously and captures data from AODMIC using GPCDMA. It periodically prints the R5 CPU tick count and the zero crossing count (on both capture channels). These counts can be used to determine whether the AODMIC is running at the expected rate. The app also computes and prints the capture volume over fixed periods (computed as the mean square of the samples). Should the computed volume exceed a predefined threshold, it triggers system wake.
The command below may be executed on the running target in order to trigger system suspend:
After the system is placed in the suspended state, making a loud sound near the AODMIC mics should wake it up.
WAKE_MASK[95:64] = 0x1ff200 TIER2[95:64] = 0xff200
AODMIC signals are available at the 40-pin header J21 with these pin mappings:
AODMIC signals are available at the 40-pin header J30 with these pin mappings:
tegra194-a02-bpmp-p2888-a04.dtb
) following these steps:$ dtc -I dtb -O dts <BPMP DT file> -o <temp_file.dts>
temp_file.dts
file (third argument = <sample_rate*64>): clocks { lateinit { dmic5 = <0x86 0x5b 1024000 0x80000>; }; };
$ dtc -I dts -O dtb <temp_file.dts> -o <BPMP DT file>
bpmp-fw-dtb
partition, or perform a full flash.