RT1170-EVK TFLM KWS CM7 SDK Example Not Working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT1170-EVK TFLM KWS CM7 SDK Example Not Working

Jump to solution
321 Views
daniel_fudge
Contributor III

I recently bought a MIMXRT1170-EVK, not the EVKB, and have been having a lot of little issues. The latest is the SDK example Keyword Spotting project.

As shown in the YouTube video below, it nearly always gives a 99% confidence but is nearly always wrong. I've literally never seen if label a word correctly.

Has anyone else experienced issues with this sample project?

https://youtu.be/HtMRdyJu_jA

0 Kudos
Reply
1 Solution
199 Views
Sam_Gao
NXP Employee
NXP Employee
Update for this issue when using RT1170 EVK board, the root cause is from microphone driver setting, 
please see the patch as below.
 
--- a/source/audio/eiq_speaker.c
+++ b/source/audio/eiq_speaker.c
@@ -142,7 +142,7 @@ static void init(void)
     SAI_GetClassicI2SConfig(&saiConfig, DEMO_AUDIO_BIT_WIDTH, kSAI_MonoRight, kSAI_Channel0Mask);
     saiConfig.syncMode = kSAI_ModeAsync;
     saiConfig.bitClock.bclkPolarity = kSAI_PolarityActiveLow;
-    saiConfig.masterSlave = kSAI_Master;
+    saiConfig.masterSlave = kSAI_Slave;
     SAI_TransferTxSetConfigEDMA(DEMO_SAI, &s_speakerHandle, &saiConfig);
 
#else
static wm8960_config_t wm8960Config = {
--- a/source/audio/eiq_micro.c
+++ b/source/audio/eiq_micro.c 
@@ -82,7 +82,7 @@ static wm8960_config_t wm8960Config = {
         .sampleRate   = kWM8960_AudioSampleRate16KHz,
         .bitWidth     = kWM8960_AudioBitWidth16bit,
     },
-     .master_slave = false,
+    .master_slave = true,
};
#endif
 
You will receive the logs when you speak specific keywords into the EVK board's microphone, there is known issue about the 99% wrong detected data, please ignore.
Sam_Gao_0-1723199579461.png

 

View solution in original post

2 Replies
200 Views
Sam_Gao
NXP Employee
NXP Employee
Update for this issue when using RT1170 EVK board, the root cause is from microphone driver setting, 
please see the patch as below.
 
--- a/source/audio/eiq_speaker.c
+++ b/source/audio/eiq_speaker.c
@@ -142,7 +142,7 @@ static void init(void)
     SAI_GetClassicI2SConfig(&saiConfig, DEMO_AUDIO_BIT_WIDTH, kSAI_MonoRight, kSAI_Channel0Mask);
     saiConfig.syncMode = kSAI_ModeAsync;
     saiConfig.bitClock.bclkPolarity = kSAI_PolarityActiveLow;
-    saiConfig.masterSlave = kSAI_Master;
+    saiConfig.masterSlave = kSAI_Slave;
     SAI_TransferTxSetConfigEDMA(DEMO_SAI, &s_speakerHandle, &saiConfig);
 
#else
static wm8960_config_t wm8960Config = {
--- a/source/audio/eiq_micro.c
+++ b/source/audio/eiq_micro.c 
@@ -82,7 +82,7 @@ static wm8960_config_t wm8960Config = {
         .sampleRate   = kWM8960_AudioSampleRate16KHz,
         .bitWidth     = kWM8960_AudioBitWidth16bit,
     },
-     .master_slave = false,
+    .master_slave = true,
};
#endif
 
You will receive the logs when you speak specific keywords into the EVK board's microphone, there is known issue about the 99% wrong detected data, please ignore.
Sam_Gao_0-1723199579461.png

 

280 Views
Sam_Gao
NXP Employee
NXP Employee

Hi @daniel_fudge 

Thanks for your questions, I doube checked with issue, evk board didn't support "evkmimxrt1170_tflm_kws_cm7" well. Would you please try EVKB board https://www.nxp.com/design/design-center/development-boards-and-designs/i-mx-evaluation-and-developm...

I am checking the root case based on EVK board.

 

B.R, Sam

0 Kudos
Reply