04-18-2012 08:38 AM - edited 04-18-2012 08:47 AM
Gday all,
Just bought a Luminary Micro LM3S8962 evaluation board and was hoping to make some programs in Labview and download/run them, as I have read you can do.
Ive installed Labview 2011 with the 'Embedded Module for ARM Microcontrollers., with Keil uVision 4.
However, whenever I attempt to build a project, whether its one I quickly made, or an example, during the build phase it comes up with the following error:
[9:37:41 PM] Status: Error
Build target 'LabVIEW'
compiling RTX_Config.c...
C:\Keil\ARM\RV31\INC\RTX_lib.c(183): error: #29: expected an expression
compiling Untitled_ARM.c...
Target not created
Status: Build failed.
I am somewhat new to this, and I have very little idea what the above error means, nor how I can fix it.
Can anyone help!
I should add that the version is Keil uVision4 4.13a.
04-19-2012 10:14 AM - edited 04-19-2012 10:15 AM
When you installed the Embedded Module for ARM, did you select the LM3S8962 drivers for install as well? To double check, you can go into your Windows Control Panel >> Programs and Features >> National Instruments Software >> Uninstall/Change.
In that list, find NI LabVIEW 2011 Embeeded Module for ARM, select it, and click "Modify." This should re-launch the installer and you can review the components you chose to select. Did you choose to select the Luminary Micro drivers from the list?
04-19-2012 05:42 PM
Kyle,
Just did what you mentioned and the box during the installer is unchecked for the Luminary Driver.
However, when I check it and continue installation, it fails.
According to the NI website, to get around that you install the drivers directly from the evaluation CD.
But it turns out the drivers installed already are up to date, with Stellaris relevant versions of the drivers....
But still no solution to the problem.
04-20-2012 07:30 PM
If you open up the Windows device manager, what does the Luminary Micro device look like in that list?
Additionally, are you able to open Keil uVision from your LabVIEW project? In what stage in the build does this error message come up?
04-20-2012 11:35 PM
In Device Manager, it lists the Luminary device as the following:
Under USB:- Stellaris Evaluation Board A
- Stellaris Evaluation Board B
Under Ports:- Stellaris Virtual Com Port
I can open uVision from Labview.
Its generates the C-code, then a box pops up with 5 lights, and it seems to be compiling it (uVision Status: Build step 1 of 3). Then Fails. Recently it has been giving me this in the output of that box.
----
[12:30:28 PM] Status: Error
Build target 'LabVIEW'
compiling RTX_Config.c...
C:\Keil\ARM\RV31\Inc\RTX_lib.c(183): error: #29: expected an expression
compiling File_Config.c...
compiling Retarget.c...
compiling TargetInit.c...
C:\Keil\ARM\Inc\Luminary\LM3Sxxxx.H(32): error: #5: cannot open source input file "inc/hw_adc.h": No such file or directory
compiling ARM_Serial.c...
compiling EKLM3S8962_Display.c...
compiling LM3S_EMAC.c...
compiling ARM_I2C.c...
C:\Keil\ARM\Inc\Luminary\LM3Sxxxx.h(32): error: #5: cannot open source input file "inc/hw_adc.h": No such file or directory
compiling ARM_SPI.c...
C:\Keil\ARM\Inc\Luminary\LM3Sxxxx.h(32): error: #5: cannot open source input file "inc/hw_adc.h": No such file or directory
compiling SPI_LM3S8962.c...
C:\Keil\ARM\Inc\Luminary\LM3Sxxxx.H(32): error: #5: cannot open source input file "inc/hw_adc.h": No such file or directory
compiling ARM_Periph_Power.c...
compiling LVCGenIntInit.c...
compiling Blinky.c...
compiling lvEmbeddedMain.c...
compiling Headless.c...
compiling PosixFiles.c...
compiling CCGSemaphore_rtx.c...
compiling CCGStrSupport_rtx.c...
compiling CCGTimeSupport_rtx.c...
compiling LVCritSect_rtx.c...
compiling LVEvent_rtx.c...
compiling LVNBOps_rtx.c...
compiling LVThreads_rtx.c...
compiling OEM_LVISR_rtx.c...
compiling PlatformSerial_rtx.c...
compiling ARMCLib_rtx.c...
compiling LVInit_rtx.c...
compiling SWI_rtx.c...
compiling ProfileSupport_rtx.c...
compiling CCGArrSupport.c...
compiling CCGArrSupport2.c...
compiling CCGArrSupport3.c...
compiling CCGClusterSupport.c...
compiling CCGCmplxSupport.c...
compiling CCGDVRSupport.c...
compiling CCGEnumSupport.c...
compiling CCGErrorSupport.c...
compiling CCGFltSupport.c...
compiling CCGFXPSupport.c...
compiling CCGIntSupport.c...
compiling CCGNotifier.c...
compiling CCGQueue.c...
compiling CCGRendezvous.c...
compiling CCGSemaphore.c...
compiling CCGStrSupport.c...
compiling CCGTimeSupport.c...
compiling CCGTokString.c...
compiling CCGUDClassSupport.c...
compiling CCGVariant.c...
compiling CCGXMLSupport.c...
compiling ExecStack.c...
compiling LVBlockDiagram.c...
compiling LVCGenRTInit.c...
compiling LVCGenScratchPad.c...
compiling LVContext.c...
compiling LVHeap.c...
compiling LVISR.c...
compiling LVTLExtSource.c...
compiling LVTdp.c...
compiling MemCheck.c...
compiling NumText.c...
compiling ObjList.c...
compiling ViLib.c...
compiling nbemptybin.c...
compiling nbfifo.c...
compiling nbfifo_inst.c...
compiling nbitemtable.c...
compiling occur.c...
compiling reentrant.c...
compiling rtmath.c...
compiling uScheduler.c...
compiling BgDebugTask.c...
compiling CCGAppRefSupport.c...
compiling CCGBtMgr.c...
compiling CCGBtSupport.c...
compiling CCGByteStreamFileSupport.c...
compiling CCGDatalogSupport.c...
compiling CCGFileSupport.c...
compiling CCGFileSupport2.c...
compiling CCGIrDASupport.c...
compiling CCGNetConnRefNum.c...
compiling CCGSerial.c...
compiling CCGUUID.c...
compiling CCGVIRefSupport.c...
compiling Debug.c...
compiling DebugComm.c...
compiling FileRefNum.c...
compiling LVPhoneSupport.c...
compiling LVSMSSupport.c...
compiling OCDICheckPoint.c...
compiling SerialMessaging.c...
compiling crc.c...
compiling CCGChartGraphSupp.c...
compiling LVArrayControl.c...
compiling LVBoolean.c...
compiling LVChart.c...
compiling LVClusterControl.c...
compiling LVEnumCtl.c...
compiling LVFrontPanel.c...
compiling LVGraph.c...
compiling LVListbox.c...
compiling LVNumeric.c...
compiling LVRing.c...
compiling LVString.c...
compiling LVTab.c...
compiling LVTable.c...
compiling LVTimestamp.c...
compiling LVTree.c...
compiling Pict.c...
compiling arrresize.c...
compiling ARM_I2CWrapper.c...
compiling ARM_SPIWrapper.c...
compiling RLARM_Net_Config.c...
compiling RLARM_TCPMessaging.c...
compiling RLARM_TCPWrapper.c...
compiling RLARM_CCGTcpUdpSupport.c...
compiling RLARM_CCGNetConnSupport.c...
compiling RLARM_LVNetworkVarSupport.c...
compiling RLARM_CAN_Wrapper.c...
Target not created
Status: Build failed.
-----
Regards
04-26-2012 01:26 AM
Can anyone help?
I need to have this working for my University final year Thesis.
Its very important I find a solution.
Any help appreciated.
Regards
04-26-2012 06:43 PM
Have you installed the uVision outside the LabVIEW for ARM installer? The uVision you did is 4.13a and with LabVIEW come the 4.03q and RealView 4.11. I think you can't install another version of uVision, only the version of the LabVIEW for ARM package. I recommend you to uninstall LabVIEW and uVision, clean the Windows register with CCleaner or another program and reinstall using only the package of LabVIEW for ARM 2011. After install the LabVIEW for ARM 2011, the installer automatically initiates the uVision installer.
06-11-2012 09:28 AM
Hey,
I reinstalled as you suggested. It seems to build alright then it fails and gives me this error now....
[10:26:23 PM] Status: Error
No ULINK Device found
Error: Flash Download failed - Target DLL has been cancelled
Detail: [UVSC_PRJ_FLASH_DOWNLOAD, MSG: 0x100A, STATUS: 0x1] (1)
Status: FLASH download error.
Regards
06-11-2012 09:47 AM
Your first problem was that the header can't find the headers included.
when you open that file (lm3sxxxx.h) it says:
set INC path to "Stellarisware library folder" "./Keil/ARM/RV31/LIB/Luminary"
if you add that map (in your Keil source path) to the C includes in project options in uVision, it will compile. (I had this error also using LV for ARM 2010 and a newer KEIL uVision).
the error you have now is that uVision can't find a Ulink debugger.
Do you have plugged in a ULINK2 debugger?
in project options under the tab debugger you can set the debugger and in the settings you can see if it sees an ARM..
06-11-2012 10:18 AM
Thanks for your reply. I can download a program from a C+ example on uVision, but I cant download any examples for Labview.
So I decided to see if there were any differences in the uVision settings between the two and found that the non-labview example has the debugger set to 'Stellaris ICDI'.
So I changed the Labview settings and now get these errors:
[11:01:37 PM] Status: Error
Build target 'LabVIEW'
compiling RTX_Config.c...
compiling File_Config.c...
compiling Retarget.c...
compiling TargetInit.c...
compiling ARM_Serial.c...
compiling EKLM3S8962_Display.c...
compiling LM3S_EMAC.c...
compiling ARM_SPI.c...
compiling SPI_LM3S8962.c...
compiling ARM_Periph_Power.c...
compiling LVCGenIntInit.c...
compiling OLED.c...
compiling Configure_Waveform_Chart.c...
compiling Write_to_Waveform_Chart.c...
compiling lvEmbeddedMain.c...
compiling Headless.c...
compiling PosixFiles.c...
compiling CCGSemaphore_rtx.c...
compiling CCGStrSupport_rtx.c...
compiling CCGTimeSupport_rtx.c...
compiling LVCritSect_rtx.c...
compiling LVEvent_rtx.c...
compiling LVNBOps_rtx.c...
compiling LVThreads_rtx.c...
compiling OEM_LVISR_rtx.c...
compiling PlatformSerial_rtx.c...
compiling ARMCLib_rtx.c...
compiling LVInit_rtx.c...
compiling SWI_rtx.c...
compiling ProfileSupport_rtx.c...
compiling CCGArrSupport.c...
compiling CCGArrSupport2.c...
compiling CCGArrSupport3.c...
compiling CCGClusterSupport.c...
compiling CCGCmplxSupport.c...
compiling CCGDVRSupport.c...
compiling CCGEnumSupport.c...
compiling CCGErrorSupport.c...
compiling CCGFltSupport.c...
compiling CCGFXPSupport.c...
compiling CCGIntSupport.c...
compiling CCGNotifier.c...
compiling CCGQueue.c...
compiling CCGRendezvous.c...
compiling CCGSemaphore.c...
compiling CCGStrSupport.c...
compiling CCGTimeSupport.c...
compiling CCGTokString.c...
compiling CCGUDClassSupport.c...
compiling CCGVariant.c...
compiling CCGXMLSupport.c...
compiling ExecStack.c...
compiling LVBlockDiagram.c...
compiling LVCGenRTInit.c...
compiling LVCGenScratchPad.c...
compiling LVContext.c...
compiling LVHeap.c...
compiling LVISR.c...
compiling LVTLExtSource.c...
compiling LVTdp.c...
compiling MemCheck.c...
compiling NumText.c...
compiling ObjList.c...
compiling ViLib.c...
compiling nbemptybin.c...
compiling nbfifo.c...
compiling nbfifo_inst.c...
compiling nbitemtable.c...
compiling occur.c...
compiling reentrant.c...
compiling rtmath.c...
compiling uScheduler.c...
compiling BgDebugTask.c...
compiling CCGAppRefSupport.c...
compiling CCGBtMgr.c...
compiling CCGBtSupport.c...
compiling CCGByteStreamFileSupport.c...
compiling CCGDatalogSupport.c...
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGDatalogSupport.c(23): error: #5: cannot open source input file "CCGFileSupportPriv.h": No such file or directory
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGDatalogSupport.c: #include "CCGFileSupportPriv.h"
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGDatalogSupport.c: ^
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGDatalogSupport.c: C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGDatalogSupport.c: 0 warnings, 1 error
compiling CCGFileSupport.c...
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGFileSupport.c(22): error: #5: cannot open source input file "CCGFileSupportPriv.h": No such file or directory
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGFileSupport.c: #include "CCGFileSupportPriv.h"
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGFileSupport.c: ^
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGFileSupport.c: C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGFileSupport.c: 0 warnings, 1 error
compiling CCGFileSupport2.c...
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGFileSupport2.c(22): error: #5: cannot open source input file "CCGFileSupportPriv.h": No such file or directory
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGFileSupport2.c: #include "CCGFileSupportPriv.h"
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGFileSupport2.c: ^
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGFileSupport2.c: C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\comms\CCGFileSupport2.c: 0 warnings, 1 error
compiling CCGIrDASupport.c...
compiling CCGNetConnRefNum.c...
compiling CCGSerial.c...
compiling CCGUUID.c...
compiling CCGVIRefSupport.c...
compiling Debug.c...
compiling DebugComm.c...
compiling FileRefNum.c...
compiling LVPhoneSupport.c...
compiling LVSMSSupport.c...
compiling OCDICheckPoint.c...
compiling SerialMessaging.c...
compiling crc.c...
compiling CCGChartGraphSupp.c...
compiling LVArrayControl.c...
compiling LVBoolean.c...
compiling LVChart.c...
compiling LVClusterControl.c...
compiling LVEnumCtl.c...
compiling LVFrontPanel.c...
compiling LVGraph.c...
compiling LVListbox.c...
compiling LVNumeric.c...
compiling LVRing.c...
compiling LVString.c...
compiling LVTab.c...
compiling LVTable.c...
compiling LVTimestamp.c...
compiling LVTree.c...
compiling Pict.c...
compiling arrresize.c...
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\analysis\development\include\platdefines.h(321): error: #35: #error directive:
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\analysis\development\include\platdefines.h: #error
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\analysis\development\include\platdefines.h: ^
C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\analysis\development\include\platdefines.h: C:\Program Files (x86)\National Instruments\LabVIEW 2011\CCodeGen\libsrc\lvanalysis\arrresize.c: 0 warnings, 1 error
compiling ARM_I2CWrapper.c...
compiling ARM_SPIWrapper.c...
compiling RLARM_Net_Config.c...
compiling RLARM_TCPMessaging.c...
compiling RLARM_TCPWrapper.c...
compiling RLARM_CCGTcpUdpSupport.c...
compiling RLARM_CCGNetConnSupport.c...
compiling RLARM_LVNetworkVarSupport.c...
compiling RLARM_CAN_Wrapper.c...
Target not created
Status: Build failed.
What do you mean by a ULINK2 debugger? Shouldnt this be installed with the programs and labview?
Seeing as this eval board is the one advertised by NI, wouldnt they make it more straight forward to use?