DSPRelated.com
Forums

Error in the loop

Started by Ravichandran January 31, 2006
Hi all,
I got this error for the following code.can you what is wrong?
 
 
P5 = 0x20 ;
LSETUP ( lp_start, lp_end ) LCO = P5 ;
lp_start: R5 = R0 + R1(ns) || R2 = [P2++] || R3 = [I1++] ;
lp_end: R5 R5 + R2 ;
 
[Error ea5004] ".\loop1.asm":9 Syntax Error in :
LSETUP ( lp_start, lp_end ) LCO = P5 ;
syntax error is at or near text 'LCO'.
Attempting error recovery by ignoring text until the ';'
"SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India"

SASKEN BUSINESS DISCLAIMER
This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email


hi ravichandran the code you wrote is not wrong, but made a very small
mistake may be typing mistake. in the second line
LSETUP(lp_start,lp_end)LCO=P5, Here it is not LCO it is LC0 (put 0
(i.e"0",1,2,3..) instead of "O" P,Q,R,S)
> Hi all,
> I got this error for the following code.can you what is wrong? > P5 = 0x20 ;
> LSETUP ( lp_start, lp_end ) LCO = P5 ;
> lp_start: R5 = R0 + R1(ns) || R2 = [P2++] || R3 = [I1++] ;
> lp_end: R5 = R5 + R2 ;
>
> [Error ea5004] ".\loop1.asm":9 Syntax Error in :
> LSETUP ( lp_start, lp_end ) LCO = P5 ;
> syntax error is at or near text 'LCO'.
> Attempting error recovery by ignoring text until the ';'
>


If U are a starter try to get the answers from your colleagues. Dont post it simply for the sake of posting for such silly ones.

Anyway the error is U are using alpabhet O in LCO. It shud be LC0

-Sharath Malve
Ravichandran <sravich@srav...> wrote:
Hi all,
I got this error for the following code.can you what is wrong? P5 = 0x20 ;
LSETUP ( lp_start, lp_end ) LCO = P5 ;
lp_start: R5 = R0 + R1(ns) || R2 = [P2++] || R3 = [I1++] ;
lp_end: R5 = R5 + R2 ; [Error ea5004] ".\loop1.asm":9 Syntax Error in :
LSETUP ( lp_start, lp_end ) LCO = P5 ;
syntax error is at or near text 'LCO'.
Attempting error recovery by ignoring text until the ';'




Please don't post for the sake of telling other not to post! All questions are welcome (except homework).
This type of mistake can take even experienced engineers some time to spot.
Also try to use proper words instead of U for 'you' and avoid spelling mistakes: shud is spelt 'should'.

Alex Young
Senior DSP software Engineer


sharath malve <s...@yahoo.com>

Sent by:
a...@yahoogroups.com

2006-02-01 06:57 AM

To
Ravichandran <s...@sasken.com>
A...@yahoogroups.com
cc
Subject
Re: [adsp] Error in the loop
Classification


If U are a starter try to get the answers from your colleagues. Dont post it simply for the sake of posting  for such silly ones.
 
 Anyway the error is U are using alpabhet O in LCO. It shud be LC0
 
 -Sharath Malve
 
 

Ravichandran <s...@sasken.com> wrote:
         Hi all,
 I got this error for the following code.can you what is wrong?
 
 
 P5 = 0x20 ;
LSETUP ( lp_start, lp_end ) LCO = P5 ;
lp_start: R5 = R0 + R1(ns) || R2 = [P2++] || R3 = [I1++] ;
lp_end: R5 = R5 + R2 ;

 
 [Error ea5004] ".\loop1.asm":9 Syntax Error in :
LSETUP ( lp_start, lp_end ) LCO = P5 ;
syntax error is at or near text 'LCO'.
Attempting error recovery by ignoring text until the ';' NEW!  You can now post a message or access and search the archives of this group on DSPRelated.com:
http://www.dsprelated.com/groups/adsp/1.php

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

Archives:  http://www.dsprelated.com/groups/adsp/1.php

To Post:  Send an email to a...@yahoogroups.com

Other DSP Related Groups: http://www.dsprelated.com/groups.php

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/adsp/

<*> To unsubscribe from this group, send an email to:
   a...@yahoogroups.com

<*
Hello,

I second Alex's post. Being polite doesn't hurt. Also,
proper writting makes reading more comfortable,
eventhough your mother tounge is not english (this is
my case, too), try to do your best.

