How to use the MK64FN1M0VLL12

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

How to use the MK64FN1M0VLL12

Jump to solution
2,944 Views
kazukiyamashita
Contributor II

Hello.

I have been verified using MK64FN1M0VLL12.
It connects to the following pin, but it does not work. The will it or not missing something?
Crystal frequency is confirmed with an oscilloscope.

[MCU]
13(VERGIN) -> 5.0v
22(VDDA) -> 3.3v
23(VREFH) -> 3.3v
24(VREFL) -> Gnd
25(VSSA) -> Gnd
28(XTAL32) -> 25MHz quartz crystal unit
29(EXTAL32)-> 25MHz quartz crystal unit
30(VBAT) -> 3.3v
34(PTA0) -> SWD_4 PIN
37(PTA3) -> SWD_2 PIN
50(PTA18) -> 50Mhz quartz crystal unit
51(PTA19) -> Gnd
52(RESET_b)-> SWD_10_PIN
68(PTB22) -> LED
74(VDD) -> 3.3v
75(VSS) -> Gnd

It should be noted that the program is already written over the SWD.
Using scheduled for LED test the 68(PTB22)PIN.

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
2,393 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Have you try to place bypass capacitors close to the VDD and VSS pins on the traces leading to the MCU?
Usually we connect all of the VDD pins to 3.3v.(Not only one pair of VDD and VSS)

If you didn't need USB module. Please connect VREGIN and VOUT33 together and tie to ground through a 10kΩ resistor. Do not tie directly to ground, as this causes a latch-up risk.

Best Regards,

Robin

View solution in original post

0 Kudos
Reply
11 Replies
2,393 Views
kazukiyamashita
Contributor II

Connect all the VDD and VSS, was stable operation was established a capacitor!

Problem was solved with more. Thank you really received long correspondence.

Image.gif

Thank you, Robin

0 Kudos
Reply
2,393 Views
kazukiyamashita
Contributor II

I'm going to create your own board.
Chip who use a FRDM-K64F is the same board for comparison.

What I've tried are as follows.

Connection in the SWD has take the confirmation.
This was confirmed in the following way.
SEGGER J-Flash V6.10d of Target -> intended binary Read back was displayed.
Comparison is reading the same binary written in FRDM-K64F, were compared.

A binary that works with FRDM-K64F, when written in its own board, it has problems that do not work.

k64f_board_binary.pngcustom_board_binary.png

If I was to start the custom board in keil debug mode, you can see that the move rare. Procedure at that time was as follows.
Debug -> Start/Stop Debug Session -> Run -> Reset CPU -> Stop -> Run

0 Kudos
Reply
2,394 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Have you try to place bypass capacitors close to the VDD and VSS pins on the traces leading to the MCU?
Usually we connect all of the VDD pins to 3.3v.(Not only one pair of VDD and VSS)

If you didn't need USB module. Please connect VREGIN and VOUT33 together and tie to ground through a 10kΩ resistor. Do not tie directly to ground, as this causes a latch-up risk.

Best Regards,

Robin

0 Kudos
Reply
2,393 Views
cutworth
NXP Employee
NXP Employee

What failure did you see when trying to use your custom board with MK64? Does it fail when you try to use SWD for connection? Or you were able to load code into MK64 flash but it does not run correctly?

Hao

0 Kudos
Reply
2,393 Views
kazukiyamashita
Contributor II

I've understood that the boot loader is unnecessary.
Where in the accompanying me binaries to confirm the action, we work with FRDM-K64F board. However, it did not work with mk64fn1m0vll12.

Because of the LED of the test, to compile the following projects in keil uvision v5.21.1.0, it was executed.
Freescale\TWR-K64F120M\Blinky\

My to create a circuit I believe than there is a problem.

And, Circuit diagram is as follows.

k64f.png

0 Kudos
Reply
2,393 Views
kazukiyamashita
Contributor II

It is an additional question.

If the software is written in swd, but I think the boot loader is that it is unnecessary, incorrect?

0 Kudos
Reply
2,393 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

If the software is written in swd, the boot loader is unnecessary.

After compiled the mbed_blinky project, I got the mbed_blinky_K64F.bin file.

blinky K64 PTB22.png

Writing of program uses the SEGGER J-Flash V4.92.

Segger JFlash.png


The PTB22 is toggle on my customer board.

PTB22.bmp

MAPS K64.jpg

Would you please attach the schematic here? So that we can check the circuit whether it has problem or not.
From your image, I can't see any bypass capacitors or resistors.


Supply routing – For Quad Flat Pack (QFP) packages, the power supply pins may be supplied radially to the MCU using traces rather than from planes. While it is adequate to place the bypass capacitors close to the VDD and VSS pins on the traces leading to the MCU, it is better to have the ground side of the bypass capacitor tied to the ground plane (through a via and short trace) close to the VSS pin and the VDD side tied to the power plane (through a via and short trace) close to the VDD pin.

Best Regards,

Robin

0 Kudos
Reply
2,393 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Please observe the waveform of Reset_b with an oscilloscope. Make sure it high.( not sawtooth wave)

Please confirm the PTA4(NMI_b) is high. If the NMI input is low and the NMI function is enabled in the NMI_DIS field(by default), this results in an NMI interrupt.

The RESET_b pin, if enabled, must have a 100 nF capacitor close to the MCU for transient protection. The NMI_b pin, if enabled, must not have any capacitance connected to it. Each pin, when enabled as their default function, has a weak internal pullup, but an external 4.7 kΩ to 10 kΩ pullup is recommended. As with power pin filtering, it is recommended to minimize the ground loop for the capacitor and the VDD loop for the pullup resistor for these pins.

The JTAG_TMS signal on PTA3 requires a strong pullup resistor for mode selection. For the debug interface, you can refer below image:

JTAG 10Pin.png


Do not connect 25MHz quartz crystal unit to RTC oscillator(XTAL32 and EXTAL32).

Best Regards,

Robin

0 Kudos
Reply
2,393 Views
kazukiyamashita
Contributor II

Thank you for your reply.

It was checked Reset_b, frequency of 50mhz was able to confirm.
In addition, it can be confirmed that it is the High, the waveform is also normal.


PTA4 was confirmed, was confirmed to be a High of 3.3v.

Crystal of 25Mhz was removed.

0 Kudos
Reply
2,393 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

I test the led_output project on my FRDM-K64F board. After download the program by using on board debugger, the LED RED is taking turns to shine.
If you download the Kinetis SDK2.0 for K64, the project can be found in below folder.(SDK_2.0_FRDM-K64F\boards\frdmk64f\driver_examples\gpio\led_output)

Would you please tell me what IDE are you using?(IAR or Keil MDK or KDS)
If you test the project on your own board, please attached the schematic here. So that we can check the circuit whether it has problem or not.

Do you mean that the project can't toggle the RED LED when debugging or normal run?

Best Regards,

Robin

0 Kudos
Reply
2,393 Views
kazukiyamashita
Contributor II

Operation check has been taken in the FRDM-K64F.

Compilation is doing in the online.

Development Platform for Devices | mbed 

The following image is a thing of when the LED Blink test was carried out in FRDM-K64F.

Writing of program uses the SEGGER J-Flash V6.10d.

The program was considered to be funny, but it works fine in FRDM-K64F. For this reason, I thought whether the circuit is wrong.

Image.jpeg

0 Kudos
Reply