change tty in MQX ethernet to serial example (FRDMK64F)

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

change tty in MQX ethernet to serial example (FRDMK64F)

Jump to solution
1,385 Views
TurboMan
Contributor IV

So I eventually got the MQX serial to ethernet example working. (FRDMK64F) Sort of. The default configuration is polled serial (ttya). When I telnetted into it it errored in the serial terminal saying it wasn't interrupt driven. So I tried to change it. This has failed however I try to implement it.

There are settings in user_config.h (BSP) and config.h (eth to serial demo) to change, and the error message seemed pretty clear:

"

Waiting for incoming connection...OK

Fatal Error: Device " N" is not interrupt driven serial line.

This demo application requires enabled interrupt driven serial line (i.e "ittyf:").

                                                                          

Please define proper device using macro SERIAL_DEVICE and recompile this demo ap

plication.

                                                                   

Please add proper configuration to user_config.h

                             

i.e #define BSPCFG_ENABLE_ITTYF 1

                                            

#define BSP_DEFAULT_IO_CHANNEL_DEFINED

                                      

#define BSP_DEFAULT_IO_CHANNEL "ittyf:"

"

Followed those instructions, but I just get a blank terminal. I defined this: BSPCFG_ENABLE_ITTYA as 1 *instead* of the ..._TTYA version. I put the error message modifications in config.h as they wouldn't compile in user_config.h. Is this the real problem?

Anyone fancy a guess?...

0 Kudos
Reply
1 Solution
1,156 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Turboman:

In user_config.h

I think first you need to enable  ITTA.

#define BSPCFG_ENABLE_ITTYA                   1

then you can set the ITTA as the default IO channel

#define BSP_DEFAULT_IO_CHANNEL                "ittya:"

after that you need to make clean all libraries, and rebuild again, it should be OK.

I tried it in my side, it is OK

Regards

Daniel

View solution in original post

0 Kudos
Reply
3 Replies
1,156 Views
TurboMan
Contributor IV

Thanks Daniel,

Ok, firstly the error message stated that I should do a number of things, one of which wasn't neccessary. (#define BSP_DEFAULT_IO_CHANNEL_DEFINED)

Your instructions when followed compiled and ran ok, after clean+rebuild of course.

I defined the BSP_DEFAULT_IO_CHANNEL as "ittya:" in user_config.h, but there is also <#define SERIAL_DEVICE "ittya:"> in config.h. It was ttya but I changed it to ittya just in case. Anyway, I get the serial to ethernet over a telnet session.

Thank you

0 Kudos
Reply
1,157 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Turboman:

In user_config.h

I think first you need to enable  ITTA.

#define BSPCFG_ENABLE_ITTYA                   1

then you can set the ITTA as the default IO channel

#define BSP_DEFAULT_IO_CHANNEL                "ittya:"

after that you need to make clean all libraries, and rebuild again, it should be OK.

I tried it in my side, it is OK

Regards

Daniel

0 Kudos
Reply
1,156 Views
TurboMan
Contributor IV

Apologies if I didn't explain myself very well.

I've already tried what you've suggested. I don't have the project at this PC, but from memory:

1. Edited the ITTYA define, to 1. Changed TTYA define to 0.

2. Inserted the BSP_DEFAULT_IO_CHANNEL define, set to "ittya:", as you've described

3. Cleaned, refreshed, and rebuilt.

Using these steps, I still get a compilation error. I will try again tonight, and maybe re-install MQX / KDS.

0 Kudos
Reply