Regards,

JaaC

--- Alex Young <alex.young@alex...> wrote:

> Please don't post for the sake of telling
other not
> to post! All questions 
> are welcome (except homework).
> This type of mistake can take even experienced
> engineers some time to 
> spot.
> Also try to use proper words instead of U for 'you'
> and avoid spelling 
> mistakes: shud is spelt 'should'.
> 
> Alex Young
> Senior DSP software Engineer
	Jaime Andr Aranguren Cardona
jaime.aranguren@jaim...
jaime.aranguren@jaim...
	__________________________________________________
 

Hi folks,

While I agree that any question is ok, and proper writing
is easier on a big screen, I would not be opposed to other
languages being used.  Because I only know english and very
little French, I can't answer German or Polish posts.  But
many of you out there can.  Quick translations of the core
of a question can help internationalize a new student and
make them feel welcome even though they don't know any other
language.

Posting in both your native tongue and english can help others
figure out the question, and maybe help with the translation
so us dumb english speakers can actually understand it better.
And we all get to learn more that way too.

Patience, persistence, truth,
Dr. mike

On Fri, 3 Feb 2006, Jaime Andres Aranguren Cardona wrote:

> Hello,
>
> I second Alex's post. Being polite doesn't hurt. Also,
> proper writting makes reading more comfortable,
> eventhough your mother tounge is not english (this is
> my case, too), try to do your best.
>
	
Hi, 

I'm trying to execute code from my SRAM (Bank 1 - AMS1). It works fine when
my program is loaded in flash and board is booting on the flash (no
Emulator). But when I want debugging my code using emulator it doesn't
works
(exception when accessing SRAM, because no code loaded inside), similar if
Bank1 isn't loaded with my code when dxe is loaded into the target: is
there
a special way to do this? It seem's like I need to initialize EBUI_AMGCTL
before VDSP load code in SRAM?

Do you have the solution or any idea?

Thanks for your help
	
Hi,

Your question is little bit confusing. Can you please explain clearly.
However see below if it helps.

If you are trying to access SRAM at AMS1, then you need to make AMBEN[2:0]
bits in EBIU_AMGCTL register to either of "010", "011" or
"1xx". The memory
mapping in LDF file has to be appropriate while you emulate. You have to
instantiate EBIU_AMGCTL apart from other registers in your code before you
start accessing AMS1 memory.

Regards,
Vikas.
	-----Original Message-----
From: adsp@adsp... [mailto:adsp@adsp...]On Behalf Of
Arbos Ing�nierie
Sent: Saturday, February 11, 2006 9:30 PM
To: ADSP@ADSP...
Cc: 'St�phane GOUEL - ARBOS Technology'
Subject: [adsp] BF532 : Running code in SRAM under VDSP session
	Hi,

I'm trying to execute code from my SRAM (Bank 1 - AMS1). It works fine when
my program is loaded in flash and board is booting on the flash (no
Emulator). But when I want debugging my code using emulator it doesn't
works
(exception when accessing SRAM, because no code loaded inside), similar if
Bank1 isn't loaded with my code when dxe is loaded into the target: is
there
a special way to do this? It seem's like I need to initialize EBUI_AMGCTL
before VDSP load code in SRAM?

Do you have the solution or any idea?

Thanks for your help
	
Hi, 

Configuration is OK, at the beginning I initialize PLL and EBIU_AMGCTL.
When I Load my code in external Flash and I start my board (booting from
flash with no emulator) it work's fine, code in SRAM is executing
correctly.

But my problem is when I want debugging the same code under VDSP with my
emulator : it seems code isn't loaded in SRAM so when my program try to
access SRAM, exception appear because no valid opcode in SRAM.

It seems like when DXE is loaded into target, code located is SRAM isn't
loaded, is there a special option or way to do this?

Thank's in advance

-----Message d'origine-----
De�: Vikas Chandra Rao [mailto:vikas@vika...] 
Envoy�: lundi 13 f�vrier 2006 11:21
�: Arbos Ing�nierie; ADSP@ADSP...
Cc�: 'St�phane GOUEL - ARBOS Technology'
Objet�: RE: [adsp] BF532 : Running code in SRAM under VDSP session

Hi,

Your question is little bit confusing. Can you please explain clearly.
However see below if it helps.

