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.
Just to make this easier, I uploaded this bootloader packed with simple RTX application which uses serial port 1 at baud rate 115200.
It prints some test messages, and then loops in "init_task" to echo input from keyboard...
Here is rapidshare link: rapidshare.com/.../non_RTX_bootloader_with_RTX_application_for_lpc2378.rar
Link will be active for 90 days from now as I understood from rapidshare...
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...?