Hi
I am trying to flash Freescale MKV30F64VLH10 on my board. I am flashing via PE micro Multilink Universal.
When I debug or flash via KDS3.0 and while JTAG connector is connected, my code works as defined. I am getting correct output on gpio.
But when I power off and power on the supply, I am not getting the output on gpio. And I am getting a pulse on rest pin (looking like mcu is not getting programmed !!).
Please suggest some solution for this problem.
Here is the console output....
Connection from "127.0.0.1" via 127.0.0.1
Copyright 2012 P&E Microcomputer Systems,Inc.
Command Line :C:\Freescale\KDS_v3\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_2.4.1.201603202153\win32\pegdbserver_console -device=NXP_KVx_KV30F64M10 -startserver -singlesession -serverport=7224 -interface=USBMULTILINK -speed=5000 -port=USB1 -configfil
CMD>RE
Initializing.
Target has been RESET and is active.
CMD>CM C:\Freescale\KDS_v3\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_2.4.1.201603202153\win32\gdi\P&E\supportFiles_ARM\NXP\KVx\freescale_kv30f64m10_1x32x16k_pflash.arp
Initializing.
Initialized.
;version 1.01, 02/23/2016, Copyright 2016 P&E Microcomputer Systems, Inc. All rights reserved. www.pemicro.com [kv_30f64_n_pflash]
;device freescale, kv30f64m10, 1x32x16k, desc=pflash
;begin_cs device=$00000000, length=$00010000, ram=$1FFFE000
Loading programming algorithm ...
Done.
CMD>EM
Erasing.
Module has been erased.
CMD>PM
Programming.
Processing Object File Data ...
.
Programmed.
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00000000-00003233 ...
Ok.
Checksum Verification Successful. (Cumulative CRC-16=$DB07)
CMD>RE
Initializing.
Target has been RESET and is active.
WARNING - NO RESET SCRIPT FILE HAS BEEN CONFIGURED TO RUN!!!
TO MODIFY THE RESET SCRIPT SETTINGS, USE THE FOLLOWING MENU OPTION:
CONFIGURATION -> AUTOMATED SCRIPT OPTIONS
With regards;
Vaibhav
Original Attachment has been moved to: tbc_gpio.zip
Solved! Go to Solution.
Hi Vaibhav,
I was able to run your project on my FRDM-K22F (I do not have FRDM-KV31) from debugger and from Power-On Reset.
You might add strong pull-up to PTC4 (NMI) signal. It is enabled by default.
Or you can go into thte startup_MKV30F12810.S and modify the Flash Configuration field to disable NMI capability:
Default Flash Configuration:
.section .FlashConfig, "a"
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFE
Modified Flash Configuration to disable NMI (FOPT[NMI]=0):
.section .FlashConfig, "a"
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFBFE
Regards,
David
Hi Vaibhav,
I was able to run your project on my FRDM-K22F (I do not have FRDM-KV31) from debugger and from Power-On Reset.
You might add strong pull-up to PTC4 (NMI) signal. It is enabled by default.
Or you can go into thte startup_MKV30F12810.S and modify the Flash Configuration field to disable NMI capability:
Default Flash Configuration:
.section .FlashConfig, "a"
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFE
Modified Flash Configuration to disable NMI (FOPT[NMI]=0):
.section .FlashConfig, "a"
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFBFE
Regards,
David
Thanks DavidS once again !!
My problem is solved after changing code as suggested by you :smileyhappy:
and I found on my board NMI pin was pulled down. So i will make it pull-up.
You picked the problem very accurately :smileyhappy:
Thanks;
Vaibhav Somani
Glad to help and thank you for sharing your results. It will help others too.
Regards,
David
Thanks DavidSfor quick reply.
I have TWR-KV31F120M. My code is also working fine on TWR-KV31.
But when I am flashing same code on my board, on power on reset or reset through pin. It is not working.
In debug mode when jtag connector is connected, I tried to do reset via reset pin. My cursor/pointer is showing DefaultISR due to WDOG_EWM_IRQHandler() ??
And this is defined as dead loop in startup_MKV30F12810.S file. So whenever a reset or power on reset happens it is going to DefaultISR and stuck in dead loop. Here is the screenshot ..
Please suggest how to overcome on this ?
Reset pin has a 100nF capacitor and pull up with 6.8k
resistor.
with regards;
Vaibhav
Somani
Sorry for typo.
It is MKV30F64VLH10 .