LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

lm3s8962 : screen and microsd

Hello,

 

I'm a French student and I need your help for my project.

Actually I'm using labview ARM in order to develop my software in LM3S8962.

Every worked well since this problem : In fact, I can't use both screen & microSD in the same time.

 

Simply, I need to write a text in my microSD, then display it on screen.

If I don't display it on screen but on my VI interface, it's work well. But when I need to display it on OLED onboard it doesn't work anymore...

 

I think it's because of same SPI for screen & microSD ? But I really don't know how to chip select between screen & microSD.

 

Can you help me to find a solution ?

 

Thanks by advance,

 

Julien V.

0 Kudos
Message 1 of 13
(8,232 Views)

Hi.

On the LM3S8962 dev board GPIO PG0 is CARDCSn -> active on logic '0', and GPIO PA3 is OLEDCSn, also active-low. You can incorporate this logic into your application using EIO nodes for PA3 and PG0. I will look into it more in a couple of hours and I`ll be back with another post.

Paul 

0 Kudos
Message 2 of 13
(8,219 Views)

Thanks for your help 🙂 

 

Actually I use this VI :

 

But it doesn't work.

test.png

0 Kudos
Message 3 of 13
(8,208 Views)

1st thing I notice is that you are not using the chip select signals properly. CS for SDcard operation should be G0 false and A3 true; reverse for OLED operation.

2nd I don`t think NI`s file handling utilities can be used directly like that for the SDcard filesystem. It would be great if they did work, someone from NI support please enlighten us. I belive you should develop your own VIs for SPI communication as per the SDcard's specific communication commands/protocol.

 

0 Kudos
Message 4 of 13
(8,203 Views)

Yes, it work simply like that - at least for the microSD part.

If I don't use the OLED screen, the file is written properly.

I have checked the file with the microSD player on my PC.

0 Kudos
Message 5 of 13
(8,199 Views)

Let`s find a way to communicate easier ... my skype/yahoo/googletalk ID is harfaspaul. Please add me to your contact list. I am sure we can solve this SPI problem.

Paul 

0 Kudos
Message 6 of 13
(8,194 Views)
Sorry, I can't use software communication in my office.
0 Kudos
Message 7 of 13
(8,190 Views)

Any luck with the chipselect signals? I'm interested in this too, please post an update when you have some time.

Paul 

0 Kudos
Message 8 of 13
(8,159 Views)

Hello,

 

I tried many many thing, but I haven't managed to use together OLED Screen & SD.

 

Have you managed to do something ?

 

Best regards

 

Julien V.

0 Kudos
Message 9 of 13
(8,135 Views)

Hi.

No, I haven't tried it yet, I was busy with another project. If possible, please post your VIs here, so I don`t have to reprouce the code.

Also, as I said above, let's find a way to communicate through an IM program as yahoo, skype, googletalk ... 

0 Kudos
Message 10 of 13
(8,133 Views)