Jump to content
43oh

(Universal) Color LCD graphics library


Recommended Posts

searched and found a copy of the msp430g2553.h file on internet

What?

'Invoking: ARM Compiler' "C:/ti/ccsv5/tools/compiler/arm_5.0.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16

What?

 

Are you trying to compile for an msp430g2553? If so, the compiler will provide the headers, no need to go searching on the internet. You seem to be trying to compile code for an msp430g2553 with an ARM compiler.

Link to post
Share on other sites
  • Replies 127
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

NOTE: Those files are not current as of May 5th 2013. See the first post for the latest. PCF8833 (Nokia 6100) SPFD54124B (Nokia 6085 and 6101) ST7735R (JD-T1800, 1.8" LCD) HX8340B (BTL221722, 2.2" wi

Just FYI. In a couple of weeks, I will be updating this library with the following:   support for HX8340 (2.2" LCD) support for ILI9225 (2.2" LCD with touch panel) landscape/portrait switch most

New versions are here   UPDATE: Sep 3rd 2013 New way to configure dev boards Works with TI's G2 LaunchPad (G2553,) and my G2955, F5172, F5510, F5529 dev boards. Just one line change to switch bet

Posted Images

You should have no problems using that breakout board with my library.

Can you provide more details?

 

 
I think my problem is the same stupidity.
 
what is the sequence of msp430 pins
 
CS
SCK
DIO
RESET
?
 
basic i 
 
change comment line in colorlcd.h
 
#define PCF8833 // use for 6100
 
because i use 6100, and try connect 
 
My problem is that the connection pins think, what is the correct sequence?
 
I'm going to class as soon as you get home testo again with the correct pin this time, if someone pass me the correct course sequence.
 
excuse the inconvenience.
 
 
Link to post
Share on other sites

First, make sure you are selecting the correct driver

// define driver
//
#define PCF8833 // use for 6100
//#define SPFD54124B // use for 6085 and 6101
//#define ST7735R // use for JD-T1800 (1.8")
//#define HX8340B // use for BTL221722 (2.2" without touch)
//#define ILI9225B // 2.2" with touch

 

Then connect the pins as follows:

CS - P1.0
SCK - P1.5
DIO - P1.7
RESET - not using reset, tie it to any available pin on your LaunchPad and add a piece of code to reset your LCD before configuring. Alternatively, you can just tie it to Vcc.
You must also connect Vcc and GND.
Link to post
Share on other sites

 

First, make sure you are selecting the correct driver

// define driver
//
#define PCF8833 // use for 6100
//#define SPFD54124B // use for 6085 and 6101
//#define ST7735R // use for JD-T1800 (1.8")
//#define HX8340B // use for BTL221722 (2.2" without touch)
//#define ILI9225B // 2.2" with touch

 

Then connect the pins as follows:

CS - P1.0
SCK - P1.5
DIO - P1.7
RESET - not using reset, tie it to any available pin on your LaunchPad and add a piece of code to reset your LCD before configuring. Alternatively, you can just tie it to Vcc.
You must also connect Vcc and GND.

 

Building configuration: Nokia6100 - Debug 
Updating build tree... 
colorLCD.c  
Warning[Pe223]: function "_delay_cycles" declared implicitly C:\Users\Cesar Corsico\Dropbox\UFPR 2012-2\TE124\MSP430-cesar\MSP430-cesar\workspace001\Nokia6100\colorLCD.c 804 
main.c  
Warning[Pa050]: non-native end of line sequence detected (this diagnostic is only issued once) C:\Users\Cesar Corsico\Dropbox\UFPR 2012-2\TE124\MSP430-cesar\MSP430-cesar\workspace001\Nokia6100\main.c 1 
Warning[Pe223]: function "_delay_cycles" declared implicitly C:\Users\Cesar Corsico\Dropbox\UFPR 2012-2\TE124\MSP430-cesar\MSP430-cesar\workspace001\Nokia6100\main.c 73 
Warning[Pe223]: function "_bis_SR_register" declared implicitly C:\Users\Cesar Corsico\Dropbox\UFPR 2012-2\TE124\MSP430-cesar\MSP430-cesar\workspace001\Nokia6100\main.c 75 
Warning[Pe223]: function "_delay_cycles" declared implicitly C:\Users\Cesar Corsico\Dropbox\UFPR 2012-2\TE124\MSP430-cesar\MSP430-cesar\workspace001\Nokia6100\main.c 98 
Warning[Pe223]: function "_delay_cycles" declared implicitly C:\Users\Cesar Corsico\Dropbox\UFPR 2012-2\TE124\MSP430-cesar\MSP430-cesar\workspace001\Nokia6100\main.c 115 
Warning[Pe223]: function "_delay_cycles" declared implicitly C:\Users\Cesar Corsico\Dropbox\UFPR 2012-2\TE124\MSP430-cesar\MSP430-cesar\workspace001\Nokia6100\main.c 123 
Warning[Pe223]: function "_delay_cycles" declared implicitly C:\Users\Cesar Corsico\Dropbox\UFPR 2012-2\TE124\MSP430-cesar\MSP430-cesar\workspace001\Nokia6100\main.c 132 
Warning[Pe223]: function "_delay_cycles" declared implicitly C:\Users\Cesar Corsico\Dropbox\UFPR 2012-2\TE124\MSP430-cesar\MSP430-cesar\workspace001\Nokia6100\main.c 155 
memory.c  
Linking 
Error[e46]: Undefined external "_delay_cycles" referred in main ( C:\Users\Cesar Corsico\Dropbox\UFPR 2012-2\TE124\ 
MSP430-cesar\MSP430-cesar\workspace001\Nokia6100\Debug\Obj\main.r43 ) 
Error[e46]: Undefined external "_bis_SR_register" referred in main ( C:\Users\Cesar Corsico\Dropbox\UFPR 2012-2\ 
TE124\MSP430-cesar\MSP430-cesar\workspace001\Nokia6100\Debug\Obj\main.r43 ) 
Error while running Linker 
 
Total number of errors: 2 
Total number of warnings: 9 

 

 

I did the test again and now gave compile error.
I corrected this error by adding lines"_" the error that occurred, he stopped giving the error but still did not work.
He comes to flashing the LCD changing the background color the same color put back later.
Link to post
Share on other sites

FYI for anyone interested in printing images to their LCD display, this tool is super useful --> http://code.google.com/p/lcd-image-converter/ . You can get the output in hex bytes. Consequently, to print a image you simply do

 

    setAddr(0, 0, LCD_WIDTH, LCD_HEIGHT);
    for(i=0;i<byte_array_length;i++)
        writeData(byte_array);

 

Only trick with this is that we got a very small amount of flash size on the MSP430. Not even close to being able to fit a full screen generally. I've ported this lib to a cortex-m3 LPC1769 and have been playing around with it on there where I got 512kb flash size. I'd be nice to get an example up with a msp430 using a SD card and flashing an image to it. Trick with most file system like fatfs is our ram is so tiny =( . One of these days when I get abit more time i'll make it a point to try it. Anyhow, heres using that 2.2" display

 

Cameras taking pics of LCD displays generally doesn't work too well. Looks alot better than the this pic =P

Image i flashed was one I created in highschool and can be seen here: http://www.superiorgamer.deviantart.com/art/The-Empire-s-fleet-84524169

 

image_on_lcd_display.jpg

Link to post
Share on other sites

Ha, ha, nice Rickta59.

EZR, create new project and make sure you choose the correct processor family and the chip you have.

Okay, new guy confusion admitted up front.  The stonings may begin at the end of this blab...

 

I thought I did select the right family.  In CCS, under Properties, select "120" then designate as "LM4F120H5QR".  Using the posted main.c file it calls in Line 1: #include "msp430g2553.h" - however I have no such file anywhere.   It did not load with CCS, searched every way I could think.  Also, the gibberish in the TI Labs, such as Add dir to #include search path (--include_path, -1) in Properties followed by "${PROJECT_ROOT}/../../../.." means explicit information to people with a programming background but nothing to me.  So I get confused and am appreciative of the help here.

 

Went to internet and found "msp430g2553.h", downloaded flat text, figured out I needed to do File/New/Header File, insert text, save with correct name.  But the fun just keeps on coming.  Then CCS cannot find "sysctl.h", "gpio.h", or "inc/hw_types.h."  I assume I've done something wrong with the initial install of CCS, but having to uninstall and reinstall at this point seems pointless since I don't know what I did wrong the first time and so will probably reproduce the error a second time.

 

I work with (but do not write) high level 3D CAD software for Windows - customer support on the actual 4 axis mills that run the code, and see this uninstall/reinstall process so often I wonder how anyone gets anything done.  Very frustrating.

 

Running Win 7 under Boot Camp on MacBook Pro.  So I am guessing the assumptions made by the CCS people who created the install file process did not anticipate Boot Camp and the file routing to the actual required INCLUDE files is fouled up. 

 

So ANY help that can be provided is greatly appreciated.  I am trying to learn plain-Jane C enough to work with embedded applications.  I have a very specific application intended for CAD that should be wonderful if I can conquer my ignorance and illiteracy.

 

Please keep in mind I'm 61 years old, and might have had more career changes and life-resets than most.  Computers were huge monsters when I went to college.  Willing to learn, but can't find anything that starts basic enough to comprehend.

 

Sorry for the length of this - hard to find a place to shut up...

 

EZR

Link to post
Share on other sites

Sorry I didn't mean to scare you off ..

 

 

If you are using the Stellaris launchpad that is using an ARM chip LM4F120H5QR. If you are trying to use code written for the an msp430g2553 ( the chip in the msp430 launchpad ) then that code isn't going to work.

 

#include <msp430g2553.h> ... means the code is written for an msp430 launchpad

 

If you are using the stellaris launchpad you should disregard anything written on this site and join

 

http://forum.stellarisiti.com/

 

-rick

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...