LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

add ATMEL at91sam7a3 for labwiev embedded

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

Yannick

uC : Atmel ARM7 AT91SAM7A3
LV embedded module for ARM 2009, eval mode
KEIL 3.85 licenced
OS : windows 7
0 Kudos
Message 1 of 19
(9,055 Views)
With a little screen to know better what I want to do ...
Yannick

uC : Atmel ARM7 AT91SAM7A3
LV embedded module for ARM 2009, eval mode
KEIL 3.85 licenced
OS : windows 7
0 Kudos
Message 2 of 19
(9,041 Views)

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 :

Overview of ARM Evaluation Hardware

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

 

 

0 Kudos
Message 3 of 19
(9,000 Views)

Here can you find a very good tutorial to integrate your specific ARM processor

 

Programming Additional ARM Microcontrollers with LabVIEW

http://zone.ni.com/devzone/cda/tut/p/id/7152

 

Kind regards

 

Beat

NI Germany

 

Message Edited by Pixar on 10-16-2009 02:21 AM
Message Edited by Pixar on 10-16-2009 02:26 AM
0 Kudos
Message 4 of 19
(8,996 Views)

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

Message Edited by Bounce on 10-16-2009 09:04 AM
Yannick

uC : Atmel ARM7 AT91SAM7A3
LV embedded module for ARM 2009, eval mode
KEIL 3.85 licenced
OS : windows 7
0 Kudos
Message 5 of 19
(8,978 Views)

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

0 Kudos
Message 6 of 19
(8,973 Views)

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.

0 Kudos
Message 7 of 19
(8,962 Views)

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

 

Yannick

uC : Atmel ARM7 AT91SAM7A3
LV embedded module for ARM 2009, eval mode
KEIL 3.85 licenced
OS : windows 7
0 Kudos
Message 8 of 19
(8,957 Views)

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.

 


Bounce wrote:

But, never before me somebody try or do that ? That's crazy, I mean


One commonality in embedded world is diversity. There is more particular staff than standard. The list of ARM microcontrollers and processors is impressive.

 

 

Note that porting LabVIEW for your board is one time procedure, and the effort is rewarded.

0 Kudos
Message 9 of 19
(8,950 Views)

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 !

Yannick

uC : Atmel ARM7 AT91SAM7A3
LV embedded module for ARM 2009, eval mode
KEIL 3.85 licenced
OS : windows 7
0 Kudos
Message 10 of 19
(8,811 Views)