Microcontroller Part # : S9KEAZN16AMLC
Debugger / Programmer : PE Micro Multilink Universal
Code Warrior : Version: 10.6.4
Using Processor Expert
Reset pin is tied to +5V through 4.7K resistor
In debug mode, we are able to program the controller and see the output
But in flash mode, after programming - a low signal of 2uSec is appearing at every 20 uSec of High signal.
i.e, Reset Pin Status will be High for 20 uS-->2uS-Low-->20uS High-->2uS Low....it continues
Because of this, Oscillator is not running and also program is not running.
(that means, I am not getting any error while programming in flash mode)
WDOG is diabled - find below snapshot, LVD is disabled
watch dog disabled in CS1
Status of SIM in debug mode
Hi,
Could you share with us reset schematic, and complete SIM module configuration, please?
Thanks
Hello Pedro,
Issue is not with uController.
Path prescribed for PE Micro Multilink Universal was not correct, we aligned with the path prescribed
We are able to flash it.
Thanks for all the support
(Sorry for posting the issue here)
(Thought of deleting the post as issue is not related to ucontroller, but it may lead someone to look into debugger also, if any issues - Moderator can take a call)
Hello Pedro,
As we are using processor expert, the generated code is
void PE_low_level_init(void)
{
#ifdef PEX_RTOS_INIT
PEX_RTOS_INIT(); /* Initialization of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/* Initialization of the SIM module */
/* Initialization of the FTMRx_FlashConfig module */
/* Initialization of the PMC module */
/* PMC_SPMSC1: LVWACK=1,LVDE=0,??=0 */
PMC_SPMSC1 = (uint8_t)((PMC_SPMSC1 & (uint8_t)~(uint8_t)(
PMC_SPMSC1_LVDE_MASK |
0x02U
)) | (uint8_t)(
PMC_SPMSC1_LVWACK_MASK
));
/* Common initialization of the CPU registers */
/* SIM_SOPT: CLKOE=0,RSTPE=0,NMIE=1 */
SIM_SOPT = (uint32_t)((SIM_SOPT & (uint32_t)~(uint32_t)(
SIM_SOPT_CLKOE_MASK |
SIM_SOPT_RSTPE_MASK
)) | (uint32_t)(
SIM_SOPT_NMIE_MASK
));
Our actual schematic is :
RESET net goes to debug port.
To debug, we removed LM809 and 100K (pull-down resistor). Reset pin is tied to +5V through 4.7K resistor.