Rickta59 589 Posted February 1, 2013 Share Posted February 1, 2013 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. Quote Link to post Share on other sites
RobG 1,892 Posted February 1, 2013 Author Share Posted February 1, 2013 What? Ha, ha, nice Rickta59. EZR, create new project and make sure you choose the correct processor family and the chip you have. Quote Link to post Share on other sites
bluehash 1,581 Posted February 1, 2013 Share Posted February 1, 2013 He's probably a beginner. EZR, could you open a thread in general. We can guide you from there. Quote Link to post Share on other sites
pcesar12 0 Posted February 6, 2013 Share Posted February 6, 2013 Someone used in Color LCD - Breakout Board (LCD-11062) of SparkFun? https://www.sparkfun.com/products/11062 I had problems to compile and use in this shield! Someone could tell me more informations about use this shield? Thx Quote Link to post Share on other sites
RobG 1,892 Posted February 6, 2013 Author Share Posted February 6, 2013 You should have no problems using that breakout board with my library. Can you provide more details? Quote Link to post Share on other sites
pcesar12 0 Posted February 6, 2013 Share Posted February 6, 2013 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. Quote Link to post Share on other sites
RobG 1,892 Posted February 6, 2013 Author Share Posted February 6, 2013 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. pcesar12 1 Quote Link to post Share on other sites
pcesar12 0 Posted February 6, 2013 Share Posted February 6, 2013 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. Quote Link to post Share on other sites
username 198 Posted February 9, 2013 Share Posted February 9, 2013 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 RobG and bluehash 2 Quote Link to post Share on other sites
EdZackRee 0 Posted February 10, 2013 Share Posted February 10, 2013 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 Quote Link to post Share on other sites
username 198 Posted February 10, 2013 Share Posted February 10, 2013 Hey EdZackRee, You may want to post your issues in a different thread so we don't corrupt this one with content not related to the universal lcd lib. I'm sure other members would have alot more advice for you if you do. Also, try watching this video on how to setup a project: . Quote Link to post Share on other sites
RobG 1,892 Posted February 10, 2013 Author Share Posted February 10, 2013 Wait, which LaunchPad do you have? Stellaris? If yes, then you don't need msp430g2553.h at all, you need different set of files. Quote Link to post Share on other sites
Rickta59 589 Posted February 10, 2013 Share Posted February 10, 2013 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 Quote Link to post Share on other sites
EdZackRee 0 Posted February 13, 2013 Share Posted February 13, 2013 As others so astutely determined, yours truly trying to run code on wrong chip. DOH! Thanks for tolerating a noob. So is there a port of the Lights Out game to Stellaris? Doesn't look like it from browsing the forum and over on Stellarisiti. EZR Quote Link to post Share on other sites
dpharris 13 Posted February 14, 2013 Share Posted February 14, 2013 Stellarisiti seems to have died :-( Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.