If you are trying to access SRAM at AMS1, then you need to make AMBEN[2:0]
bits in EBIU_AMGCTL register to either of "010", "011" or
"1xx". The memory
mapping in LDF file has to be appropriate while you emulate. You have to
instantiate EBIU_AMGCTL apart from other registers in your code before you
start accessing AMS1 memory.

Regards,
Vikas.
	-----Original Message-----
From: adsp@adsp... [mailto:adsp@adsp...]On Behalf Of
Arbos Ing�nierie
Sent: Saturday, February 11, 2006 9:30 PM
To: ADSP@ADSP...
Cc: 'St�phane GOUEL - ARBOS Technology'
Subject: [adsp] BF532 : Running code in SRAM under VDSP session
	Hi,

I'm trying to execute code from my SRAM (Bank 1 - AMS1). It works fine when
my program is loaded in flash and board is booting on the flash (no
Emulator). But when I want debugging my code using emulator it doesn't
works
(exception when accessing SRAM, because no code loaded inside), similar if
Bank1 isn't loaded with my code when dxe is loaded into the target: is
there
a special way to do this? It seem's like I need to initialize EBUI_AMGCTL
before VDSP load code in SRAM?

Do you have the solution or any idea?

Thanks for your help
	
Hello guys,

Maybe I'm missing something here, but I wonder why
would you want to put your code in external SRAM when
using an emulator for debugging purposes?

With the emulator you can debug it directly from
internal SRAM, no need for extenal SRAM. As far as I
can tell, this resembles more closely what actually
happens when booting from Flash: program is loaded in
internal SRAM and executed from there.

Maybe if you contextualize a bit more, someone here
can provide better advice.

Kindest regards,

JaaC

--- Arbos Ing�nierie <arbos@arbo...> wrote:

> Hi, 
> 
> Configuration is OK, at the beginning I initialize
> PLL and EBIU_AMGCTL.
> When I Load my code in external Flash and I start my
> board (booting from
> flash with no emulator) it work's fine, code in SRAM
> is executing correctly.
> 
> But my problem is when I want debugging the same
> code under VDSP with my
> emulator : it seems code isn't loaded in SRAM so
> when my program try to
> access SRAM, exception appear because no valid
> opcode in SRAM.
> 
> It seems like when DXE is loaded into target, code
> located is SRAM isn't
> loaded, is there a special option or way to do this?
> 
> Thank's in advance
> 
> -----Message d'origine-----
> De�: Vikas Chandra Rao [mailto:vikas@vika...] 
> Envoy�: lundi 13 f�vrier 2006 11:21
> �: Arbos Ing�nierie; ADSP@ADSP...
> Cc�: 'St�phane GOUEL - ARBOS Technology'
> Objet�: RE: [adsp] BF532 : Running code in SRAM
> under VDSP session
> 
> Hi,
> 
> Your question is little bit confusing. Can you
> please explain clearly.
> However see below if it helps.
> 
> If you are trying to access SRAM at AMS1, then you
> need to make AMBEN[2:0]
> bits in EBIU_AMGCTL register to either of "010",
> "011" or "1xx". The memory
> mapping in LDF file has to be appropriate while you
> emulate. You have to
> instantiate EBIU_AMGCTL apart from other registers
> in your code before you
> start accessing AMS1 memory.
> 
> Regards,
> Vikas.
> 
> 
> -----Original Message-----
> From: adsp@adsp...
> [mailto:adsp@adsp...]On Behalf Of
> Arbos Ing�nierie
> Sent: Saturday, February 11, 2006 9:30 PM
> To: ADSP@ADSP...
> Cc: 'St�phane GOUEL - ARBOS Technology'
> Subject: [adsp] BF532 : Running code in SRAM under
> VDSP session
> 
> 
> Hi,
> 
> I'm trying to execute code from my SRAM (Bank 1 -
> AMS1). It works fine when
> my program is loaded in flash and board is booting
> on the flash (no
> Emulator). But when I want debugging my code using
> emulator it doesn't works
> (exception when accessing SRAM, because no code
> loaded inside), similar if
> Bank1 isn't loaded with my code when dxe is loaded
> into the target: is there
> a special way to do this? It seem's like I need to
> initialize EBUI_AMGCTL
> before VDSP load code in SRAM?
> 
> Do you have the solution or any idea?
> 
> Thanks for your help
	Jaime Andr Aranguren Cardona
jaime.aranguren@jaim...
jaime.aranguren@jaim...
	__________________________________________________