LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

lm3s8962 run problem

I have Lm3s8962 board. I complete a Labview program and I compile it. After compilation, I click run arrow. Everything is OK. Labview download the code to the board. At this point, I have two problems.

1-Labview front panel doesn't become run mode. But in Labview status window shows all items in green

2-The code downloaded to Lm3s8962 board halts suddenly. It works about 20 or 30 seconds. Later it stops. I can't understand what the problem is.

 

I downloaded normal Keil project, it worked fine. It never stops. I use Labview 2011. Do you have any suggestion? I am looking forward to get your contributions. Thank you.

0 Kudos
Message 1 of 23
(7,309 Views)

By the way I have MCB2300 board. When I click run arrow, it works fine. Labview becomes run mode. The program works forever.

0 Kudos
Message 2 of 23
(7,304 Views)

I have Lm3s8962 board. I complete a Labview program and I compile it. After compilation, I click run arrow. Everything is OK. Labview download the code to the board. At this point, I have two problems.

1-Labview front panel doesn't become run mode. But  Labview status window shows all items in green

2-The code downloaded to Lm3s8962 board halts suddenly. It works about 20 or 30 seconds. Later it stops. I can't understand what the problem is.

 By the way I have MCB2300 board (another supported ARM board). When I click run arrow, it works fine. Labview becomes run mode. The program works forever.

I downloaded normal Keil project, it worked fine. It never stops. I use Labview 2011. Do you have any suggestion? I am looking forward to get your contributions.  Thank you.

0 Kudos
Message 3 of 23
(7,281 Views)

Hello gaziunal,

Are there any error codes when the code stops working? Are you able to run any of the example programs that are included with LabVIEW? How large is your existing program and is it possibly larger than the microcontrollers memory? Have you activated the Keil uVision software? Have you installed the required Luminary Micro drivers for the LM3S8962? Can you create and run a basic program like the one included in the Getting Started with LabVIEW Embedded Manual

Wear
National Instruments
Product Support Engineer
0 Kudos
Message 4 of 23
(7,276 Views)

Hello Wear,

There are no error codes when stops working. My code is so simple. My Labview code only blinks LED0 during 100ms time interval. I used while loop. That is all. My Keil is activated. I attached the picture of my Keil licence section.I installed Luminary Micro drivers. I used both Ek-lm3s8962 USB port and Ek-lm3s8962 Ulink2 JTAG port. I edited my project accorting to this two ways when I started the project. When I click run arrow, Labview doesn't become Run mode. But the code built and downloaded to board. The codes works about 20 or 30 seconds. I plug out the board and plug in again, same things happens.  I have  MCB2300 board. When I do same things, Labview becomes run mode. It is so surprising trouble. I can't find solution. I need your professional help. I atteched my codes.Thank you.keil.png

Download All
0 Kudos
Message 5 of 23
(7,268 Views)

Hello gaziunal,

Do you have a second LM3S8962 that you can test to rule out any hardware issues with the microcontroller? Also, can you run a vi interactively that does not utilize the I/O nodes in order to verify that you can run code on the device?

Wear
National Instruments
Product Support Engineer
0 Kudos
Message 6 of 23
(7,246 Views)

Hi Wear,

I don't have other Lm3s8962. But the board is working with normal Keil program. It never stops. I don't want to let the board run by interacting with PC. I want to only program my board. I want to implement standalone applications. Labview builds, downloads the codes. But Labview doesn't interact fully. The front panel doesn't become run mode but shows status window. What is problem? It makes me fed up. Please help me as a NI enginneer! Thank you.

0 Kudos
Message 7 of 23
(7,238 Views)

Hi Wear,

Sometimes when I debug my Labview codes, status windows gives
"Error: You cannot allocate memory in ISR VIs. This
error might occur if you use strings, arrays, or
clusters in a non-threaded ISR VI."

I can't understand what that message means?

0 Kudos
Message 8 of 23
(7,237 Views)

I added the labview codes and status window picture. I thought that infinite while loop may be problem. I want to let the code stops . You can see my code and labview status window when labview is debugging.  The result never changes. The codes stops suddenly on the lm3s8962 side Also it gives message which I posted previous message. oledforum.png

Download All
0 Kudos
Message 9 of 23
(7,236 Views)

By the way you can see 0.0, 1.0, 2.0 on OLED screen, sometimes 0,0 .......13.0. The values are change each time when I start the code again. Can you try my code on your LM3s8962 or can you send me simple working codes. There is so little time for breaking the board and throw away to rubbish. Thank you.

0 Kudos
Message 10 of 23
(7,235 Views)