10-30-2009 02:52 PM
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
10-30-2009 04:12 PM
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
10-30-2009 04:53 PM - edited 10-30-2009 04:59 PM
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.
10-30-2009 05:05 PM - edited 10-30-2009 05:09 PM
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..)
10-30-2009 05:38 PM
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.
11-02-2009 11:47 AM
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 !
11-02-2009 12:02 PM
11-09-2009 08:27 AM
Hi All,
Have you some idea ? Still in the same point ...
11-11-2009 04:06 PM
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 !