How can i communicate rs485 with MK64N1M0VLL12 ?

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

How can i communicate rs485 with MK64N1M0VLL12 ?

1,889 Views
mehmetak
Contributor I


Hi,

I am new  in microcontroller programming.   I am using MK64N1M0VLL12 microcontroller in my project. I have to communicate RS 485 with PC or other devices, however, I couldn't find any RS485 example code.  How can i write a program? I searched  in web, but I didn't.

Could you help me urgently?

Labels (2)
0 Kudos
8 Replies

1,336 Views
mehmetak
Contributor I

Hi Iva,

Thank you for help. I debugged code. However, I don't understand why it didn't work when I run firstly?

Best regards,

mehmet

0 Kudos

1,336 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Mehmet.

The reasons could be following:

  1. A file does not exist any more or is under a different path. That is something I have to fix in the project.
  2. I have imported a project from another place.
  3. I have changed the IDE and now it has a path to the libraries.
  4. I have generated new/different source files with Processor Expert.

For more details please see https://mcuoneclipse.com/2012/03/12/no-rule-to-make-target/

I hope this helps.

Best Regards,

Iva

0 Kudos

1,336 Views
mehmetak
Contributor I

Hi Iva,

I am using Kinetis Design Studio 3.0.0 IDE.  I had run example "Hello World". however , ı need a uart interrupt sample code. I found a SDK 2.0 FRDM K64F for uart interrupt, but it doesn't work. I have this fault " make: *** No rule to make target `C:/Users/makin/Desktop/SDK_2.0_FRDM-K64F/boards/frdmk64f/driver_examples/uart/interrupt/uart_interrupt.c', needed by `source/uart_interrupt.o" for debug.

I have no problem import demo in KDS.

Thank you, best regards.

Have a nice day

Mehmet

0 Kudos

1,336 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Mehmet.

I tested on my side without problems. 

No rule to make target means that the make cannot find the files.

Please, can you clean your project and build it again? right click on your project -> Clean Project

Please let me know, if this helps you.

Thank you.

Best Regards,

Iva

0 Kudos

1,336 Views
mehmetak
Contributor I

Sorry ivadorazinova​, ı wrote your name by mistake.

0 Kudos

1,336 Views
mehmetak
Contributor I

Hi ivadorazinova,

Thank you for example interrupt code. But, I have a problem, when i debug sample code, i am taking this failure

" make: *** No rule to make target `C:/Users/makin/Desktop/SDK_2.0_FRDM-K64F/boards/frdmk64f/driver_examples/uart/interrupt/uart_interrupt.c', needed by `source/uart_interrupt.o'.

make: Target `all' not remade because of errors."

I don't understand what problem is. Could you help me ?

0 Kudos

1,335 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Mehmet.

Please, what do you use for IDE and its version?

I made the video for you, where I show you how to import demo in KDS,

please let me know, if your procedure is the same as mine.

Thank you.

Have a nice day.
Iva

0 Kudos

1,336 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Mehmet,

please see the thread related to your question:

Can i communicate rs485 via UART with FRDM-k64F?

I hope this helps you.

Best Regards,

Iva

0 Kudos