Hi Erick, Robin!
So, I put pull up in NMI_b pin and nothing change.
Today I put my last MCU and put pull ups in my pcb, I follow Robin recommendations too and I could flash my pcb more than one time.
One point in print console generate a doubt:
The point is bolded in text bellow.
Executing flash operation 'Program' (Program file into flash: Test_Project.axf) - Thu Sep 05 20:59:46 BRT 2019
Checking MCU info...
Scanning for targets...
Executing flash action...
P&E GDB Server for Arm(R) devices, Version 7.14.00.00
Copyright 2018, P&E Microcomputer Systems Inc, All rights reserved
Loading library /Applications/MCUXpressoIDE_10.3.1_2233/ide/plugins/com.pemicro.debug.gdbjtag.pne_3.9.9.201902081724/osx/gdi/unit_ngs_arm_internal.so ... Done.
Command line arguments: -interface=USBMULTILINK -port=USB1 -speed=5000 -flashobjectfile=/Users/felipeoliveira/Documents/BabyMonitor/Code/Baby_monitor/Test_Project/Release/Test_Project.axf -device=NXP_KL2x_KL26Z128M4 -programmingtype=0 -runafterprogramming -startserver -singlesession -quitafterprogramming
Device selected is NXP_KL2x_KL26Z128M4
User Specified Hardware Selection : Interface=USBMULTILINK and Port=USB1
Connecting to target.
P&E Interface detected - Flash Version 10.26
Device is NXP_KL2x_KL26Z128M4.
Mode is In-Circuit Debug.
(C)opyright 2012, P&E Microcomputer Systems, Inc. (www.pemicro.com)
API version is 101
Creating kernel driver for freertos
Server 1 running on 127.0.0.1:7224
Server 2 running on 127.0.0.1:7226
Server 3 running on 127.0.0.1:7228
Server 4 running on 127.0.0.1:7230
Server 5 running on 127.0.0.1:7232
Server 6 running on 127.0.0.1:7234
Server 7 running on 127.0.0.1:7236
Server 8 running on 127.0.0.1:7238
Server 9 running on 127.0.0.1:7240
Server 10 running on 127.0.0.1:7242
Copyright 2018 P&E Microcomputer Systems,Inc.
Command Line :
CMD>RE
Initializing.
Target has been RESET and is active.
CMD>CM /Applications/MCUXpressoIDE_10.3.1_2233/ide/plugins/com.pemicro.debug.gdbjtag.pne_3.9.9.201902081724/osx/gdi/P&E/supportFiles_ARM/NXP/KL2x/freescale_kl26z128m4_1x32x32k_pflash.arp
Initializing.
Initialized.
;version 1.05, 06/02/2014, Copyright 2014 P&E Microcomputer Systems, Inc. All rights reserved. www.pemicro.com [mk_128k_n_pflash_m0]
;device freescale, kl26z128m4, 1x32x32k, desc=pflash
;begin_cs device=$00000000, length=$00020000, ram=$20000000
Loading programming algorithm ...
WARNING - Selected .ARP file has been modified. CRC16 = $597F
Programming sequency is : erase, blank check, program, and verify {default}
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00000000-00001C97 ...
Calculated CRC-16 does not match block. (File = $0695, Device = $C908)
Error verifying flash of device
CMD>EM
Erasing.
Module has been erased.
Reloading programming algorithm ...
CMD>PM
Programming.
Processing Object File Data ...
.
Programmed.
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00000000-00001C97 ...
Checksum Verification Successful. (Cumulative CRC-16=$0695)
CMD>GO
All Servers Running
Target Disconnected.
Is normal this warning ?
And... to close my doubts...
The correct process to flash new MCUs is always start using GUI Flash ?
So I cant direct use bug icon in IDE ?
Tnx very much for your help.