Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Discussion Groups | Analog Devices DSPs | BF532 : Running code in SRAM under VDSP session

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

Error in the loop - Ravichandran - Jan 31 9:31:00 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




(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: Error in the loop - Sathish Kumar Sha - Feb 1 0:42:00 2006

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 ';'





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: Error in the loop - sharath malve - Feb 1 1:57:00 2006

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 ';'





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: Error in the loop (rant) - Alex Young - Feb 1 9:27:00 2006


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

_____________________________________
/groups/adsp/1.php

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

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


(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: Error in the loop (rant) - Jaime Andres Aranguren Cardona - Feb 3 9:36:00 2006

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és Aranguren Cardona
jaime.aranguren@jaim...
jaime.aranguren@jaim...
	__________________________________________________
">http://mail.yahoo.com 



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: Error in the loop (rant) - Mike Rosing - Feb 3 10:28:00 2006

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.
>
	


(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

BF532 : Running code in SRAM under VDSP session - Arbos Ingénierie - Feb 11 12:00:00 2006

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
	


(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

RE: BF532 : Running code in SRAM under VDSP session - Vikas Chandra Rao - Feb 13 6:21:00 2006

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
	


(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

RE: BF532 : Running code in SRAM under VDSP session - Arbos Ing�nierie - Feb 13 6:56:00 2006

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
	


(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

RE: BF532 : Running code in SRAM under VDSP session - Jaime Andres Aranguren Cardona - Feb 13 10:01:00 2006

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és Aranguren Cardona
jaime.aranguren@jaim...
jaime.aranguren@jaim...
	__________________________________________________
">http://mail.yahoo.com 



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

RE: BF532 : Running code in SRAM under VDSP session - arbo...@arbos-dsp.com - Feb 13 10:29:00 2006

My application is too big to fit in BlackFin internal memory only, so I need to
store few fonctions in External SRAM. CACHE will be activated in a second time
when first debugging will be done.

Thanks in advance.
	Selon Jaime Andres Aranguren Cardona <jaime_aranguren@jaim...>:

> 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és Aranguren Cardona
> jaime.aranguren@jaim...
> jaime.aranguren@jaim...
>
>
> __________________________________________________
> ">http://mail.yahoo.com
>
>
> 
>
>
>
>
>
>
>
	


(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

RE: BF532 : Running code in SRAM under VDSP session - Vikas Chandra Rao - Feb 14 3:35:00 2006

Hi,

To load program into external SRAM accessed at AMS1, you need to initialise
EBIU properly before loading DXE file itself. Apart from that you need to
see if the LDF file is appropriate to load into external SRAM. I can't
foresee any other problems as such.

Regards,
Vikas.

-----Original Message-----
From: arbos@arbo... [mailto:arbos@arbo...]
Sent: Monday, February 13, 2006 7:59 PM
To: jaime.aranguren@jaim...; Jaime Andres Aranguren Cardona
Cc: 'Vikas Chandra Rao'; ADSP@ADSP...
Subject: RE: [adsp] BF532 : Running code in SRAM under VDSP session
	My application is too big to fit in BlackFin internal memory only, so I need
to
store few fonctions in External SRAM. CACHE will be activated in a second
time
when first debugging will be done.

Thanks in advance.
	Selon Jaime Andres Aranguren Cardona <jaime_aranguren@jaim...>:

> 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és Aranguren Cardona
> jaime.aranguren@jaim...
> jaime.aranguren@jaim...
>
>
> __________________________________________________
> ">http://mail.yahoo.com
>
>
> 
>
>
>
>
>
>
>
	


(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

RE: BF532 : Running code in SRAM under VDSP session - arbo...@arbos-dsp.com - Feb 14 11:05:00 2006

I find the solution

1) Disable System Reset in "Settings" -> targets options
2) Manually patch EBIU_AMGCT to enable Bank1 -<0x00F4
3) Load dxe

all this operations inside a tcl script (more easier to use), and everything is
OK
	Selon Vikas Chandra Rao <vikas@vika...>:

> Hi,
>
> To load program into external SRAM accessed at AMS1, you need to initialise
> EBIU properly before loading DXE file itself. Apart from that you need to
> see if the LDF file is appropriate to load into external SRAM. I can't
> foresee any other problems as such.
>
> Regards,
> Vikas.
>
> -----Original Message-----
> From: arbos@arbo... [mailto:arbos@arbo...]
> Sent: Monday, February 13, 2006 7:59 PM
> To: jaime.aranguren@jaim...; Jaime Andres Aranguren Cardona
> Cc: 'Vikas Chandra Rao'; ADSP@ADSP...
> Subject: RE: [adsp] BF532 : Running code in SRAM under VDSP session
>
>
> My application is too big to fit in BlackFin internal memory only, so I need
> to
> store few fonctions in External SRAM. CACHE will be activated in a second
> time
> when first debugging will be done.
>
> Thanks in advance.
>
>
>
> Selon Jaime Andres Aranguren Cardona <jaime_aranguren@jaim...>:
>
> > 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és Aranguren Cardona
> > jaime.aranguren@jaim...
> > jaime.aranguren@jaim...
> >
> >
> > __________________________________________________
> > ">http://mail.yahoo.com
> >
> >
> > 
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
	


(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

RE: BF532 : Running code in SRAM under VDSP session - Jaime Andres Aranguren Cardona - Feb 14 16:01:00 2006

Nice to know that you could fix it up.

Cheers,

JaaC

--- arbos@arbo... wrote:

> I find the solution
> 
> 1) Disable System Reset in "Settings" -> targets
> options
> 2) Manually patch EBIU_AMGCT to enable Bank1
> -<0x00F4
> 3) Load dxe
> 
> all this operations inside a tcl script (more easier
> to use), and everything is
> OK
	Jaime Andrés Aranguren Cardona
jaime.aranguren@jaim...
jaime.aranguren@jaim...
	__________________________________________________
">http://mail.yahoo.com 



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )