¿ªÔÆÌåÓý

Firmware Update


 

Hi
I have attempted to do a firmware update on my Tinysa Ultra and failed.

Using STM32Cube programmer I put it into DFU mode and connected the programmer.

Loaded file tinySA4_v1.4-170-g8e96644.hex and went to program.

The progress contents are -

09:42:47 : STM32CubeProgrammer API v2.16.0 | Windows-64Bits?
09:42:51 : UR connection mode is defined with the HWrst reset mode
09:42:52 : USB speed ? : Full Speed (12MBit/s)
09:42:52 : Manuf. ID ? : STMicroelectronics
09:42:52 : Product ID ?: STM32 ?BOOTLOADER
09:42:52 : SN ? ? ? ? ?: 205937542031
09:42:52 : DFU protocol: 1.1
09:42:52 : Board ? ? ? : --
09:42:52 : Device ID ? : 0x0422
09:42:52 : UPLOADING OPTION BYTES DATA ...
09:42:52 : ? Bank ? ? ? ? ?: 0x00
09:42:52 : ? Address ? ? ? : 0x1ffff800
09:42:52 : ? Size ? ? ? ? ?: 16 Bytes
09:42:52 : UPLOADING ...
09:42:52 : ? Size ? ? ? ? ?: 1024 Bytes
09:42:52 : ? Address ? ? ? : 0x8000000
09:42:52 : Read progress:
09:42:52 : Data read successfully
09:42:52 : Time elapsed during the read operation is: 00:00:00.003
09:43:00 : Read File: e:\Users\Andy\Downloads\tinySA4_v1.4-170-g8e96644.hex
09:43:00 : Number of segments: 1
09:43:00 : segment[0]: address= 0x8000000, size= 0x2C4A0
09:43:07 : Memory Programming ...
09:43:07 : Opening and parsing file: tinySA4_v1.4-170-g8e96644.hex
09:43:07 : ? File ? ? ? ? ?: tinySA4_v1.4-170-g8e96644.hex
09:43:07 : ? Size ? ? ? ? ?: 177.16 KB?
09:43:07 : ? Address ? ? ? : 0x08000000?
09:43:07 : Erasing memory corresponding to segment 0:
09:43:07 : Erasing internal memory sectors [0 88]
09:43:07 : sector 0000 does not exist
09:43:07 : sector 0001 does not exist
09:43:07 : sector 0002 does not exist
09:43:07 : sector 0003 does not exist
09:43:07 : sector 0004 does not exist
09:43:07 : sector 0005 does not exist
09:43:07 : sector 0006 does not exist
...
09:43:07 : sector 0088 does not exist
09:43:07 : Download in Progress:
09:43:08 : File download complete
09:43:08 : Time elapsed during download operation: 00:00:01.007

And of course it does not work.

Any suggestions please?

Thanks

Andy.


 

As stated in the wiki, you should not used STMCube programmer version 2.16 as it has bugs.
Use version 2.15 instead
--
Designer of the tinySA
For more info go to


 

Hi Erik

Thanks for the very prompt response!

I must have missed that - installed 2.15 and it worked OK.

So what is wrong with 2.16 as I use that on commercial products I develop and have never had a problem.

Thanks

Andy.


 

¿ªÔÆÌåÓý

I installed the latest firmware on mine, and also ran into problems. I thought I had ¡°bricked¡± mine. The solution in my case was to use the programmer to do a full program delete, restart the programmer, and after that it loaded fine.

?

Bill v.

?

From: [email protected] <[email protected]> On Behalf Of andyw999@...
Sent: Wednesday, June 26, 2024 3:49 AM
To: [email protected]
Subject: [tinysa] Firmware Update

?

Hi
I have attempted to do a firmware update on my Tinysa Ultra and failed.

Using STM32Cube programmer I put it into DFU mode and connected the programmer.

Loaded file tinySA4_v1.4-170-g8e96644.hex and went to program.

The progress contents are -

