[SOLVED] How to execute and debug code from RAM when using SES 3 and Cortex-M MCU

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

  • [SOLVED] How to execute and debug code from RAM when using SES 3 and Cortex-M MCU

    Hi, I'm Matthew. I use

    - 64-bit SES 3.26 on 64-bit Windows 10

    - J-Link Plus or onboard J-Link (Nordic's dev kits have a J-Link on the board itself)

    - J-Link 6.16h

    - Nordic's PCA10040 v1.1.1 board (this board uses nRF52832-QFAA MCU)

    - STM32F4 Discovery board

    - SEGGER RTT Viewer


    I have noticed an interesting topic; execute code from RAM.


    - Nordic, How to execute code from RAM on nRF51 with Keil MDK

    - IAR EWARM, Download and run whole application in RAM (Cortex-M3)

    - IAR Keyword, __ramfunc (page362);

    The __ramfunc keyword makes a function execute in RAM


    Since SES 3 uses GCC or Clang this might be a matter of configuring GCC or Clang.

    However, just to check, is it possible to execute and debug code from RAM when using SES 3 and Cortex-M MCU?

    If there are tutorials related to the link, it will be great if you provide some links.

    -Best Regards
    -Best Regards, Matthew
  • Hello Matthew,

    Thank you for you inquiry.
    Under Help->Contents search for "Linking and section placement"

    In that chapter it is described how to place functions into different sections e.g. RAM.

    You can also find the User Manual here.

    Best regards
    Nino
    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.