cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with cup detect GUI for P-NUCLEO-53L8A1 evaluation kit.

plaitenberger
Associate II

Good morning.

I am trying to evaluate a P-NUCLEO-53L8A1 evaluation kit. I downloaded the software example from your website and unzipped it. I then attached the eval board to a USB port on my laptop (running Win 11). It enumerates as a STLink VCP.

 

plaitenberger_3-1758181535689.png

 

I then added the cup detect binary file to the evaluation board as described in the manual. The file copies into the folder specified in the user manual (also LD1 on the eval board blinks). When the copy process is complete, the folder then momentarily disappears and the re-appears with the file removed.

When I then run the Cup Detect executable I get the following error

plaitenberger_2-1758181505921.png

Could you please advise how I can resolve this issue?

I also tried running the GUI on two other laptops (one using WIN11, the other WIN10). On both laptops the GUI does not launch.

Thank you very much.

1 ACCEPTED SOLUTION

Accepted Solutions
John_Kvam
Senior

Sorry if this takes a couple of posts to figure this out. 

I started with a brand-new PC. A Lenovo, but I doubt that matters. And after my retirement, I needed one anyway.

And I tried to download the GUI - STSW-IMG041 - always the best place to start. 

I had issues - with McAfee - it simply would not believe I wanted to download a program and run it. So, I removed McAfee. I like to think I know enough to only download known software. 

Upshot is - that worked. 

I know it's not the final thing you want, but it proves the serial port and the D: drive connection. So, the USB is good. 

And also note the GUI installs the STLink software which is the Serial port over USB. And that might be what you are missing. (Although you said you saw it.)

I then downloaded the cup detect STSW-IMG051). One has to be careful to extract the zip into a different directory as Windows tries to actually run stuff out of the .zip file. This is another place to fail.

I copied the .bin file from the FW directory into the NOD_F401RE (D: ) drive, and then executed the CupDetectEVK.

Here I have to admit to having an issue. I did NOT stop the GUI, and the sensor can only have one master. 

But once I stopped the GUI, I restarted the CupDetectEVK and it worked just fine. 

One actually hates the 'it works for me', so I have another idea.

Download 'tera term' or any other serial emulation app.

Set it to:

John_Kvam_0-1758232599978.png

And use an 'auto' newline as in:

John_Kvam_1-1758232676722.png

hitting the black button on your Nucleo board will get it to reboot and you should see:

John_Kvam_2-1758232760834.png

Do you see that?

Next type 'help' - this will give you the list of commands:

(There is no echo, you will need the local-echo feature or just live without it.)

John_Kvam_3-1758232841752.png

The enable command starts it running and you get:

John_Kvam_4-1758232947119.png

If this all works, then you have a PC problem.

Remember to kill Tera Term before you run the app. 

Good luck, 

- john

 

 

If this or any post solves your issue, please mark them as "Accept as Solution". It really helps the next guy.
And if you notice anything wrong do not hesitate to "Report Inappropriate Content".
I am a recently retired ST Employee. My former username was John E KVAM.

View solution in original post

3 REPLIES 3
John_Kvam
Senior

Sorry if this takes a couple of posts to figure this out. 

I started with a brand-new PC. A Lenovo, but I doubt that matters. And after my retirement, I needed one anyway.

And I tried to download the GUI - STSW-IMG041 - always the best place to start. 

I had issues - with McAfee - it simply would not believe I wanted to download a program and run it. So, I removed McAfee. I like to think I know enough to only download known software. 

Upshot is - that worked. 

I know it's not the final thing you want, but it proves the serial port and the D: drive connection. So, the USB is good. 

And also note the GUI installs the STLink software which is the Serial port over USB. And that might be what you are missing. (Although you said you saw it.)

I then downloaded the cup detect STSW-IMG051). One has to be careful to extract the zip into a different directory as Windows tries to actually run stuff out of the .zip file. This is another place to fail.

I copied the .bin file from the FW directory into the NOD_F401RE (D: ) drive, and then executed the CupDetectEVK.

Here I have to admit to having an issue. I did NOT stop the GUI, and the sensor can only have one master. 

But once I stopped the GUI, I restarted the CupDetectEVK and it worked just fine. 

One actually hates the 'it works for me', so I have another idea.

Download 'tera term' or any other serial emulation app.

Set it to:

John_Kvam_0-1758232599978.png

And use an 'auto' newline as in:

John_Kvam_1-1758232676722.png

hitting the black button on your Nucleo board will get it to reboot and you should see:

John_Kvam_2-1758232760834.png

Do you see that?

Next type 'help' - this will give you the list of commands:

(There is no echo, you will need the local-echo feature or just live without it.)

John_Kvam_3-1758232841752.png

The enable command starts it running and you get:

John_Kvam_4-1758232947119.png

If this all works, then you have a PC problem.

Remember to kill Tera Term before you run the app. 

Good luck, 

- john

 

 

If this or any post solves your issue, please mark them as "Accept as Solution". It really helps the next guy.
And if you notice anything wrong do not hesitate to "Report Inappropriate Content".
I am a recently retired ST Employee. My former username was John E KVAM.
plaitenberger
Associate II

Thank you very much, John!

That's very helpful. I managed to get the system to work. Much appreciated.

All the best

Peter

Hi John,

I hope you are well.

I was wondering whether I could ask you another question to the GUI for the cup and liquid detection software. 

I seem to be able to detect the cup ok. Also the cup height and diameter measurements are ok. However, I struggle with the liquid level detection, using water or coffee (two liquids I got readily available) in a coffee mug. The issues I see are:

- The measured liquid level is often too low in comparison to the actual fill level.

- Often the measured fill level increases initially but then decreases even though the actual fill level increases monotonically. 

- Often, when the liquid level reaches the top of the cup, several of the pixels in the 8x8 ranging image are black without any value.

Would you know what I am doing wrong? Are there any parameters I can adjust?

Sorry to trouble you with this.

Thank you very much and all the best

Peter