10-13-2009 08:34 AM
Hello,
I want to be a new user for Labview Embedded 2009, but I have a little problem.
I don't know what I have to do for Labview works with my ARM7, Atmel AT91SAM7A3.
Version Labview : 9.01f1 (32bit)
Version Keil : 3.7
I programmed this one in C cod, but I want to pass in "Labview programmation". If it's possible ...
Thanks for your response !
Bounce
10-13-2009 10:54 AM
10-16-2009 01:57 AM
Hi Bounce
That is not so easy like you think, it is not possible to add easy some other targets in this list, because there are only 3 evaluation boards that are supported "out-of-the-box" - tier 1 targets. You find a list of this targets here :
http://zone.ni.com/devzone/cda/tut/p/id/8078
For all the other chipsets some development work needs to be done in order to "port" the module over to your tier 2 target.
You will find a lot of informations for this issue in this very detailled forum thread:
Where to start with ARM embedded?
http://forums.ni.com/ni/board/message?board.id=170&message.id=404546&requireLogin=False
Kind regards
Beat
NI Germany
10-16-2009 02:21 AM - edited 10-16-2009 02:26 AM
Here can you find a very good tutorial to integrate your specific ARM processor
http://zone.ni.com/devzone/cda/tut/p/id/7152
Kind regards
Beat
NI Germany
10-16-2009 09:04 AM - edited 10-16-2009 09:04 AM
Hi Pix,
Thanks for your time taken.
I followed the link http://zone.ni.com/devzone/cda/tut/p/id/7152
and I move on the following problem :
I do a VI just to test if all is ok, and when I press on the build arrow, the compilator doesn't find the "LPC23xx.h"
[8:45:08 AM] Status: Error
Build target 'LabVIEW'
compiling RTX_Config.c...
..\System\RTX_Config.c(13): error: #5: cannot open source input file "LPC23xx.H": No such file or directory
compiling ARM_Serial.c...
..\Drivers\Serial\ARM_Serial.c(23): error: #5: cannot open source input file "LPC23xx.H": No such file or directory
compiling ARM_RTClock.c...
..\Drivers\RTClock\ARM_RTClock.c(22): error: #5: cannot open source input file "LPC23xx.H": No such file or directory
compiling MCI_LPC23xx.c...
..\Drivers\FlashFS\MCI_LPC23xx.c(13): error: #5: cannot open source input file "LPC23xx.h": No such file or directory
Target not created
Status: Build failed.
1 question, Where I can find the file or I remove the " #include "
Thanks !
Yannick
uC : Atmel ARM7 AT91SAM7A3
LV embedded module for ARM 2009, eval mode
KEIL 3.85 licenced
OS : XP
10-16-2009 09:36 AM
Hi Yannick
Do you have the labview\Targets\Keil\Embedded\RealView\Generic LPC2378 folder? In this folder there is no .H file?
Other possibility, you can try to use the .H file of your ucontroller http://www.keil.com/dd/chip/3821.htm and simple rename it?
Did you read the forumspost above, there are a lot of helpfull informations.
Kind regards
Beat
NI Germany
10-16-2009 12:18 PM
Pixar is just kindly suggesting you should have a AT91SAM7A3.H file, not LPC23xx.H.
Of course, you microcontroller is Atmel, so in the C:\Keil\ARM\INC\Atmel folder there is a AT91SAM7A3.H file not LPC23xx.H which is in C:\Keil\ARM\INC\NXP.
You are encountering these errors because you didn't prepare the template project properly. For example, you should have a SAM7.s startup file in System folder (not LPC2400.s).
Just to clarify things, in my previous post (http://forums.ni.com/ni/board/message?board.id=420&message.id=1764#M1764) I wrote you might not need to build LVAnalysis but you should follow other steps from tutorial. I also recommended taking a look in some Keil folders in order to configure RTX properly.
You have to modify all drivers (e.g. ARM_Serial) in concordance with the datasheet and examples provided by Atmel (http://www.atmel.com/dyn/products/Product_card.asp?part_id=3578).
Bounce wrote:compiling MCI_LPC23xx.c...
..\Drivers\FlashFS\MCI_LPC23xx.c(13): error: #5: cannot open source input file "LPC23xx.h": No such file or
It is recommended to not include file support until fixing all other issues.
10-16-2009 01:32 PM
OK guys,
I try to do my best, but all of this stuff is completly new for me. Never worked with an ARM processor, just some times with labview, and never with keil again ...
So what I've done until now after your post.
I tried to load the files from keil to labview, I replaced the LPC23xx.h to the AT91SAM7A3.h.
And another problem became.The files were to old apparentily, I found the lastest version for all of these files: retarget.c, RTX_Config.c, SAM7.s
So now, when I complie the project (form labview or keil, same result, and fortunatlly) I have the following error :
see the first attachmen.
But now my thinking is :
Ok I have to reconfigure all of this stuff, but what is exaclty this ARM_Serial ? this is the driver for the RS232 ou UART ?
I have to fix the ARM_RTClock for the RTOS i think, so this one is ok,
And the last one is for the flash.
But, never before me somebody try or do that ? That's crazy, I mean
I try to fix that and see you soon ^^
Thanks for your time guys
10-16-2009 02:30 PM
You should play a while with examples provided by Atmel. This will allow you to get familiar with the architecture and special registers.
For example, basic-usart-hw-handshaking-project-at91sam7a3-ek could help you to fix ARM_Serial.c.
One commonality in embedded world is diversity. There is more particular staff than standard. The list of ARM microcontrollers and processors is impressive.
Bounce wrote:But, never before me somebody try or do that ? That's crazy, I mean
Note that porting LabVIEW for your board is one time procedure, and the effort is rewarded.
10-30-2009 11:25 AM
Hello,
So I'm still working to add my target, but now I have a problem and I don't understand,
[10:56:01 AM] Status: Error
Target executing
Detail: [UVSC_DBG_START_EXECUTION, MSG: 0x2002, STATUS: 0xB] (11)
Status: Run failed.
I did some research and unfortunatelly I haven't uVision opened.
Have you an idea ?
Thanks !