cancel
Showing results for 
Search instead for 
Did you mean: 

[AI:network] Error flashing firmware after building successfully

BLin.1818
Associate

I was using NUCLEO-L476RG.

When I tried to validate on target, I can build successfully but the message below showed up.

How can I do?

0690X00000Bvns0QAB.jpg

0690X00000BvnvsQAB.jpg

0690X00000BvnzzQAB.jpg

===========================update=========================

I found that the rom size seemed to be too large.

Maybe it is the main reason ?

(But CubeMX didn't raise any warning)

0690X00000Bvo70QAB.jpg

​===========================update=========================

However, the rom percentage cannot decrease,

no matter how I reduce the complexity of my density layer.

What does the percentage mean ?

0690X00000BvoOLQAZ.jpg

1 REPLY 1
jean-michel.d
ST Employee

​Hi

Normally X-CUBE-AI checks (with a warning) before generation that the params (weights params) can fit in selected device. This seems correct in our case (.text 767832 < 1MB). Can you try to generate a stand-alone validation project? Don't use the "automatic" vaildation step.

Concerning the signification of the percentage? I suppose that you have used a floating point model and you have applied a compression faction (x4 or x8). In this case, the percentage indicates the gain of the generated param size in comparaison of the whole model w/o compression. According the log, only the weights of the dense_25 layer have been compressed. Instead to have 153,616 x 4 bytes for this layer, after compression you have 76,928 bytes (compression x8).

br,

Jean-Michel