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

Interrupts not working when USB IAP(AN10711) is used

Hi All,
I am not an expert on ARM yet but an average guy for uC.

I am trying to get hands on with LPC2148 and plan to use it in next project.

One wonderful thing that I came across (I come form a background where we use 8051/mega16 uC) is USB IAP. So without any UART/Serial cable, I can flash program just by using USB cable.

Did some changes like
1. generating bin file (using fromelf --bin ....) and
2. changing IROM1 from 0x0 to 0x2000

to make program work with IAP.

I tasted some program and those worked very well.

But the issue is arising when I try to use Timer0 interrupt.
I see controller getting stuck somewhere just after 1st int.

I checked with "Use Memory Layout with Target Dialog" selected and de-selected both.
Nothing worked.

This has something to do with vector table but I am not able to make out what?

Any help on this would be appreciated.

Remember, I just made 3 above mentioned changes after creating new project.
If there is anything else, please let me know.

Parents
  • John,
    A really strange thing is going on.
    After the Blinky worked well.
    I moved back to my earlier project and flash it. It just worked. I'm not sure how.

    Even after spending some good, I couldn't figure out the issue.

    So I decided to start a new project in keil and just copied the C file from the earlier version
    (Remember, this file was never touched in the whole process).

    I made sure that Startup.s is original only (original of Keil, without RAM_INTVEC).

    The only changes I made was to change IROM1 from 0x0 to 0x2000 and added Run Cmd to generate .bin.

    NO ADDITION OF REMAP, RAM_MODE or RAM_INTVEC.

    And, it worked.

    Now, I am totally confused about what is going on.

    Just to be careful about data in RAM, I re-plugged the power supply as well.
    Still it worked.

    Did that Blinky made some changes?

    I am planning to order one more of the same board. So will check this issue on that also.
    Till then, do you have some experiments which I should be trying on this board?

Reply
  • John,
    A really strange thing is going on.
    After the Blinky worked well.
    I moved back to my earlier project and flash it. It just worked. I'm not sure how.

    Even after spending some good, I couldn't figure out the issue.

    So I decided to start a new project in keil and just copied the C file from the earlier version
    (Remember, this file was never touched in the whole process).

    I made sure that Startup.s is original only (original of Keil, without RAM_INTVEC).

    The only changes I made was to change IROM1 from 0x0 to 0x2000 and added Run Cmd to generate .bin.

    NO ADDITION OF REMAP, RAM_MODE or RAM_INTVEC.

    And, it worked.

    Now, I am totally confused about what is going on.

    Just to be careful about data in RAM, I re-plugged the power supply as well.
    Still it worked.

    Did that Blinky made some changes?

    I am planning to order one more of the same board. So will check this issue on that also.
    Till then, do you have some experiments which I should be trying on this board?

Children