PS

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User12439
Level 1
Level 1
5 replies posted Welcome! First question asked
Hi,

i am using DAVE4 and a XMC4400.

After downloading a flash loader into PSRAM and generating the PSRAM header from an application running from flash, i try to start the flash loader.
This is the header:
2739.attach

This is the start of PSRAM:


To start this code, i initiate a PSRAM boot with the following code:

static void BLHRunUserCode(uint8_t SelMem)
{
__disable_irq();

/* clear reset status */
XMC_SCU_RESET_ClearDeviceResetReason();

/* program SWCOM */
XMC_SCU_SetBootMode(XMC_SCU_BOOTMODE_PSRAM_BOOT);


/* init. system reset */
__NVIC_SystemReset();

}


But the XMC4400 doesn`t start the flash loader, it enters instead the sleep mode.

What i am doing wrong?

Thank you in advance
0 Likes
1 Reply
lock attach
Attachments are accessible only for community members.
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Please have a look to the attached projects.
It includes two projects
- The bootloader
- The application (blinky)

Compile first the application. It will generate an object file that can be linked to the bootloader application. See README.txt
Compile then the bootloader and flash the application. The LEDs in the XMC44 Application kit should start blinking.

Regards,
Jesus
0 Likes