cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N6570-DK Image classification Flashing error

Jayasree1414
Associate

Iam getting this error continuously while flashing. I have taken custom dataset and trained. Training is done. Deployment is done but stm32cubeide is not generating bin. I have set the board to dev mode and connected the CN6.

 

"make -j6 all" terminated with exit code 2. Build might be incomplete.

14:02:56 Build Failed. 3 errors, 5 warnings. (took 29s.939ms)

Stm32cubeide:
Java was started but returned exit code=1
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/STM32CubeIDE/workspace_1.19.0
-Declipse.buildId=Version 1.19.0
-DproductMaturityGrade=mm
-Djdk.http.auth.tunneling.disabledSchemes=
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Xms256m
-Xmx1024m
-Djavax.net.ssl.trustStoreType=WINDOWS-ROOT
-Djava.class.path=C:\ST\STM32CubeIDE_1.19.0\STM32CubeIDE\\plugins/org.eclipse.equinox.launcher_1.6.900.v20240613-2009.jar
-os win32
-ws win32
-arch x86_64
-launcher C:\ST\STM32CubeIDE_1.19.0\STM32CubeIDE\stm32cubeide.exe
-name Stm32cubeide
--launcher.library C:\ST\STM32CubeIDE_1.19.0\STM32CubeIDE\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.1100.v20240722-2106\eclipse_11904.dll
-startup C:\ST\STM32CubeIDE_1.19.0\STM32CubeIDE\\plugins/org.eclipse.equinox.launcher_1.6.900.v20240613-2009.jar
--launcher.overrideVmargs
-application org.eclipse.cdt.managedbuilder.core.headlessbuild
-import D:\EMBEDDED\BOARDS\STM32\STM32_PROJECT\stm32ai-modelzoo-services\application_code\image_classification\STM32N6\Application\STM32N6570-DK\STM32CubeIDE
-data C:\Users\Admin\AppData\Local\Temp\tmpcrzy99ji
-cleanBuild STM32N6570-DK_GettingStarted_ImageClassification/Debug
-vm C:\ST\STM32CubeIDE_1.19.0\STM32CubeIDE\\plugins/com.st.stm32cube.ide.jre.win64_3.4.0.202409160955/jre/bin\server\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/STM32CubeIDE/workspace_1.19.0
-Declipse.buildId=Version 1.19.0
-DproductMaturityGrade=mm
-Djdk.http.auth.tunneling.disabledSchemes=
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Xms256m
-Xmx1024m
-Djavax.net.ssl.trustStoreType=WINDOWS-ROOT
-Djava.class.path=C:\ST\STM32CubeIDE_1.19.0\STM32CubeIDE\\plugins/org.eclipse.equinox.launcher_1.6.900.v20240613-2009.jar
flashing.. Debug STM32N6570-DK
[returned code = 1 - FAILED]
$ cwd: ../application_code/image_classification/STM32N6/Application/STM32N6570-DK/STM32CubeIDE
$ args: STM32_SigningTool_CLI -s -bin Debug/STM32N6570-DK_GettingStarted_ImageClassification.bin -nk -t ssbl -hv 2.3 -o Debug/STM32N6570-DK_GettingStarted_ImageClassification_signed.bin
QIODevice::read (QFile, "Debug\STM32N6570-DK_GettingStarted_ImageClassification.bin"): device not open
-------------------------------------------------------------------
STM32 Signing Tool v2.20.0
-------------------------------------------------------------------

Error: binary file does not exist: Debug/STM32N6570-DK_GettingStarted_ImageClassification.bin
Available commands:

--help -h -? : Show help
--version -v : Display this program version

--binary-image -bin : Input binary image file path
--input -in Syntax 1: -bin <File_Path>
Syntax 2: -in <File_Path>

--public-key -pubk : Public keys file paths
Syntax: -pubk <File_Path{1..8}>
Note for header v1: use just one key path
Note for header v2: use 8 keys paths
--private-key -prvk : Private key file path
Syntax: -prvk <File_Path>
--password -pwd : Password of the private key
Syntax: -pwd <Password>

