This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB secondary ISP bootloader for LPC23xx with RTX Kernel problem

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.

Parents
  • Thanks Tamir,

    I quite agree that instead of

    memcpy((char *)0x00000000, (char *)(0x00002000), 64);
    

    there should be

    memcpy((char *)0x40000000, (char *)(0x00002000), 64);
    

    That was leftover after experimenting a milion times :)....

    But this is what I don't understand:
    You said that I should use either:

    RAM_INTVEC REMAP RAM_MODE
    

    or:

    memcpy((char *)0x40000000, (char *)(0x00002000), 64);
    

    But in my case, I do use

    RAM_INTVEC REMAP RAM_MODE
    

    but I also have to copy vectors manually. Nothing works if i do not copy IVT manually.

    In other words, "RAM_INTVEC REMAP RAM_MODE" does the remapping, but doesn't copy the interupt vector table as I would expect it...

    Or are you saying that "RAM_INTVEC REMAP RAM_MODE" should move IVT and there is no need to do this manually?

Reply
  • Thanks Tamir,

    I quite agree that instead of

    memcpy((char *)0x00000000, (char *)(0x00002000), 64);
    

    there should be

    memcpy((char *)0x40000000, (char *)(0x00002000), 64);
    

    That was leftover after experimenting a milion times :)....

    But this is what I don't understand:
    You said that I should use either:

    RAM_INTVEC REMAP RAM_MODE
    

    or:

    memcpy((char *)0x40000000, (char *)(0x00002000), 64);
    

    But in my case, I do use

    RAM_INTVEC REMAP RAM_MODE
    

    but I also have to copy vectors manually. Nothing works if i do not copy IVT manually.

    In other words, "RAM_INTVEC REMAP RAM_MODE" does the remapping, but doesn't copy the interupt vector table as I would expect it...

    Or are you saying that "RAM_INTVEC REMAP RAM_MODE" should move IVT and there is no need to do this manually?

Children