pjacobs4 0 Posted September 12, 2014 Share Posted September 12, 2014 I am using the LCD library and modified it heavily to change the pin numbers to match the SPI output on the CC3200, use SPI1, and included the hardware in the conditional statements in each of the .c and .h files. I am trying to run the basic .ino that comes with the library. I am seeing the serial output updating and finishing the program, but the screen just stays bright white. I also wired using jumper wires as one of the pins moved for SPI. Anyone have any ideas as to where to start. I haven't included the code as it is so many files. I have tried the nightly build as well as the download from Energia.nu. Pete Quote Link to post Share on other sites
energia 484 Posted September 12, 2014 Share Posted September 12, 2014 @@pjacobs4 can you describe a bit more what you mean with SPI1? The CC3200 implementation only has one SPI. With Serial output do you mean the actual UART debug output or the SPI data? Quote Link to post Share on other sites
pjacobs4 0 Posted September 12, 2014 Author Share Posted September 12, 2014 The communication is UART, and I can see the Serial.Print statements as the sketch runs. What I meant by SPI1 was this: SPI.setModule(1); SPI.begin(); I set the port numbers to the following: _pinScreenChipSelect = 18; //2; _pinSerialClock = 7; _pinSerialDataMOSI = 15; _pinSerialDataMISO = 14; _pinDataCommand = 6; _pinTouchChipSelect = (version==1) ? 9 : 10; _pinReset = 11; Quote Link to post Share on other sites
Juanthemaker 0 Posted September 13, 2014 Share Posted September 13, 2014 Hi There, I got a ili9341 display working with the CC3200 ... http://forum.stellarisiti.com/topic/727-energia-library-ili9341-tft-22-port/page-2 Non the less, there is something fundamentally wrong with the way CC3200 SPi librery is handling SPI. If some awesome Advanced Member would implement DMA and FIFO into the SPI library i think we could all utilize the raw communication capabilities in the ARM M4. Check this: http://e2e.ti.com/support/wireless_connectivity/f/968/t/353790.aspx I must admit. This is out of my league. Quote Link to post Share on other sites
pjacobs4 0 Posted September 15, 2014 Author Share Posted September 15, 2014 I got it to work with the LCD library, went back and started from scratch. Quote Link to post Share on other sites
Juanthemaker 0 Posted September 15, 2014 Share Posted September 15, 2014 Nice one... So, how is the speed like ...? Quote Link to post Share on other sites
pjacobs4 0 Posted September 24, 2014 Author Share Posted September 24, 2014 Isn't too bad, seems about the same as one the Tiva 123. I have found that using the sprintf function kills my memory usage and won't compile. I had to write a small custom float to int routine without using malloc to make sure I have enoug memory..... Quote Link to post Share on other sites
energia 484 Posted September 26, 2014 Share Posted September 26, 2014 @@pjacobs4 can you elaborate on the issue you see with "sprintf"? There is plenty of memory on the TivaC. I would however refrain from malloc(). Malloc can cause serious memory fragmentation and eventually there will not be a contiguous block of memory large enough the accommodate the allocation request. Quote Link to post Share on other sites
pjacobs4 0 Posted October 1, 2014 Author Share Posted October 1, 2014 If I comment out all the sprintf commands, the sketch will compile and it is ~87k. If I include just one sprintf command, it won't compile and says it is 23000 bytes over the limit. I am just looking to change a float with one decimal place and wrote a small function that does it one digit at a time. 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.