Skip to main content
Visitor II
April 1, 2024
Question

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

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

This topic has been closed for replies.

1 reply

ST Technical Moderator
April 1, 2024

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).

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks