Menu

#131 [patch] add -t command line option to specify i2c communication timeout

none
New
nobody
None
Medium
Patch
2023-12-21
2021-04-28
No

Hello,
This patch adds -t timeout command line option to add i2c timeout.
This makes erase and flashing to work with i2c designware IP + stm32f723 combo.
Without this patch, I was able to dump flash content but not erase/write.
I was getting i2c designware driver timeouts, due to long clock stretches (seen with logic analyzer).

1 Attachments

Discussion

<< < 1 2 (Page 2 of 2)
  • Tormod Volden

    Tormod Volden - 2021-12-20

    This version rounds up to next multiple of 10 ms.

     
    • Yann Sionneau

      Yann Sionneau - 2022-03-30

      This patch looks good to me :)

       
  • Anonymous

    Anonymous - 2022-02-22

    When will this patch be applied to the mainline? At the moment the STM32F756VG has the same issue and cannot be programmed over i2c.

     
  • Tormod Volden

    Tormod Volden - 2022-03-30

    Do ST's own tools work around this? It is pretty bad that they haven't responded to Yann's customer request.

     
  • Yann Sionneau

    Yann Sionneau - 2022-03-30

    I think our ST tools (stflash) use stlink probe which itself I am guessing is using JTAG.
    With another tool (dfu util) we use stm32's bootloader USB DFU function.

     
  • Yann Sionneau

    Yann Sionneau - 2022-04-20

    I would be in favor of integrating this patch, we use it as a local patch and so far it works great to flash our stm32f723.

     
<< < 1 2 (Page 2 of 2)

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB