FP-AI Sensing in STEVAL-STLKT01V1 Enable UART printf is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-15 10:09 AM
Hello,
I am trying using FP-AI Sensing on STEVAL-STLKT01V1 sensortile board. I enabled UART as per the instruction by enabling SENSING1_USE_PRINTF in SENSING1_config.h and SENSING1_USE_PWR_MGNT to 0. I also did 10ms delay for initialization process. But I donot recieve anything in the console after everthing followed as per the instruction. Should there be any changes to be made?
- Labels:
-
STM32L4 series
-
UART-USART
-
X-CUBE-AI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-20 2:49 AM
Hello,
I am facing the same issue. I am using a STEVAL-STLKT01V1 SensorTile Kit. Please find below steps for reference.
- I am using "en.fp-ai-sensing1.zip" SDK and "STM32L476RG-SensorTile" firmware.
- Set "SENSING1_USE_PRINTF" as '1' and "SENSING1_USE_PWR_MGNT" set as '0' in SENSING1_config.h file.
- Compiled source code in STMCube IDE (Tried on both v1.0.2 and v1.3.0) and generated a SENSING1.bin file.
- Flashed boot-loader and application firmware with CleanSENSING1.bat utility.
- I found STMicroelectronics Virtual COM Port in TeraTerm. I set 115200 baud-rate, 8N1 mode, and 1 msec transmission delay.
- But I could not found any messages in serial port.
Please let me know if I have missed anything.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-20 3:31 AM
Hello Noza,
I followed same steps, I am also facing the same issue. It is not working for me as well, no messages from serial port.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-20 5:25 AM
Hello Noza,
I dont have the sensor with me right now. Did you try disabling the firewall?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-20 5:36 AM
Hi CPutt,
I don't have device in my hand. But I can access via remotely. Will you please help me how can I disable firewall and how it can be helpful to print log on serial console?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-20 6:19 AM
Hi Noza,
I am not sure if it will be helpful. To disable firewall goto control panel->System and Securtiy->WIndows Defender Firewall and click windows defender firewall on or off and disable windows defender firewall if you have windows 10.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-20 10:03 AM
Hi CPutt,
I have found strange thing. The "FP-SNS-ALLMEMS1" SDK successfully compiled and I am able to see logs on UART communication port. It means, hardware successfully working but there is an issue with "FP-AI-SENSING1" SDK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-21 2:55 AM
Hi Noza,
Yes, "FP-SNS-ALLMEMS1" works for me as well, couldn't find the issue with "FP-AI-SENSING1" SDK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-21 11:14 AM
Hi CPutt,
Now, It is working for me. We need to virtually link "console.c" file in our project workbench and make below changes in console.c.
int __io_putchar(int ch) {
while (CDC_Itf_Transmit((uint8_t *)&ch, 1) != USBD_OK);
/* Transmit zero-length packet to complete transfer */
while (CDC_Itf_Transmit((uint8_t *)&ch, 0) != USBD_OK);
return ch;
}
int __io_getchar(void) {
return 1;
}
Please let me know if you still facing any issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-21 11:23 AM
Hi NoZa,
Thank you very much will try this and let you know.
