TWR-K60N512-KIT demo for CW 10.1 (USB - CDC class and UART terminal, GLCD, SD card - SDHC, bitmap file to LCD, accelerometer and touch-sense)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

TWR-K60N512-KIT demo for CW 10.1 (USB - CDC class and UART terminal, GLCD, SD card - SDHC, bitmap file to LCD, accelerometer and touch-sense)

2,746 次查看
gustavod
Contributor III

Hi everyone,

 

It is with great pleasure thatI we would like to present our second demo for Freescale Kinetis microcontrollers. We intended to make a functional demo with TWR-K60N512-KIT and TWR-LCD for Codewarrior 10.1 IDE. Such demo include an UART and USB terminal, graphic LCD routines (eGui), SDHC driver (SD card access), print bitmap files into LCD, LCD touch screen, accelerometer and touch-sense.
The code is implemented with our RTOS (BRTOS), but the drivers can be used in bare metal projects.
Try our demo in your tower kit. All routines are free and open-source:

 

http://code.google.com/p/brtos/downloads/list

http://brtos.googlecode.com/files/BRTOS%201.66%20Kinetis%20-%20USB%20-%20LCD%20-%20Bmp%20-%20SD%20ca...

 

Best regards,

Gustavo

0 项奖励
回复
9 回复数

1,514 次查看
gustavod
Contributor III

I forgot to mention two things:

1. The Write protect pin of the SD card is connected to the LCD reset pin. Therefore, in order to use LCD and SD card together it is necessary to turn on the SD card write protect switch. I make the code ignore this write protect pin, so its possible to write in the SD card.

 

2. The bitmap file support is just for 8 bits (RGB 3-3-2) and 16 bits (RGB 5-6-5) bmp files. I used gimp for save files in such format.

 

Best regards,

Gustavo

0 项奖励
回复

1,514 次查看
AlexGiov
Contributor II

Hi gustavo,

 

I'm new to develop with freescale, witch terminal can I use to try your examples?

 

Alex

0 项奖励
回复

1,514 次查看
gustavod
Contributor III

 

In the post below there is an image of how it should looks like:


https://brtosblog.wordpress.com/2011/06/23/tocando-arquivos-wav-no-kwikstik/

0 项奖励
回复

1,514 次查看
AlexGiov
Contributor II

Thank you Gustavo,

I need some help again, I've some questions...

how do I configure the serial port (baud, parity,ecc...)?
Is there a reference site where I can find a user guide to your demo?
I've only the tower without LCD, could I use your demo without lcd?

thank you very much for your help...

Alex

0 项奖励
回复

1,514 次查看
gustavod
Contributor III

Hi Alex,
You should configure the serial port to the right COMM and:

Baud: 115200

Data bits: 8

Stop bits: 1

Parity: None

Flow control: None


You can find the comm information trough Windows device manager ou trough this application:

http://www.digi.com/support/productdetl.jsp?pid=3352&osvid=57&s=316&tp=5&tp2=0


There is no manual to the demo, but the terminal commands are pretty easy to understand. You can find some help typing help in the terminal.

 

Best regards,

Gustavo

0 项奖励
回复

1,514 次查看
AlexGiov
Contributor II

Hi Gustavo,

thank for your help.
But I'm not able to execute or debug your work. I can compile the project and load it in ram.
But when the debug session starts it's pointed to the following line in the file MCUint.c (and not at the start of the program (main)!)
PE_ISR (isr_default)
{
   / * Write your interrupt code here ... * /

}
/ * End of isr_default * /

trying to continue running the debugger gets stuck at that point.

I've board revision D without TWR-LCD. (can I work without LCD?)

thank you.

0 项奖励
回复

1,514 次查看
gustavod
Contributor III

Hi Alex,

 

I've never compile the code to RAM. This demo code is intend to be build for internal flash, not for ram.

You can disable the LCD task by commenting this line in main.c:

 

if(InstallTask(&Task_GLCD,"GLCD Handler",768,3) != OK)

{

// Oh Oh// Não deveria entrar aqui

!!!while(1){};

};

 

Best regards,

Gustavo

0 项奖励
回复

1,514 次查看
AlexGiov
Contributor II

Hello gustavo

which interface you use to display on the TWR-LCD?
I need to drive a LCD display with out frame buffer and display controller (a glass display) directly from K60. Here's an example pic: http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en554992
Have you same suggestions or code example abuot this? where can i find same help?

 

best regards,

Alex

0 项奖励
回复

1,514 次查看
gustavod
Contributor III

Hi Alex,

 

There are a lot of terminal applications. I would like to suggest you the terminal "putty". It can be download here:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

 

Best regards,

Gustavo

0 项奖励
回复