infineon4engi@twitter infineon4engineers infineon@linkedin infineon@youtube
twitter Facebook Linkedin Youtube

+ Reply to Thread
Results 1 to 2 of 2

Thread: Emulated eeprom for XMC1300 Example exception in debugg mode

  1. #1
    Beginner Beginner Matrix is on a distinguished road
    Join Date
    Sep 2017
    Posts
    6
    Points
    85

    Emulated eeprom for XMC1300 Example exception in debugg mode

    Hi,

    I'm trying to debugging the example E_Eeprom_xmc1_example_xmc1300 without success. When I start the debugger, I get an exception to the default handler ( b .) and I dont know why. What I'm doing wrong? I saw that the exception is comming when the software is trying to read the flash memory into the function XMC_FLASH_ReadBlocks:
    void XMC_FLASH_ReadBlocks(uint32_t *address, uint32_t *data, uint32_t num_blocks)
    {
    uint32_t word;
    uint32_t block;

    XMC_ASSERT("XMC_FLASH_ReadBlocks: Starting address not aligned to Block",
    ((uint32_t)address & FLASH_BLOCK_ADDR_MASK) == 0U)

    for (block = 0U; block < num_blocks; ++block)
    {
    for (word = 0U; word < XMC_FLASH_WORDS_PER_BLOCK; ++word)
    {
    *data = *address;
    data++;
    address++;
    }
    }
    }
    To be more exactly by the datatransfer von pointer *address to *data. It seems as the pointer would have a wrong address. Can help me anybody to solve this problem?
    Click image for larger version

Name:	Linker_setup.JPG
Views:	1
Size:	36.5 KB
ID:	4950
    Click image for larger version

Name:	eeprom_app1.JPG
Views:	0
Size:	48.8 KB
ID:	4951
    Click image for larger version

Name:	eeprom_app2.JPG
Views:	0
Size:	42.2 KB
ID:	4952


    I would appreciate some help a lot.

    Thank you

    Pablo

  2. #2
    Beginner Beginner Matrix is on a distinguished road
    Join Date
    Sep 2017
    Posts
    6
    Points
    85
    Hi guys,

    I finally found the problem. I've toaken the wrong link file.

    Thank you for reading.

    Pablo

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