Menu

#148 Support for STM32U575/U585 (Device ID: 0x482)

none
Fixed
nobody
None
Medium
Enhancement
2022-12-08
2022-06-08
J R
No

stm32flash is missing support for STM32U575/U585.

I tried this with U585 ROM bootloader and prints are:
stm32flash -b 115200 -m 8e1 -o COM11
stm32flash 0.7

http://stm32flash.sourceforge.net/

Interface serial_w32: 115200 8E1
Unknown/unsupported device (Device ID: 0x482)

And as a reference cubeprogrammer prints are here:

STM32_Programmer_CLI.exe -c port=com11 br=115200 --erase all
-------------------------------------------------------------------
STM32CubeProgrammer v2.9.0
-------------------------------------------------------------------

Serial Port COM11 is successfully opened.
Port configuration: parity = even, baudrate = 115200, data-bit = 8,
stop-bit = 1.0, flow-control = off

Timeout error occured while waiting for acknowledgement.
Activating device: OK
Board : --
Chip ID: 0x482
BootLoader protocol version: 3.1
Device name : STM32U575/STM32U585
Flash size : 2 MBytes
Device type : MCU
Revision ID : --
Device CPU : Cortex-M33

Mass erase ...

Mass erase command correctly executed.
Note: if there's any flash protection, it will not be erased.

Discussion

  • Tormod Volden

    Tormod Volden - 2022-06-08

    Hi,
    Support for new chips is often contributed by users. Most devices just need an entry in the device table in dev_table.c.

    To support a device, information from ST's document AN2606 is needed, both from the table "Bootloader device-dependent parameters" (table 152 in rev 49) and the chip-specific chapter, and from the chip reference manual (e.g. RM0444). Since there are many typos and errors in these documents (in particular for the latest series, it seems) the information needs to be cross-checked, and eventually tested on a device. Therefore we are dependent on users having access to these devices to incorporate this support.

    See for example commit 03682c20.

     
  • Tormod Volden

    Tormod Volden - 2022-06-08

    I have looked up AN2606 rev 54 for the parameters found there, but not the reference manual.

     
  • J R

    J R - 2022-06-10

    Ok, thanks for the information.

     
  • Anonymous

    Anonymous - 2022-06-28

    Hi,
    I don't understand, and I can't find some of the parameters. What is PPS, PSize and Option-byte-addr-range? Also, I can't find "Bootloader device-dependent parameters" in AN2606 for STM32U585.

    How to correctly fill in these parameters for STM32U5?

    Best regards,
    Ana

     
  • Tormod Volden

    Tormod Volden - 2022-06-28

    PPS is pages per sector. PSize is the size of the pages, it is a structure because devices often have sectors of different page sizes. These parameters and the option byte address range can usually be found in the reference manual of the device. Also make sure you have revision 54 (or newer) of AN2606.

    From AN2606 you will likely find the SRAM range of 0x20004000 - 0x20010000, and System Memory range of 0x0BF90000 - 0x0BFA0000.

     
  • Tormod Volden

    Tormod Volden - 2022-12-08
    • summary: Support for STM32U575/U585 --> Support for STM32U575/U585 (Device ID: 0x482)
     
  • Tormod Volden

    Tormod Volden - 2022-12-08
    • status: New --> Fixed
     
  • Tormod Volden

    Tormod Volden - 2022-12-08

    After consulting the reference manual of this chip, I have filled in the device entry as good as I can. I have no possibility to test this myself, so please test latest git master and report if it works or not.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB