FRDM K64F and FRDM-FXS-MULT2-B

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

FRDM K64F and FRDM-FXS-MULT2-B

1,820 Views
a8Chcx
Contributor V

Hi,

 

I am using FRDM K64F and FRDM-FXS-MULTI2-B to test the sensor fusion. I can use KDS2.0 to built the new file *.elf and *.bin and use "OPENSDA USB" to download *.elf to FRDM K64F.

After downloading and start running, GREEN LED is flashing around 0.5s. Is it right?

 

Then, I am trying to run application on my widows 7 machine and pop up ERROR Message "Can't open a port to the sensor board".

I checked COM5 (Jlink CDC UART Port) is there by using device manager.

I checked the project, it is using UART3 on PTC16&17 and all settings match with COM5 on PC

 

Could you tell me how to fix this problem?

 

Thanks,

Christie

Labels (1)
0 Kudos
Reply
7 Replies

1,263 Views
a8Chcx
Contributor V

Hi Mike,

I thought that it is for two modules. In Rev5.0, the document is much more clear. Anyway, it is OK.

I am using the debug console to debug my project on KDS3.0 by using printf().....

But, in your project, I didn't see you are using printf() to output message. So, I want to know which way you are using to do debug, even in Codewarrier?

Thanks,

Christie

0 Kudos
Reply

1,263 Views
michaelestanley
NXP Employee
NXP Employee

Using the integrated debugger functions like breakpoints, single stepping and watching variable values.

You're not going to be able to use printf, because that uses the serial/USB, which is used for communicating with the sensor fusion toolbox.

0 Kudos
Reply

1,263 Views
a8Chcx
Contributor V

Hi Mike,

In table 2, it says UART3 that looks like wrong.

I tried the rev5.0 you released and works fine.

One question: How can I debug the code if I am doing some changes? Is there any way to output any message on HyperTerminal?

Could you recommend some interface to do debug?

Thanks,

Christie

0 Kudos
Reply

1,263 Views
michaelestanley
NXP Employee
NXP Employee

Table 2 is right.  It's saying that UART3 on the K64 drives the Bluetooth module on the shield.  Use UART0 for the OpenSDA serial/USB.

You should be able to debug from both KDS and CodeWarrior.  I admit to not being experienced with KDS debug.  You may have to experiment a bit with your OpenSDA implementation/drivers.  Best place for those questions will be on the KDS community at Kinetis Design Studio .

0 Kudos
Reply

1,263 Views
michaelestanley
NXP Employee
NXP Employee

Flashing green light does indicate the fusion software is running on the board.

You are downloading directly from KDS?  It's probably a problem with your OpenSDA installation (either board or PC).

If your K64F has MBED CMSIS-DAP installed, it should show up as "MBED" in Windows Explorer.  You should see "mbed Serial Port" listed under Ports in the device manager.

If you are using a segger interface, there's no mass storage device view, and you shuold see JLink CDC UART Port under Ports in the device manager.

If you don't see these in the device manager, then you need to download drivers for your version of OpenSDA.  Go to freescale.com/opensda and select K64F from the pull down menu to see your options.

0 Kudos
Reply

1,263 Views
a8Chcx
Contributor V

Hi Mike,

After I changed UART3 to UART0 by using PTB16&17, it works fine.

Looks like I have to use UART0 on FRDM K64F, right? My PCB version is Rev.C.

Thanks,

Christie

0 Kudos
Reply

1,263 Views
michaelestanley
NXP Employee
NXP Employee

That will do it also.  Refer to Table 2 of the user guide.

Glad you got it up and running.  Have fun!

0 Kudos
Reply