RobG 1,892 Posted September 20, 2013 Author Share Posted September 20, 2013 I checked again and it works on Tiva and Stellaris boards. Can you attach main.c to your previous post? Quote Link to post Share on other sites
RobG 1,892 Posted October 8, 2013 Author Share Posted October 8, 2013 Draw TI Logo function const u_char ti1[10] = { 94, 36, 109, 36, 97, 92, 82, 92, 94, 36 }; const u_char ti2[82] = { 0, 58, 41, 58, 41, 0, 80, 0, 80, 25, 88, 28, 84, 47, 72, 47, 68, 65, 80, 65, 76, 84, 75, 95, 76, 103, 82, 110, 94, 112, 110, 107, 115, 93, 106, 93, 104, 90, 110, 65, 122, 65, 126, 47, 114, 47, 118, 29, 148, 32, 148, 54, 156, 65, 154, 95, 130, 106, 116, 120, 111, 134, 114, 149, 98, 150, 80, 138, 62, 104, 54, 97, 46, 99, 38, 106, 30, 104, 20, 88, 0, 58 }; /////////////////////////// // TI Logo /////////////////////////// void drawTILogo(u_int x, u_int y, u_int color) { u_char sx = 0; u_char sy = 0; u_int ax = 0; u_int ay = 0; setColor(color); drawCircle(105 + x, 23 + y, 8); u_char i = 0; sx = ti1[i++] + x; sy = ti1[i++] + y; while (i < 10) { ax = ti1[i++] + x; ay = ti1[i++] + y; drawLine(sx, sy, ax, ay); sx = ax; sy = ay; } i = 0; sx = ti2[i++] + x; sy = ti2[i++] + y; while (i < 82) { ax = ti2[i++] + x; ay = ti2[i++] + y; drawLine(sx, sy, ax, ay); sx = ax; sy = ay; } } Quote Link to post Share on other sites
olajideolaolorun 0 Posted November 18, 2013 Share Posted November 18, 2013 How can i run this in IAR. Using this for a project for school and teacher only wants IAR programs in assembly. The sample program that is. Excuse my n0obness. Quote Link to post Share on other sites
RobG 1,892 Posted November 18, 2013 Author Share Posted November 18, 2013 You could build it in CCS and then cleanup and copy asm. Quote Link to post Share on other sites
olajideolaolorun 0 Posted November 20, 2013 Share Posted November 20, 2013 So my school uses IAR and i get a "Fatal Error[e89]: Too much object code produced (more than 0x1000 bytes) for this package" error, which i googled and has to do with size. Is there a way to shrink the size? Quote Link to post Share on other sites
RobG 1,892 Posted November 20, 2013 Author Share Posted November 20, 2013 Yes, you can remove some of the fonts to reduce the size. Quote Link to post Share on other sites
olajideolaolorun 0 Posted November 20, 2013 Share Posted November 20, 2013 Is there a simple code to display just hello. Just to see if it works? Quote Link to post Share on other sites
olajideolaolorun 0 Posted November 20, 2013 Share Posted November 20, 2013 Removed all the fonts and i still get the same error. :/ Quote Link to post Share on other sites
RobG 1,892 Posted November 20, 2013 Author Share Posted November 20, 2013 Which display do you have and which LaunchPad? Quote Link to post Share on other sites
olajideolaolorun 0 Posted November 21, 2013 Share Posted November 21, 2013 I have this https://www.tindie.com/products/RobG/color-lcd-booster-pack-320x240-with-microsd-card-socket/ v2. and MSP430G2553 Quote Link to post Share on other sites
RobG 1,892 Posted November 21, 2013 Author Share Posted November 21, 2013 OK, download ugl16, then open config.h, and make sure all boards except #define G2553_TI are commented out. Quote Link to post Share on other sites
olajideolaolorun 0 Posted November 21, 2013 Share Posted November 21, 2013 I had to install the IAR IDE at home with the 30 day evaluation not kickstart to get it to work. One last no0b/student question. If i wanted to generate a picture to display, how would i do that, kind of like how you have the TI logo, but i want to make it a real random picture. Thanks a lot! Quote Link to post Share on other sites
tranduythai 1 Posted November 23, 2013 Share Posted November 23, 2013 I have lcd http://www.elecfreaks.com/wiki/index.php?title=2.2S%22_TFT_LCD:_TFT01-2.2S#TFT01_Family but i use RobG code dont display anything. I use MSP430G2553 laughpad. Connect pin as file config CCS compile well. please help Quote Link to post Share on other sites
RobG 1,892 Posted November 23, 2013 Author Share Posted November 23, 2013 Try connecting LCD's RST pin to LaunchPad's Px.x and reset LCD in software before configuring it. Quote Link to post Share on other sites
tranduythai 1 Posted November 23, 2013 Share Posted November 23, 2013 May be, my Laughpad has problem SPI, i use Stellaris laughpad to control TFT 2'2 with Mikro C ARM, thanks ROGs alot 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.