LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

failed to initialize Trace32

Solved!
Go to solution

Hello everyone,

 

I've installed a Lauterbach Debug Interface to my laptop, which I am able to use through the Trace32 program which I got with on a CD together with my Lauterbach.

 

I've installed the VI according to the description and now I am trying to create my very first Lauterbach control program, which initialize the HW, produces a handle ID and then terminates the connection, according to the picture below. My issue is that I get the error "failed to initialize Trace32" in the error out box, which obviously is a clear indicator that my program fails to do what it is supposed to do. I tried to google this problem, but could not find a solution anywhere.

 

Can someone help me with this issue, as it is a quite irritating problem.

 

Best Regards,

Magnus

 

Trace32_LV_Failed_Connection.jpg

0 Kudos
Message 1 of 13
(12,177 Views)

Hi Magnus,

 

Since the error is generated by the Lauterbach plugin I would recommend contacting the Lauterbach support team. Please find a list of Lauterbach representatives in the link below:

http://www2.lauterbach.com/doc/intlabview.pdf

 

Best regards,

Robert

Robert P-F
Applications Engineer
National Instruments
0 Kudos
Message 2 of 13
(12,062 Views)

Hi Magnus,

 

I am facing the same issue at my end. Are you able to resolve it now ?

If you could give some pointers as in to debug in which direction, it would be really helpful!

Also, what do you enter in the NODE & DEVICE fields of the Trace32_init.vi ?

 

Thanks  🙂

0 Kudos
Message 3 of 13
(12,000 Views)

Hi depi,

 

Yes, as a matter of fact I can perhaps help you. The whole point of the matter is not only to start the T32Start Window and enter the values from the pdf provided by Lauterbach. You really need to start the Debugger by pressing the start button in the frame to the right, that will enable a connection between the computer and the HW, which Labview can use.

 

Not enough (click start in the right frame):

T32Start.png

 

This is what was required to be able to control the HW from Labview:

Trace32 ARM.png

 

Not the best solution I've ever seen, but if this window is running in the background and I am able to control the HW from LV, then it is a small price to pay. 🙂

 

Good luck!

Message 4 of 13
(11,994 Views)

Hi Magnus,

 

Thanks for the clue. It worked 🙂

Now I am planning to write batch file to open the T32 application and call it from labview before initialisation!

 

Thanks again,

depi

0 Kudos
Message 5 of 13
(11,963 Views)
Solution
Accepted by topic author Magnus_Strahl

Hi Depi,

 

Great to hear that your application worked!

 

I've been able to write a small program which automatically opens the Trace-debugger and initializes the HW, so that the user doesn't have to go through the trouble of making sure a specific program is running on the computer. I would say that this code is what I was looking for when I posted my original question.

 

T32_Init.jpg

Message 6 of 13
(11,957 Views)

absolutely bang on Magnus! 🙂

Thanks again!

0 Kudos
Message 7 of 13
(11,931 Views)

can you  help me plz, i'm searching Virtual Instruments for TRACE32.zip but i don't found it 😞 .

0 Kudos
Message 8 of 13
(11,838 Views)

Hi embeddedsys,

 

If you have T32 installed, Try looking under this path

 

"C:\T32\demo\env\labview"

 

Cheers,

Depi

0 Kudos
Message 9 of 13
(11,826 Views)

Have you tried reading variable values from an application running in controller? I have kept Trace32 Power view open and then trying to read variable value but I am not able to get the same (it updates variable value only once) and shows data alignment error in Power View Debugger window.

RohitS
0 Kudos
Message 10 of 13
(11,659 Views)