2025-09-18 12:49 AM - last edited on 2025-09-18 1:17 AM by Peter BENSCH
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.
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
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.
Solved! Go to Solution.
2025-09-18 3:05 PM
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:
And use an 'auto' newline as in:
hitting the black button on your Nucleo board will get it to reboot and you should see:
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.)
The enable command starts it running and you get:
If this all works, then you have a PC problem.
Remember to kill Tera Term before you run the app.
Good luck,
- john
2025-09-18 3:05 PM
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:
And use an 'auto' newline as in:
hitting the black button on your Nucleo board will get it to reboot and you should see:
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.)
The enable command starts it running and you get:
If this all works, then you have a PC problem.
Remember to kill Tera Term before you run the app.
Good luck,
- john
2025-09-19 1:09 AM
Thank you very much, John!
That's very helpful. I managed to get the system to work. Much appreciated.
All the best
Peter
2025-09-30 9:55 AM
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