09:42:47 : STM32CubeProgrammer API v2.16.0 | Windows-64Bits?
09:42:51 : UR connection mode is defined with the HWrst reset mode
09:42:52 : USB speed ? : Full Speed (12MBit/s)
09:42:52 : Manuf. ID ? : STMicroelectronics
09:42:52 : Product ID ?: STM32 ?BOOTLOADER
09:42:52 : SN ? ? ? ? ?: 205937542031
09:42:52 : DFU protocol: 1.1
09:42:52 : Board ? ? ? : --
09:42:52 : Device ID ? : 0x0422
09:42:52 : UPLOADING OPTION BYTES DATA ...
09:42:52 : ? Bank ? ? ? ? ?: 0x00
09:42:52 : ? Address ? ? ? : 0x1ffff800
09:42:52 : ? Size ? ? ? ? ?: 16 Bytes
09:42:52 : UPLOADING ...
09:42:52 : ? Size ? ? ? ? ?: 1024 Bytes
09:42:52 : ? Address ? ? ? : 0x8000000
09:42:52 : Read progress:
09:42:52 : Data read successfully
09:42:52 : Time elapsed during the read operation is: 00:00:00.003
09:43:00 : Read File: e:\Users\Andy\Downloads\tinySA4_v1.4-170-g8e96644.hex
09:43:00 : Number of segments: 1
09:43:00 : segment[0]: address= 0x8000000, size= 0x2C4A0
09:43:07 : Memory Programming ...
09:43:07 : Opening and parsing file: tinySA4_v1.4-170-g8e96644.hex
09:43:07 : ? File ? ? ? ? ?: tinySA4_v1.4-170-g8e96644.hex
09:43:07 : ? Size ? ? ? ? ?: 177.16 KB?
09:43:07 : ? Address ? ? ? : 0x08000000?
09:43:07 : Erasing memory corresponding to segment 0:
09:43:07 : Erasing internal memory sectors [0 88]
09:43:07 : sector 0000 does not exist
09:43:07 : sector 0001 does not exist
09:43:07 : sector 0002 does not exist
09:43:07 : sector 0003 does not exist
09:43:07 : sector 0004 does not exist
09:43:07 : sector 0005 does not exist
09:43:07 : sector 0006 does not exist
...
09:43:07 : sector 0088 does not exist
09:43:07 : Download in Progress:
09:43:08 : File download complete
09:43:08 : Time elapsed during download operation: 00:00:01.007

And of course it does not work.

Any suggestions please?

Thanks

Andy.


 

¿ªÔÆÌåÓý

- v2.16 make a "Full chip erase" before programming...


Istvan


2024. 06. 26. 14:53 keltez¨¦ssel, bvdijk@... ¨ª°ù³Ù²¹:

I installed the latest firmware on mine, and also ran into problems. I thought I had ¡°bricked¡± mine. The solution in my case was to use the programmer to do a full program delete, restart the programmer, and after that it loaded fine.

?

Bill v.

?

From: [email protected] <[email protected]> On Behalf Of andyw999@...
Sent: Wednesday, June 26, 2024 3:49 AM
To: [email protected]
Subject: [tinysa] Firmware Update

?

Hi
I have attempted to do a firmware update on my Tinysa Ultra and failed.

Using STM32Cube programmer I put it into DFU mode and connected the programmer.

Loaded file tinySA4_v1.4-170-g8e96644.hex and went to program.

The progress contents are -

09:42:47 : STM32CubeProgrammer API v2.16.0 | Windows-64Bits?
09:42:51 : UR connection mode is defined with the HWrst reset mode
09:42:52 : USB speed ? : Full Speed (12MBit/s)
09:42:52 : Manuf. ID ? : STMicroelectronics
09:42:52 : Product ID ?: STM32 ?BOOTLOADER
09:42:52 : SN ? ? ? ? ?: 205937542031
09:42:52 : DFU protocol: 1.1
09:42:52 : Board ? ? ? : --
09:42:52 : Device ID ? : 0x0422
09:42:52 : UPLOADING OPTION BYTES DATA ...
09:42:52 : ? Bank ? ? ? ? ?: 0x00
09:42:52 : ? Address ? ? ? : 0x1ffff800
09:42:52 : ? Size ? ? ? ? ?: 16 Bytes
09:42:52 : UPLOADING ...
09:42:52 : ? Size ? ? ? ? ?: 1024 Bytes
09:42:52 : ? Address ? ? ? : 0x8000000
09:42:52 : Read progress:
09:42:52 : Data read successfully
09:42:52 : Time elapsed during the read operation is: 00:00:00.003
09:43:00 : Read File: e:\Users\Andy\Downloads\tinySA4_v1.4-170-g8e96644.hex
09:43:00 : Number of segments: 1
09:43:00 : segment[0]: address= 0x8000000, size= 0x2C4A0
09:43:07 : Memory Programming ...
09:43:07 : Opening and parsing file: tinySA4_v1.4-170-g8e96644.hex
09:43:07 : ? File ? ? ? ? ?: tinySA4_v1.4-170-g8e96644.hex
09:43:07 : ? Size ? ? ? ? ?: 177.16 KB?
09:43:07 : ? Address ? ? ? : 0x08000000?
09:43:07 : Erasing memory corresponding to segment 0:
09:43:07 : Erasing internal memory sectors [0 88]
09:43:07 : sector 0000 does not exist
09:43:07 : sector 0001 does not exist
09:43:07 : sector 0002 does not exist
09:43:07 : sector 0003 does not exist
09:43:07 : sector 0004 does not exist
09:43:07 : sector 0005 does not exist
09:43:07 : sector 0006 does not exist
...
09:43:07 : sector 0088 does not exist
09:43:07 : Download in Progress:
09:43:08 : File download complete
09:43:08 : Time elapsed during download operation: 00:00:01.007

And of course it does not work.

Any suggestions please?

Thanks

Andy.



 

Users have reported that version 2.16 does not do a full erase before firmware update (2.15 does). ?So you have to do the erase ad the first step.

Roger


 

Thanks for that!

It would not be the worst that ST has done ;)

Just don't mention their USB library!