[ABANDONED] QSPI custom flash loader

  • Hello, all


    I have more simple question.

    How can I add my own QSPI flash loader to the JLink?

    Is where any gcc compatible code for it?
    Can I have a debug functionality from jlink?

    ---------------------
    Best regards,
    Alexey

  • Hi Alexey,


    You can write the flashloader using a GCC compiler by using SEGGER Embedded Studio.
    Please note that in addition to UM08001, there is a wiki article featuring an example(STM32F2) regarding open flashloader: https://wiki.segger.com/Adding_Support_for_New_Devices


    Best regards,
    Niklas

    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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

  • I saw this article.

    Unfortunately the default example doesn't work, I think the issue is in the section names inside the elf file.

    Is it possible to have an example of correct ld file?

  • Hi,


    I am sorry that the example project does not work for you.
    Could you please give me the details on the error which occurs?

    Does the flash loader build?
    If yes, what error is reported by the J-Link software when using it?


    Best regards,
    Niklas

    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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

  • In the example we have only 1 definition of "Flash device type".
    This is #define ONCHIP (1) // On-chip Flash Memory
    Can we use this define for an external QSPI flash?
    Do we need a different define?


    the field SectorStartAddr in the struct SECTOR_INFO is unclear for me.
    Is it possible to have some info about this address?
    what does it mean?

  • Is it possible to have more than 1 source file in the project?

    I add 4 c source files and have the following error in the Release mode

    Building ‘Template_CortexM’ from solution ‘Template_CortexM’ in configuration ‘Release’
    Compiling ‘macronix.c’
    Assembler messages:
    ignoring changed section attributes for PrgCode
    Linking Template_CortexM.elf
    Output/Release/Exe/Template_CortexM.elf section `.text.libc.__int32_div' will not fit in region `UNPLACED_SECTIONS'
    region `UNPLACED_SECTIONS' overflowed by 144 bytes
    Build failed

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!