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

[Beginners Q] Error 22 on a FX2

I'm learning the Cypress FX2 board in my spare time, and got most of my testing running just fine, but I just can't get my debugging properly running : i keep getting the dreaded error22 (no code at 0x045).

So i figured some of my code wasn't VN and tried to debug the most simple example (hello.c) in the Keil examples. But even there, I keep getting the error. So I went out googlin, and found the USBJMPTB.a51 'fix', which is for the EZ-USB board, NOT for the FX2... Should I just blindly apply this 'fix' to the USBJMPTB.a51 ?? (there are 2 sections to adjust for the FX2 it seems)

sorry if this is a completely idiot question, but hey, I got to start off somewhere, no ?

Parents Reply Children
  • (Replying to myself here for future beginners who might be looking this up)

    The trick is to include the USBJMPTB.obj in your project. For the FX2 test board, I did NOT need to adjust the jump table file, but you DO have to include the obj file, so that the linker properly sets the addresses. If not, he'll use the default settings which cause the error