Project stuck at void Excep_UndefinedInst(void)

Hello, 

I use in my project rx63t controller, Renesas RX toolchain compiler (v2.04.01).

Without any error, the program gets stuck in  " void Excep_UndefinedInst(void){/* brk(); */} "?

Any suggestions?

Best regards.

Arezki 

Parents
  • This is usually an indication that the program has run off into the weeds.  Make sure there is enough stack.  The defaults for the project builder give you 256 bytes user and 768 for the interrupt stack.  If you have large local data structures you can overrun that.  Try increasing the user stack by editing stacksct.h.

  • As Dale indicates, the CPU tried to execute a non existing instruction code. This means the PC was at a bad place in memory, typically stack problem, or code was not programmed to expected location (linking issue). Could also be an interrupt that occurred for which there was no interrupt handler. A good idea is to populate all interrupts with a defaultInterrruptHandler() so that you at least catch and handle that.Most IDEs have a setting to add this, so you don't have to do it by hand.

Reply
  • As Dale indicates, the CPU tried to execute a non existing instruction code. This means the PC was at a bad place in memory, typically stack problem, or code was not programmed to expected location (linking issue). Could also be an interrupt that occurred for which there was no interrupt handler. A good idea is to populate all interrupts with a defaultInterrruptHandler() so that you at least catch and handle that.Most IDEs have a setting to add this, so you don't have to do it by hand.

Children