Stuck in default ISR on startup (MKL26Z custom board)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Stuck in default ISR on startup (MKL26Z custom board)

956件の閲覧回数
dbwolfe
Contributor III

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.

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

758件の閲覧回数
mjbcswitzerland
Specialist V

Devin

If you hit an interrupt before you have enable the global interrupt it can only be the NMI (or a hard fault).

1. Check that the Flash configuration is in the Flash (read the memory in the debugger) and not just in the binary file to ensure that it has also actually been programmed as required.

2. Do a register dump of the NVC registers to see which interrupt is actually pending.

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html
KL26:
- http://www.utasker.com/kinetis/FRDM-KL26Z.html
- http://www.utasker.com/kinetis/TEENSY_LC.html

758件の閲覧回数
dbwolfe
Contributor III

It was the NMI interrupt, and I managed to resolve the issue, although I didn't find a root cause.  I reloaded KDS, cleaned and rebuilt the project, tried debugging again, and it worked.  Could have been an issue with the programmer.  Thanks for the quick response.

0 件の賞賛
返信