Jan 18, 2021
02:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 18, 2021
02:14 AM
Hi
I am a new-be to infineon xmc4500.
I am trying to program code to flash at address 0x08020000 – seems like it is ok
The header of it is:
ABM1_Header = {
.MagicKey = MAGIC_KEY,
.StartAddress = 0x08020000, // Update_ABM: Take care of the startup address
.Length = 0xFFFFFFFF,
.ApplicationCRC32 = 0xFFFFFFFF,
.HeaderCRC32 = 0x29e7c816 // Update_ABM: Take care of the CRC value
};
the flsh at this address is programed with the code but after updating the STCON + reset, the program I have in flash at 0x08020000 dosnt come up (no leds working)
In the reset function from the examples I update the SCU_GENERAL->STCON register with a value of 0x800. That I read and see .
But then after the reset, when things aren’t going as expected, I brought up the DAVE debug in running target mode and read the SCU_GENERAL->STCON register again (after reset) and saw I have a 0 there.
The way I understand is that after reset the system knows where to startup from by having this register with a value (if not in default bring up)
What am I doing wrong?
Maccabi
I am a new-be to infineon xmc4500.
I am trying to program code to flash at address 0x08020000 – seems like it is ok
The header of it is:
ABM1_Header = {
.MagicKey = MAGIC_KEY,
.StartAddress = 0x08020000, // Update_ABM: Take care of the startup address
.Length = 0xFFFFFFFF,
.ApplicationCRC32 = 0xFFFFFFFF,
.HeaderCRC32 = 0x29e7c816 // Update_ABM: Take care of the CRC value
};
the flsh at this address is programed with the code but after updating the STCON + reset, the program I have in flash at 0x08020000 dosnt come up (no leds working)
In the reset function from the examples I update the SCU_GENERAL->STCON register with a value of 0x800. That I read and see .
But then after the reset, when things aren’t going as expected, I brought up the DAVE debug in running target mode and read the SCU_GENERAL->STCON register again (after reset) and saw I have a 0 there.
The way I understand is that after reset the system knows where to startup from by having this register with a value (if not in default bring up)
What am I doing wrong?
Maccabi
Solved! Go to Solution.
- Tags:
- abm1stconzero
- IFX
1 Solution
Jan 18, 2021
08:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 18, 2021
08:41 AM
after making further search in the forum, I found this discution :https://www.infineonforums.com/threads/3907-ABM-Header
regarding how in detail the ABMx works and most important, with a very simple example that works !
what I wasnt aware about, is that after STCON is changed to point to ABMx instead of normal booting, it is erased - meaning that after next reset the system comes up in normal mode.
regarding how in detail the ABMx works and most important, with a very simple example that works !
what I wasnt aware about, is that after STCON is changed to point to ABMx instead of normal booting, it is erased - meaning that after next reset the system comes up in normal mode.
1 Reply
Jan 18, 2021
08:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 18, 2021
08:41 AM
after making further search in the forum, I found this discution :https://www.infineonforums.com/threads/3907-ABM-Header
regarding how in detail the ABMx works and most important, with a very simple example that works !
what I wasnt aware about, is that after STCON is changed to point to ABMx instead of normal booting, it is erased - meaning that after next reset the system comes up in normal mode.
regarding how in detail the ABMx works and most important, with a very simple example that works !
what I wasnt aware about, is that after STCON is changed to point to ABMx instead of normal booting, it is erased - meaning that after next reset the system comes up in normal mode.