[SOLVED] Programming external flash indirectly, bridging over the MCU, with the J-Link.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Programming external flash indirectly, bridging over the MCU, with the J-Link.

    Hi there, I’m trying to program an external SPI flash (IS25LP032D) that is connected to a MCU STM32G474, but only the MCU can have a socket for plugging the J-Link to be programmed. Therefore, to program the external flash I need to use the MCU and do it in an indirect way, downloading a RAMCode to the RAM of the MCU using the J-Link.


    I have read several posts here and pages of the SEGGER Wiki about this topic, but I am still confused on how one has to proceed to achieve this. These two component are supposed to be supported by the J-Link, i.e., there is already a RAMCode for them. How do I get this RAMCode? How do I access the external flash form the J-Link? Is there any other information needed about the external flash?



    I would really appreciate some help on how to proceed step-by-step, like foolproof.



    Thanks in advance :)

    Francisco
  • Hello Francisco,

    Indirect programming via the QSPI controller of the STM32G474 is currently not supported.

    To program the Flash, you will need a custom flash loader. There are three options for developing a custom flash loader:
    1. You may add a custom flash loader yourself with the SEGGER Device Support Kit (DSK).
    2. You develop a custom flash loader with the help of the existing flash loaders' source code.
    3. SEGGER develops the custom flash loader for you.
    If you are interested in any of those options, please get in touch with SEGGER directly via our support ticket system: support.segger.com/.

    Best regards,
    Simon
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.