I got the code USB secondary ISP bootloader for LPC23xx from NXP working fine with none RTX kernel but It does not working with RTX kernel. If anyone know more detail please help.
Thank you.
Predrag,
I almost never do this, but I had a look at the code you posted. I am afraid that I do not understand why your application does this:
memcpy((char *)0x00000000, (char *)(0x00002000), 64);
maybe I missed something, but are you not trying to write into internal flash here...? if you are trying to remap interrupt vectors, well, then you can use the facilities of the startup file of the RTX application by the macros
RAM_INTVEC REMAP RAM_MODE
or do this in the bootloader:
<code to disable interrupts> memcpy((char *)0x40000000, (char *)(0x00002000), 64); MEMMAP = 2 ; <code to enable interrupts>
now I have a small question: what will you do if your bootloader needs to jump to a software components that remaps the vectors, which then jumps to your RTX application...?