Default_Handler happens

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

Default_Handler happens

755件の閲覧回数
haizhougeng
NXP Employee
NXP Employee

Hello

I'm using KEAZ128M microcontroller. I meet a problem. When I config PTB5 as GPIO output, the Default_Handler() below will be triggered.I am using Code Warrior. And I don't use Processor Expert.

I am really confused..what is the reason.

Best regards

Haizhou

3 返答(返信)

550件の閲覧回数
davidsherman
Senior Contributor I

The only thing that comes to mind is if PTB4 is also being configured as an output.  That is the NMI pin, which is enabled by default.  Are you configuring all of the port B pins, or only PTB5?  Could something else be pulling PTB4 low?

550件の閲覧回数
haizhougeng
NXP Employee
NXP Employee

Thanks David.

I set NMIE bit 0 on SIM_SOPT0 register. And Default Handler don't happens.

But I am still confused why PTB5 will trigger it. Maybe I should check my PCB.

Thanks

550件の閲覧回数
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Haizhou,

As David mentions maybe the problem is on the code that configures the PTB5 pin as an output, could you share your project to see if I can reproduce the issue on my side?

Thanks in advance!

Best Regards,

Carlos Mendoza

Technical Support Engineer

0 件の賞賛
返信