Wolfe

Stuck in default ISR on startup (MKL26Z custom board)

Discussion created by Wolfe on Nov 27, 2017
Latest reply on Nov 27, 2017 by Wolfe

I'm doing development on a custom board using the MKL26Z128CAL4R.  I just got the boards in, and re-targeted the code from a FRDM board to my new PCB.  When I try to debug my code on the new board, I get stuck in the default ISR without ever hitting main.  I thought that the NMI pin might be to blame, since it's being used as GPIO, but disabling NMI in the flash config struct in the SDK files did not seem to help.  I opened up the .elf binary in a hex editor to make sure that the bit was actually being cleared, and it looks fine.  I also changed the pin mux setting for PTA4 to GPIO.

 

Some other information that might be helpful:

 

  • I am using processor expert with SDK 1.3.0, using KDS as the IDE
  • Debugging a clean (default new project, no peripherals) PE/SDK project results in the same default ISR on startup
  • Debugging a clean PE project with no SDK works fine - the code executes to the main loop
  • I am configured for an internal oscillator, FEI, ~48MHz
  • Watchdog is disabled
  • Reset is pulled to 3.3V externally
  • Using a Segger debugger

 

I can't think of anything else.  If anyone has any theories on why this is happening, I'm all ears.  As it is, I'm just looking at a very expensive brick.

Attachments

Outcomes