S9KEAZN64 doesn't run code from flash after power reset

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

S9KEAZN64 doesn't run code from flash after power reset

ソリューションへジャンプ
1,278件の閲覧回数
vitaliharudka
Contributor II

Hello. I have make a custome board with S9KEAZN64 MCU and got next trouble. I am using segger j-link edu for programming and debug. I wrote software led blink for test and start debug it. All work correcty but when i stop debug and reset power it doesn't start again. Code running from flash and i checked flash memory via segger. Binary are there. I tried to make reset pin low and high back but it doesn't help. But it is possible to start it via J-Link tool(button named start mcu or similar). What can be wrong? Thanks.

ラベル(1)
0 件の賞賛
1 解決策
1,098件の閲覧回数
vitaliharudka
Contributor II

It was required to off NMI. While debugging it off automatically but after power reset it's turn on and mcu stuck in interrupt.

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
1,098件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi VITALI,

S9KEA boot up sequence is simple and directly. When the processor exits reset, it performs the following:

• Reads the start SP (SP_main) from vector-table offset 0
• Reads the start program counter (PC) from vector-table offset 4
• The Link Register (LR) is set to 0xFFFF_FFFF.

You can see these words in reference manual 6.2.2.

Maybe you can check 4 point:

1. Is there a 4.7uF or above capacitor on VDD. Without this cap, latch-up may happen.

2. May it caused by improper watchdog setting?

3. Is hardware design or welding ok?

4. Is the project setting well? Can other demo code run correctly.

Please try this driver library:

https://www.nxp.com/webapp/sps/download/license.jsp?colCode=FRDM-KEXX-Driver-Library-Package&locatio...

This is for KExx, but it also can run on KEA. They are all same.

Please also try device demos in https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/kinetis-c...  

Regards,

Jing

0 件の賞賛
1,099件の閲覧回数
vitaliharudka
Contributor II

It was required to off NMI. While debugging it off automatically but after power reset it's turn on and mcu stuck in interrupt.

0 件の賞賛