Add led blink in evkmimxrt1060_tensorflow_lite_kws example

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Add led blink in evkmimxrt1060_tensorflow_lite_kws example

ソリューションへジャンプ
702件の閲覧回数
nahan_trogn
Contributor III

Hi,

I add a led indicator into evkmimxrt1060_tensorflow_lite_kws example, the led will light up when people say "right", or "left".

I add some config in BOARD_InitPins():

/* GPIO configuration of USER_LED on GPIO_AD_B0_09 (pin F14) */
gpio_pin_config_t USER_LED_config = {
.direction = kGPIO_DigitalOutput,
.outputLogic = 0U,
.interruptMode = kGPIO_NoIntmode
};
/* Initialize GPIO functionality on GPIO_AD_B0_09 (pin F14) */
GPIO_PinInit(GPIO1, 9U, &USER_LED_config);
GPIO_PinWrite(GPIO1, 9U, 0U);

 

When I write 0U to the led PIN, the led don't light up.

But if I run the blinky example, and then run kws example with my modified code, the led light up as I expect.

Please explain to me what is happening, thanks in advanced.

ラベル(1)
0 件の賞賛
返信
1 解決策
691件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

Hello, 

This behavior that you are facing might be because you are missing some configurations in the evkmimxrt1060_tensorflow_lite_kws example. This is why when you run first the other example, the project starts working properly. I guess that you are missing the configurations in the IOMUX registers in the TensorFlow project. 

victorjimenez_0-1620323310549.png

Regards,
Victor 

元の投稿で解決策を見る

1 返信
692件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

Hello, 

This behavior that you are facing might be because you are missing some configurations in the evkmimxrt1060_tensorflow_lite_kws example. This is why when you run first the other example, the project starts working properly. I guess that you are missing the configurations in the IOMUX registers in the TensorFlow project. 

victorjimenez_0-1620323310549.png

Regards,
Victor