I'm testing the FRDM-KL25Z board. I flash it with USB Bootloader uTaskerSerialLoader_FRDM-KL25Z.srec (download from utTasker site) .
Similarly as FRDM-K20D50M FRDM-K20D50M uTasker USB Bootloader application program
in an application program :
1) I have disabled "Generate Linker file" in Build Option in PE, and edit it manually as :
MEMORY {
m_interrupts (RX): ORIGIN = 0x00008080, LENGTH = 0x000000F8
m_cfmprotrom (RX) : ORIGIN = 0x00008400, LENGTH = 0x00000010
m_text (RX) : ORIGIN = 0x00008410, LENGTH = 0x00017BF0
m_data (RW): ORIGIN = 0x1FFFF000, LENGTH = 0x00004000
}
2) In "User code after PE Initializzation" in Build Option I have added , that is visible after building in CPU.c file:
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::
// USER CODE AFTER PE INITIALIZATION
uint32_t *pdst ;
uint32_t *psrc;
uint16_t i ;
// Copy Application Stored Interrupt Vector table to RAM
pdst=(uint32_t*) (0x1FFFF000 );
psrc=(uint32_t*)( 0x8080 );
for (i=0;i<0xF8;i++,pdst++,psrc++)
{ (*pdst) = (*psrc);
}
// Then redirect the vector table to RAM by changing the SCB_VTOR like this:
// Redirect the vector table to the new copy in RAM
SCB_VTOR = (uint32_t)(0x1FFFF000);
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::
I made a little code for blinking a led with Processor Expert, but
unfortunately the led don't blink.There 's something wrong.
Thanks to whoever can help me.
Jerry
Original Attachment has been moved to: FRDM-KL25Z-LED.bin.zip