LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

add ATMEL at91sam7a3 for labwiev embedded

Hi Yannick,

 

It appears you made significant progresses and you are able to run/debug your new target.


Bounce wrote:

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.

 


This is a uVision Socket Interface error, telling that the current operation cannot be executed while the target is running. This error could have multiple causes (e.g. starting a debug session when target is already in debug mode, reading memory when the target is not stopped, etc.), and can hapen for Tier1 targets as well in some particular situations.

 

If you want to know more about UVSOCK go to Keil application note (http://www.keil.com/appnotes/docs/apnt_198.asp).
However, as a LabVIEW user you don't need to know all the details, but having a look into documentation could be useful. Michael kindly posted the documentation here (http://forums.ni.com/ni/board/message?board.id=420&message.id=349#M349).

It is recommended to work always with uVision opened until you'll have fixed your new target (right click your target in LabVIEW project window and select Show Keil uVision before any other actions). Also, I would try first runs in simulation mode.

 

Good Luck

 

Nic

0 Kudos
Message 11 of 19
(4,413 Views)

So,

 

I still have the same error, but when I try to debug with Keil, the program doesn't go more far ... (see attachement)

 

 If I hit the step into, the yellow arrow doesn't do the next step and stay at the 0x00100424 ...

 

 

And I don't follow your previous post,  UVSOCK what is taht exactly ? I already seen the post who talk about this error, the problem is that I just have labview opened and not Keil.

 

I try to unplug and plug the ULINK2, restart the computer but allways the problem. 

 

Yes, I workded to "translate"the Drivers whose labview needfor my uC.

But I allways have this problem ...

 

thanks for your help

 

Yannick

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

You should test your target in simulator first (I am strongly recommending this).

The program keeps still because that instruction does this: BCS means branch if higher or same and R12 (0xAB) is higher than R8 (0x09), sothe comparison result is true.

However, away from this assembly staff, I suppose this happens because you didn't configured RTX properly. You could post your target folder (from <LabVIEW>\Targets\Keil\Embedded\RealView\Generic\) and I shall take a look.

 


Bounce wrote:

And I don't follow your previous post,  UVSOCK what is taht exactly ?



 

"uVision Socket Interface (UVSOCK) enables uVision to be controlled and monitored by one or more third party applications (Clients)." (http://www.keil.com/appnotes/docs/apnt_198.asp)
LabVIEW is connecting to uVision as a TCP/IP client.

 

 

Message Edited by NicB on 10-30-2009 04:59 PM
0 Kudos
Message 13 of 19
(4,401 Views)

Okay,

 

thanks for the information, I learn avery day !

 

I gonna check the settings... Monday ! To much for today !

 

Thanks

 

PS : I just don't put the obj folder in the project folder (about 30MB..)

Message Edited by Bounce on 10-30-2009 05:09 PM
Yannick

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

I see a lot of good work in your attached file.
First issue is the heap size - LabVIEW uses allocation so the heap cannot be 0. Let's change it to half of RAM:

Heap_Size       EQU     0x00004000 (SAM7.s)


Bounce wrote:

 

PS : I just don't put the obj folder in the project folder (about 30MB..)



Actually I suggested posting your target folder from LabVEW but probably I edited to late my message with the path. However I'll manage with the project. I cannot build the project because some definitions are missing (CONTROLLER_CPUCLOCK, TWI_TXBUFFERLENGTH) but it's OK.


 

I gonna check the settings... Monday ! To much for today !



Have a nice wekend.

0 Kudos
Message 15 of 19
(4,387 Views)

Okay so, I allways have the same problem.

Stop at the same address.

 

When I play with the RTX_Blinky I don't have a problem, and the RTX_Config is exactly the same.

 

So now what I try is to find when Keil gives the 0xab in the R12  register but I don't find ...

 

And normally I think that R12 should be update by an interrupt of a timer or something like that so my RTX_Config or something is set badly, but I don't know what ...

 

I have to enable some interrupt ?

 

Thanks !

Yannick

uC : Atmel ARM7 AT91SAM7A3
LV embedded module for ARM 2009, eval mode
KEIL 3.85 licenced
OS : windows 7
0 Kudos
Message 16 of 19
(4,353 Views)
Edit : And Fortunelly, in simulator or Jtag, I have the same problem !
Yannick

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

Hi All,

 

Have you some idea ? Still in the same point  ...

Yannick

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

Ok, so finally it's working.

 

Now, I'm going to implement the GPIO, I2C and so on. If someone need the project, just tell me !

Yannick

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