infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: Can't hit breakpoint if the MAIN function in RAM

  1. #1
    New Member New Member smk is on a distinguished road
    Join Date
    Jan 2017
    Posts
    2
    Points
    37.5

    Can't hit breakpoint if the MAIN function in RAM

    Hi,

    I am using Dave 4 and XMC1300 boot kit to run XMC1300 Blinky example code from Infineon site. It is working and the breakpoints got hit properly if the Main function in the flash.

    But if the main is at RAM location by using "void main(void) __attribute__ ((section (".ram_code")));", the breakpoints set in the Main will not be hit.
    The GCC optimization level setting is at "Optimize for debugging (-Og) for both above situations.

    Appreciate if any advice!
    Mark

  2. #2

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012
    Posts
    538
    Hi,

    I could verify your observation. We are looking into it. One workaround is to set a breakpoint at startup_XMC1100.S before going into main
    ldr r0, =main
    -> blx r0

    After this initial breakpoint, further breakpoints in main function located in RAM appears to work.

    Regards,
    Jesus
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    New Member New Member smk is on a distinguished road
    Join Date
    Jan 2017
    Posts
    2
    Points
    37.5
    Thanks and I will check it.

+ Reply to Thread

Tags for this Thread

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.