TWR-K40X256 - serial transmission on MQX 3.6.2 beta (for k40) doesn´t works

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

TWR-K40X256 - serial transmission on MQX 3.6.2 beta (for k40) doesn´t works

Jump to solution
1,629 Views
demolisher
Contributor I

 

I was testing the new MQX for the k40 but the serial transmission doesn´t works, I also rebuild
the bsp_twrk40x256 project with this options in the user_config.h:

#define BSPCFG_ENABLE_TTYA       1//

#define BSPCFG_ENABLE_ITTYA      0

#define BSPCFG_ENABLE_TTYB       1

#define BSPCFG_ENABLE_ITTYB      0
#define BSPCFG_ENABLE_TTYC       1
#define BSPCFG_ENABLE_ITTYC      0
#define BSPCFG_ENABLE_TTYD       1//
#define BSPCFG_ENABLE_ITTYD      0
#define BSPCFG_ENABLE_TTYE       1
#define BSPCFG_ENABLE_ITTYE      0
#define BSPCFG_ENABLE_TTYF       1
#define BSPCFG_ENABLE_ITTYF      0
#define BSPCFG_ENABLE_I2C0       0
#define BSPCFG_ENABLE_II2C0      0
#define BSPCFG_ENABLE_I2C1       1
#define BSPCFG_ENABLE_II2C1      1
#define BSPCFG_ENABLE_SPI0       0
#define BSPCFG_ENABLE_ISPI0      0
#define BSPCFG_ENABLE_SPI1       0
#define BSPCFG_ENABLE_ISPI1      0
#define BSPCFG_ENABLE_SPI2       0
#define BSPCFG_ENABLE_ISPI2      0
#define BSPCFG_ENABLE_GPIODEV    1
#define BSPCFG_ENABLE_RTCDEV     1
#define BSPCFG_ENABLE_PCFLASH    0
#define BSPCFG_ENABLE_ADC0       0
#define BSPCFG_ENABLE_ADC1       1
#define BSPCFG_ENABLE_FLASHX     0
#define BSPCFG_ENABLE_ESDHC      0
The project that I was testing is the adc example, when the project 
is compiled and debugged doesn´t appear mistakes but when you try to send a data 
by the serial port using "printf" the data is never sended.  
I hope some one can help me to solve this.
Best regards.

 

 

 

 

 

 

 

0 Kudos
Reply
1 Solution
706 Views
Magnetron
Contributor III

I found a solution!

 

If you use demos from mqx\demo you need do following:

 

To enable the TWR-SER RS232 interface change the BSP_DEFAULT_IO_CHANNEL configuration option to "ttyd:" in the mqx\source\bsp\twrk40x256\twrk40x256.h file.

 

If you use demos from KINETIS512_SC you need do following:

 

To enable the TWR-SER RS232 interface uncomment

#define SERIAL_CARD

and comment

//#define OSJTAG 

in the KINETIS512_SC_1.4\src\platforms\k40_tower.h file.

 

Best regards.

View solution in original post

0 Kudos
Reply
3 Replies
706 Views
demolisher
Contributor I

The problem was solved =).

 

Best regards.

0 Kudos
Reply
706 Views
Magnetron
Contributor III

What is a solution?

0 Kudos
Reply
707 Views
Magnetron
Contributor III

I found a solution!

 

If you use demos from mqx\demo you need do following:

 

To enable the TWR-SER RS232 interface change the BSP_DEFAULT_IO_CHANNEL configuration option to "ttyd:" in the mqx\source\bsp\twrk40x256\twrk40x256.h file.

 

If you use demos from KINETIS512_SC you need do following:

 

To enable the TWR-SER RS232 interface uncomment

#define SERIAL_CARD

and comment

//#define OSJTAG 

in the KINETIS512_SC_1.4\src\platforms\k40_tower.h file.

 

Best regards.

0 Kudos
Reply