Regarding Flash Programming for the FRDM-A-S32K144N

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Regarding Flash Programming for the FRDM-A-S32K144N

70 Views
Fukuda
Contributor II

I was debugging using the FRDM-A-S32K144N when the following symptoms occurred:

* Unable to write to flash memory.
* Since the write failure, the power LED and reset LED have remained constantly lit.

I attempted recovery by performing the following steps:

1. Tried writing to the flash memory by unplugging and replugging the USB cable while holding down the reset button, aiming to catch the window before the infinite loop started.
* Attempted this dozens of times but was unsuccessful.

2. Connected the USB cable while holding down the reset button to enter bootloader mode.
* Flashed "BOOTUPDATEAPP_Pemicro_v111.SDA".
* Then flashed "MSD-DEBUG-EVB-S32K144_PEmicro_v125.SDA".
* The situation did not improve.

3. Attempted flash recovery using "Kinetis_Recovery_Utility.exe".
* Unplugged and replugged the USB cable several times, but the process did not complete.

I am unsure what to try next.
If anyone knows how to restore the board, could you please advise me on the procedure?

Tags (3)
0 Kudos
Reply
1 Reply

1 View
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Fukuda,

I don't have the newly released FRDM-A-S32K144N development board on hand, so I haven't tested it myself. If you aren't in a rush, I can help you troubleshoot the issue now, and then perform tests on my end once I receive the board—which I expect to arrive in mid-October.

After plugging the cable into the J1 USB Type-C port, please take a photo of the top side of the board and share it with me.
I am not sure which two LEDs you are referring to, as the SPF-96556_B.pdf document only lists D5 (Red) and D4 (Orange).
If D4 is lit, it indicates that the onboard OpenSDA debugger is functioning correctly. However, if D5 is lit, it indicates that the S32K144N is in a reset state (The RESET_MCU signal may go low); please use an oscilloscope to observe the signal and check for the frequency of periodic low pulses. 

Additionally, I am unsure what program was previously flashed onto the S32K144N. If it is a blank chip and the RESET_MCU signal shows periodic high-level pulses with a period of ~118µs, you can recover the MCU by executing a "mass erase" command via the SWD/JTAG debug interface.

Since the onboard debugger is provided by PEMicro, it is recommended to download the latest "USB Multilink Resources Installer" from the "Support & Downloads" category of the "Multilink Debug Probes". After installation, open PEFirmwareConfig.exe located in C:\PEMicro\Multilink_Resources to check the firmware version. Select Hardware Type: Multilink ACP Embedded - OnBoard ARM Debug Interface  Then, check for available updates.

It appears you have already refer to the discussion "S32K144 D2 RED LED is ON always". Please note that the Kinetis_Recovery_Utility (Version 8.17) previously provided on the PEMicro website did not work correctly; the Kinetis_Recovery_Utility (Version 1.06)—which I uploaded as an attachment in that discussion—works properly.

 

When using the Kinetis_Recovery_Utility, It is recommended to keep the PEMicro debugger powered on and repeatedly power-cycle reset only the S32K chip.
If you have an external debugger like the Multilink connected to the J3, you can repeatedly plug and unplug J1 to cycle power to the S32K144N while keeping the external Multilink active.
However, if you do not have an external Multilink and are relying solely on the onboard OpenSDA debugger, the design of the FRDM-A-S32K144N presents some inconvenience. Jumper SJ10 is not as convenient as J107 on the S32K144EVB for repeatedly cycling power to the S32K144. I am not certain whether repeatedly pressing SW2 alone would allow the Kinetis_Recovery_Utility to successfully halt the S32K144N at the right moment.


Best Regards,
Robin

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2416785%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERegarding%20Flash%20Programming%20for%20the%20FRDM-A-S32K144N%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2416785%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20was%20debugging%20using%20the%20FRDM-A-S32K144N%20when%20the%20following%20symptoms%20occurred%3A%3C%2FP%3E%3CP%3E*%20Unable%20to%20write%20to%20flash%20memory.%3CBR%20%2F%3E*%20Since%20the%20write%20failure%2C%20the%20power%20LED%20and%20reset%20LED%20have%20remained%20constantly%20lit.%3C%2FP%3E%3CP%3EI%20attempted%20recovery%20by%20performing%20the%20following%20steps%3A%3C%2FP%3E%3CP%3E1.%20Tried%20writing%20to%20the%20flash%20memory%20by%20unplugging%20and%20replugging%20the%20USB%20cable%20while%20holding%20down%20the%20reset%20button%2C%20aiming%20to%20catch%20the%20window%20before%20the%20infinite%20loop%20started.%3CBR%20%2F%3E*%20Attempted%20this%20dozens%20of%20times%20but%20was%20unsuccessful.%3C%2FP%3E%3CP%3E2.%20Connected%20the%20USB%20cable%20while%20holding%20down%20the%20reset%20button%20to%20enter%20bootloader%20mode.%3CBR%20%2F%3E*%20Flashed%20%22BOOTUPDATEAPP_Pemicro_v111.SDA%22.%3CBR%20%2F%3E*%20Then%20flashed%20%22MSD-DEBUG-EVB-S32K144_PEmicro_v125.SDA%22.%3CBR%20%2F%3E*%20The%20situation%20did%20not%20improve.%3C%2FP%3E%3CP%3E3.%20Attempted%20flash%20recovery%20using%20%22Kinetis_Recovery_Utility.exe%22.%3CBR%20%2F%3E*%20Unplugged%20and%20replugged%20the%20USB%20cable%20several%20times%2C%20but%20the%20process%20did%20not%20complete.%3C%2FP%3E%3CP%3EI%20am%20unsure%20what%20to%20try%20next.%3CBR%20%2F%3EIf%20anyone%20knows%20how%20to%20restore%20the%20board%2C%20could%20you%20please%20advise%20me%20on%20the%20procedure%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E