Starting out with the K40 and TWR-LCD

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

Starting out with the K40 and TWR-LCD

8,902 次查看
SeanMichael
Contributor II

So I am fairly new to developing programs with the Tower System in general, but I have done quite a bit of work on the Freescale HCS12 microprocessor.  Anyways, I was hoping for a little bit of help.  I have been doing quite a lot of research lately, to figure out exactly how I have to go about programming the LCD Screen.  I still do not have any clue.  I want to control it through the K40, as well as have the K40 control one or two other peripheral boards, such as the TWR-SER board.  I was wondering if anybody could possibly point me in the proper direction, for the TWR-LCD.  That is my first goal to accomplish along the way of this project.  I really haven't found any documentation to tell me how to integrate the K40 and the TWR-LCD into a single project.  So I am currently chasing my tail on this one.  Any help would be very much appreciated. 

标记 (2)
28 回复数

1,559 次查看
SeanMichael
Contributor II

So I tried to debug the K60's Quickstart project, and I was successful.  Which leads me to believe that there is some kind of error in the K60's debugger files in the EGUI demo project, for mqx 3.7.  However, I am only a novice, so I am hoping for somebody who knows the K60 alot better then I do, to confirm or deny these accusations.

0 项奖励
回复

1,559 次查看
SeanMichael
Contributor II

Ok so I switched the the K60x512, because we had an extra one in the building.  Also, I was reading the AN4452, which seems targetted toward the K60.  So I decided to give it a try.  The program compiles and all, however when I click debug, and wait for everything to load, I get an error. 68-Capture.PNGThis one to be exact.   I am not quite sure where this problem came from, and how to fix it.  I googled it, and didn't really find much.  I am going to give it a second try after writing this.  So I was hoping one of you guys would happen to know what is causing this error.  Do I need to update something, re install firmware, am I missing a jumper, or what....  

What I did once I opened the K60 out of the brand new plastic packaging, was plug both the TWR-SER and the K60 into the computer, which then I used the P&E Firmware updater to flash the firmware on the K60 to the newest one out there. I made sure to remove the jumper from J10/JM60 the boatloader jumper, and then I made sure that I could move my mouse with the pre-installed quick start demo.  played with the capacitive touch buttons, and put the TWR-LCD onto the primary side of the Tower Elevators.  Which when I hit debug, to run the K60 eGUI project with mqx 3.7.  I have a usb plugged into the K60, and the TWR-SER.   Hmm... lets see.  Switch 5 on the TWR-LCD are all on, and my dips from switch 1 are as follows.  1 off, 2 on, 3 on, 4 on, 5 on, 6 on, 7 on, 8 off. which leaves me with a white screen.  Other then that, I haven't moved any jumpers at all on either the k60 or the TWR-SER. 

Hopefully there is enough information to figure out what is going wrong, and thanks for the help by the way. 

0 项奖励
回复

1,559 次查看
admin
Specialist II

What is the path of the demo project you are trying to open?  Is that path read/write able?

I would copy the entire project you are trying to use to a folder that you have read/write permissions on.  You'll have to change some links inside the project, but that should eliminate the particular issue you are having. 

0 项奖励
回复

1,559 次查看
SeanMichael
Contributor II

So I have a basic question about the installation of Codwarrior 10.1.   I am working in my school using CW10.1  and it is installed on C:\Program Files\Freescale\.... directory.  I did not install it, our ITS did.  Anyways, While I was installing MQX 3.7.  I know it gave me a warning, saying that I should make a folder on the C Drive itself, to avoid errors with read only files.  So I did, it is installed under C:\Freescale\Freescale MQX 3.7.....  The reason I am asking, is because i get a make error.  It tells me that it can not locate a source file, for the EGUI demo, for the k40x256.  The file that it is looking for is suppose to be on the C:/Program Files\Freescale\CW10_1.....  Also, when I load in the demo, I have to right click on the project, and click on Edit Linked Resources,  to change the MQX Directory.  It is default set to look at the C:\Program Files\Freescale\Freescale MQX 3.7, and I simply change it to C:\Freescale\Freescale MQX 3.7, which eliminates a quite a few errors.  When I am finished doing that, and I click Ok to exit the entire properties pop up page.  I get another error.  the error says as follows:   Problem Occurred   File\CW_10_1\.project is read-only.  As of right now, I am think that this might be due to Codewarrior 10.1 being installed under Program Files on the C Drive.  However, that is only speculation, and I am hoping somebody here can either confirm or deny this. 

0 项奖励
回复

1,559 次查看
ignisuti1z
Contributor I

I'm having the same problem. How do I get started programming the Tower kit using CW 10.1?

0 项奖励
回复

1,559 次查看
admin
Specialist II
0 项奖励
回复

1,559 次查看
SeanMichael
Contributor II

Thanks, I did have all those files downloaded, but I never did figure it out how to actually get it all opened into CW 10.1 until today.  So the tip was helpful, it got me looking in the proper location.  Now I can start diving into it, and figure out what to do, to program the K40/TWRLCD.

0 项奖励
回复

1,559 次查看
LuisCasado
NXP Employee
NXP Employee
Hello, You can use eGUI library. It includes an example for woking with TWR-K40 and TWR-LCD. www.freescale.com/egui Best Regards, luis
0 项奖励
回复