cancel
Showing results for 
Search instead for 
Did you mean: 

STM Model Zoo

rt_ecyhg1
Associate II

Hi, I am trying to build the 'Getting Started with Image Classification' project from STM Model Zoo on STMCube IDE. However, whenever I try to build the project I keep getting this error:  "fatal error: ../Components/adv7533/adv7533.h: No such file or directory"

 

There does not seem to be a directory for adv7533 anywhere in the project. Any idea where I can obtain the required files to build the project?

1 ACCEPTED SOLUTION

Accepted Solutions
Julian E.
ST Employee

Hello @rt_ecyhg1 ,

I could not reproduce your issue.

 

We will try something, download the .zip file attached which contains the cm7.elf.

 

Open STM32CubeProgrammer:

  1. connect your board
  2. load the elf file
  3. Click download it. Wait until its finished
  4. Then disconnect and then unplug and plug the board.

JulianE_0-1731508138652.png

 Does it work? If not there is an hardware issue.

 

If it works, something is wrong with what you did, so here is the exact process:

 

First, make sure you have this exact hardware:

Then use a micro usb to usb A cable (in other context, I've seen issue with usb c cables). Make sure your cable is data.

 

Plug and unplug your camera (maybe it is not well pluged).

 

Then with model zoo

Once everything done:

 

Do you still get your Flag error ?

Do you still get the strange LCD display?

Do you have another evaluation board and camera?

 

If it still does not work, we will need the help of dev from the model zoo and they are not so much available at the moment, so you may have to wait until mid december...

 

Have a good day

Julian

 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

11 REPLIES 11
Julian E.
ST Employee

Hello @rt_ecyhg1 ,

Which tutorial are you following?

Have you tried this one: stm32ai-modelzoo/image_classification/deployment at main · STMicroelectronics/stm32ai-modelzoo · GitHub

Do you get an error as well?

 

Have a good day,

Julian


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @Julian E. , when I try to deploy it according to the deployment method used here stm32ai-modelzoo/image_classification/deployment at main · STMicroelectronics/stm32ai-modelzoo · GitHub

I keep getting static on the screen of the LCD as shown in this image. I am using the user_config.yaml to set the parameters.

Hello @rt_ecyhg1 ,

I am checking with the development team. I will keep you updated.

 

Julian

 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @Julian E., not sure if this will help but I get this return code error when I try the aforementioned method of deployment

rt_ecyhg1_1-1730877466576.png

 

 

rt_ecyhg1
Associate II

Hi @Julian E. ,

I've tried downloading a new version of the stm32 model zoo and trying the deployment again both with the 'deployment.py' file and through STMCubeIDE. I am not getting the previous LCD fatal error but rather these warnings. I have tried using STMCube version 1.13, 1.10, and 1.16 but to no avail.

C:/Users/harth/Downloads/stm32aimodelzoo/stm32ai_application_code/image_classification/Application/STM32H747I-DISCO/Src/CM7/main.c:236:3: warning: 'memset' forming offset [153600, 153631] is out of the bounds [0, 153600] of object 'CapturedImage_Buffer' with type 'uint8_t[153600]' {aka 'unsigned char[153600]'} [-Warray-bounds]  

c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: warning: section `.bss' type changed to PROGBITS

rt_ecyhg1_0-1731294938135.png

 

Hello @rt_ecyhg1 ,

 

can you share me the user_config.yaml that you are using please? 
I will try to reproduce your issues.

 

You are using the STM32H747I DISCO?

 

Have a good day,

Julian


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @Julian E. ,

This is the user_config.yaml file I am using. And yes I am using the STM32H747I DISCO board.

 

Thank you.

 

Julian E.
ST Employee

Hello @rt_ecyhg1 ,

I could not reproduce your issue.

 

We will try something, download the .zip file attached which contains the cm7.elf.

 

Open STM32CubeProgrammer:

  1. connect your board
  2. load the elf file
  3. Click download it. Wait until its finished
  4. Then disconnect and then unplug and plug the board.

JulianE_0-1731508138652.png

 Does it work? If not there is an hardware issue.

 

If it works, something is wrong with what you did, so here is the exact process:

 

First, make sure you have this exact hardware:

Then use a micro usb to usb A cable (in other context, I've seen issue with usb c cables). Make sure your cable is data.

 

Plug and unplug your camera (maybe it is not well pluged).

 

Then with model zoo

Once everything done:

 

Do you still get your Flag error ?

Do you still get the strange LCD display?

Do you have another evaluation board and camera?

 

If it still does not work, we will need the help of dev from the model zoo and they are not so much available at the moment, so you may have to wait until mid december...

 

Have a good day

Julian

 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @Julian E. ,

I am happy to inform you that the cm7 file you provided works for me. Following the steps you provided works as well. I had an extra board and camera, I think my camera may not have been working previously hence the error I was obtaining and the strange LCD display. I'm not exactly sure how the camera broke, but I got a spare one now. Thank you very much for your support.