2024-07-18 05:00 AM
Hello,
I have STM32H7S78-DK board and its have ARM cortex M7 core. As per research I saw that AI model is work on the same M7 cortex but I didn't know how it will work? would you please let us know STM32H7S78 supports AI model implements or not and if yes then can anyone provide steps to how we can implements on the board.
Thanks.
2024-09-04 02:53 AM
Hello,
Thank you for the reply.
while configuring PSRAM from X-CUBE-AI directly, i need to enable XSPI1 interface, but while running the code i'm getting error "HAL_TIMEOUT" in function "HAL_XSPI_Init".
attaching the SS of XSPI1 config.
Please guide us on the same.
Thanks and regards,
Ishan
2024-09-04 04:27 AM - edited 2024-09-04 04:30 AM
You are right, you need to enable XSPI1 but X-CUBE-AI should set the parameters for you.
Could you please try these settings ?
You could also generate a project with ST Edge AI Developer Cloud, it sets all the parameters for you (enabling External RAM and External Flash)
Best regards,
Yanis
EDIT: it looks like you are settings parameters in Application context and not Boot. STM32H7S78-DK is quite low on internal flash, thus, in X-CUBE-AI, we generate a project which "run in place" (see in STM32H7S78-DK the template XIP). This allows you to run directly in External Flash.
2024-09-05 06:10 AM
Hello,
Thank you for the reply.
I have properly configured and download a project, with configured AI_model and external RAM, from ST Edge AI Developer Cloud.
I took this project as reference and tried same configuration in my project. Still getting three issues, not able to make same configuration as reference project.
1) XSPI1/XSPI2 >> MMT >> Generic >> Device type (Not defined)
Note: If i remove EXTMEM_MANAGER and EXTMEM_LOADER, it's getting (RAM/FLASH), but once i configured EXTMEM_MANAGER and EXTMEM_LOADER, Generic option turns into pink color. and getting below error.
- Main Config: These peripherals still have some not configured or wrong parameter values: [XSPI1, XSPI2]
2) In X-CUBE-AI, when i configure External Ram and External Flash, Memory option has only one option "custom". not getting options like, External SRAM or External NOR Flash.
3) How can i add platform Settings in X-CUBE-AL configuration ?
Please guide me on the same, how can i configure it properly.
Thanks and regards,
Ishan.
2024-09-06 12:20 AM
Hello,
I will give it a try locally. In order to test with the same configuration, could you please confirm your STM32CubeMX version ?
Yanis
2024-09-06 02:11 AM
Sure,
Using STM32CubeMX version : v6.11.0
Thanks
Ishan
2024-09-06 04:52 AM
Hello,
Here you will find a template using a model from ST Edge AI Model Zoo.
You can then open STM32CubeMX and replace the model.
It should compile on your side without warning and should output in COM port:
Best regards,
Yanis
2024-09-15 09:19 PM - edited 2024-09-15 09:20 PM
Hello Hamitiya,
Thank you for the support.
Above given project STM32H7S78-DK.7z compiled without any error. To move forward,
I have take reference from "workspace/STM32Cube_FW_H7RS_V1.0.0/Projects/STM32H7S78-DK/Examples/DCMIPP/DCMIPP_ContinuousMode" to add camera and display, into your above given project.
But some how doesn't getting anything on display, display back light is working. As referenced example, trying to display camera stream. When i check in debugging mode, CAMERA_FRAME_BUFFER is getting updated, then why it's not displaying ?
Is there any configuration for memory for CAMERA_FRAME_BUFFER ? If yes then what changes are required ? there are so many .ld files are there...
Please guide on the same,
Attaching the project with camera and display added.
Thanks and Regards,
Ishan
2024-09-16 01:58 AM
Couldn't understand what you said, can you please elaborate?
Thanks,
Ishan