infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 1 of 1

Thread: const declaration missing of App Handle Structures

  1. #1
    New Member New Member frafrost is on a distinguished road
    Join Date
    Mar 2018
    Posts
    2
    Points
    40

    const declaration missing of App Handle Structures

    When generating an Application that runs in PSRAM, some initialization procedure did not execute.
    I found out that e.s. for the Uart the UART_t declaration does not have the const prefix. Therefore the structure is allocated in the .bss section and not
    as it should be in .rodata. After boot (not initialized) !!. The pointers declared inside point to nowhere and the
    program crashes. The Problem maybe is not linked to the missing const prefix, becaus running from flash the values
    ar initialized and correct. Maybe it is linked to the linkedscript.
    I took the linkerscript from the ASC Loader example, but it seems that the init values of the variables etc are not
    present in the "PSRAM_1" image. As in the flash linkedscript for the data segments

    .data { ...} > SRAM_combined AT > FLASH_1_uncached

    i added/modified to

    .data {....} >SRAM_combined AT > PSRAM_1

    Someone has any suggestion ? It is correct what i have done ?



    In the output file generator was missing the .rodata section (-j .rodata).
    Last edited by frafrost; May 7th, 2018 at 07:39 AM. Reason: problem resolved

+ Reply to 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.