--image-version -iv : Image version
Syntax: -iv <Version>
Note : 1 is the default version value
--load-address -la : Load address of image
Syntax: -la <Load_Address>
--entry-point -ep : Image entry point
Syntax: -ep <Entry_Point>
--option-flags -of : Option flags of image
Syntax: -of <Option_Flags>
--algorithm -a : 1. (P-256 NIST) 2. (Brainpool 256) 3. (P-384 NIST) 4. (Brainpool 384)
Syntax: -a <2>
Note : 1- P256NIST is the default algo
--type -t : Binary Type
Syntax: -t <type>
Possible values : ssbl fsbl teeh teed teex copro

--enc-dc -encdc : Encryption derivation constant for FSBL encryption [header v2]
Syntax: -encdc <Deriv_Val>
--enc-key -enck : OEM secret file for FSBL encryption [header v2]
Syntax: -enck <Key_Path>
--output -o : Output file path
Syntax: -o <Output_File_Path>
--silent -s : Silent mode, no prompt messages

--dump-header -dump : Parse and dump image header
Syntax: -dump <File_Path>
--na-payload -nap : Non authenticated input payload path [only for header v2.1]
Syntax: -nao <Payload_Path>
--header-version -hv : Signing header version, Possible values : 1 2 2.1 2.2 2.3
Syntax: -hv <header_value>
Default value: 1 for header v1 using 1 public key
Default value: 2 for header v2 using 8 public keys
--no-keys -nk : Adding empty header without key options.
Syntax: -nk
Additional PKCS#11 commands:

--module -m : Specify a PKCS#11 module/Library path to load (dll, so, dylib)
Syntax: -m <File_Path>
--key-index -ki : List of used keys indexes in hex format.
Use 1 index for Header v1 and 8 indexes for header v2
Syntax: -ki <value>
--slot-index -si : Specify the index of the slot to use (default 0)
Syntax: -si <value>
--slot-identifier -sid : Specify the identifier of the slot to use (Optional, in decimal or hex format)
Syntax: -sid <value>
--active-keyIndex -aki : Specify th actual active key index (default 0)
Syntax: -aki <value>
Board programming failed: "Error: binary file does not exist: Debug/STM32N6570-DK_GettingStarted_ImageClassification.bin"
[returned code = 1 - FAILED]
$ cwd: ../application_code/image_classification/STM32N6/Application/STM32N6570-DK/STM32CubeIDE
$ args: STM32_Programmer_CLI -c port=swd mode=HOTPLUG sn=004200193234511233353533 --extload C:\ST\STM32CubeIDE_1.19.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.200.202503041107\tools\bin\ExternalLoader/MX66UW1G45G_STM32N6570-DK.stldr -w Debug/STM32N6570-DK_GettingStarted_ImageClassification_signed.bin 0x70100000
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------

ST-LINK SN : 004200193234511233353533
ST-LINK FW : V3J16M9
Board : STM32N6570-DK
Voltage : 3.27V
SWD freq : 8000 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x486
Revision ID : Rev B
Device name : ST32N657
Device type : MCU
Device CPU : Cortex-M55
BL Version : --

Error: File does not exist: STM32N6570-DK_GettingStarted_ImageClassification_signed.bin
Board programming failed: "Error: File does not exist: STM32N6570-DK_GettingStarted_ImageClassification_signed.bin"
Board programming failed: "Error: File does not exist: STM32N6570-DK_GettingStarted_ImageClassification_signed.bin"
Board programming failed: "Error: File does not exist: STM32N6570-DK_GettingStarted_ImageClassification_signed.bin"
[INFO] : Deployment complete.
[INFO] : Please on STM32N6570-DK toggle the boot switches to the left and power cycle the board.

1 REPLY 1
Julian E.
ST Employee

Hello @Jayasree1414,

 

Sorry for the late answer. The post just got moved to this topic.

 

This error indicates that something went wrong when modifying the CubeIDE project and it did not compile, which cause the bin file to not exist. Having a model too big could be a cause.

Error: File does not exist: STM32N6570-DK_GettingStarted_ImageClassification_signed.bin
Board programming failed: "Error: File does not exist: STM32N6570-DK_GettingStarted_ImageClassification_signed.bin"
Board programming failed: "Error: File does not exist: STM32N6570-DK_GettingStarted_ImageClassification_signed.bin"
Board programming failed: "Error: File does not exist: STM32N6570-DK_GettingStarted_ImageClassification_signed.bin"

Can you go to the model zoo folder and open the cubeIDE project in stm32ai-modelzoo-services\application_code\image_classification\STM32N6\Application\STM32N6570-DK.

Try to compile it and look at the error.

 

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.