cancel
Showing results for 
Search instead for 
Did you mean: 

Error: failed to download Segment[0], Error: failed to download the File

sanjaysunil
Associate

Hi,

I'm trying to create a C# wrapper for STM32CubeProgrammer_API.dll.

In version 2.10, the downloadFile function worked perfectly within my C# wrapper. However, upon updating to version 2.15 of the STM32CubeProgrammer_API.dll, the function no longer operates as expected.

This is the output I receive when I try to use the function

Memory Programming ...
Opening and parsing file: data.hex
File : data.hex
Size : 3.76 KB
Address : 0x08000000
File segment @0x08000000 is not 255-bytes aligned. It will be aligned to @0x07FFFFF8
Download in Progress:
Size : 4080 Bytes
Address : 0x07FFFFF8
Buffer program...
w ap 0 @0x07FFFFF8 : 0x00000FF0 bytes, Data 0xFFFFFFFF...
Error: failed to download Segment[0]
Error: failed to download the File

Thanks

1 REPLY 1
Imen.D
ST Employee

Hello @sanjaysunil and welcome to the Community :)

Could you please share the device name and revision?

Is this a random or a systematic issue?

Have you encountered the same problem with another device?

Is this issue occurred with STM32CubeProgrammer in standalone or when STM32CubeProgrammer is called from STM32CubeIDE.

I advise you first to test with latest release of CubeProgrammer (v2.16.0) and CubeIDE (v1.15.0).

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen