Hello team, I'm having a problem, I made a custom board for the S9KEA8P microcontroller of the KEA8 family. After programming with the J-Link EDU (SWD), the microcontroller does not boot, I need to start it by the keil software for it to run. I already put a pull-down resistor and it still did not work. In the TRK-KEA8 development board the same software its works perfect, without the need for a debug reset..
My question is I need to enable some configuration bit?
There is not FTM2_CH3 pins on S9KEAZN8AMTGR.
Have you try to use other pins?
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you Ruben, It has been observed and modified see line 72.
FTM2-> CONTROLS [4] .CnV = FTM_CnV_VAL (period [3]);
Where I get the value that would go to channel 3 and send to channel 4 that is associated with pin 8 of tssop. This code works, debug and enable the reset and run option after programming the microcontroller.
However it does not execute without giving the reset and run by command of the debug. The problem must be in the way I'm handling the timer and pwm. I'll be making changes in this deal.
Oh Sorry for my last reply, I didn't check the detail code modified at line 72.
The Pin 8 of S9KEAZN8AMTGR is default as NMI_b function.
Please try to use other pin or disable NMI function.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Good morning,
after I run the command:
SIM-> SOPT = 0 << SIM_SOPT_NMIE_SHIFT; I can no longer communicate via SWD.
Please do not clear other bit(such as: SWDE\RSTPE), it will cause this phenomenon.
Now you may have to use the Kinetis_Recovery_Utility halt MCU. For more detail, please refer: Bricking and Recovering FRDM-KL25Z Boards: Reset, SWD Clock and Low Power.
If you don't have any external PEmicro debugger, please use the onboard OpenSDA interface of TRK-KEA8.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Isolating the problem using a "debug" with the on and off led, I checked that the microcontroller is working yes, but the problem is in the output FTM (PWM) that is not creating the waveform.