Dear Weixing,
>Dear Sir:
>
> I have developed the TD4V card's EPICS driver successfully under the help
of Tobiyama, TD4V >card is a programmable delay module used in Timing system (
KEKB
>guys maybe familar with this card). The developing system was based on
mv162+Redhat6.2(with >EPICS).
> The card initing code of device support is like this:
>
>if(sysBusToLocalAdrs(VME_AM_EXT_SUP_DATA,(char *)Base_IO,(char **)&p)==ERROR)
>{
> logMsg("VmeTd4v: cannot find extended address space\n");
> return(ERROR);
>} /* The memory of 162 is correct*/
>for(cardNum=0;cardNum<td4v_num_links;cardNum++)
>{
> if(vxMemProbe((char *)&(p->PreSet),READ,2,&probeVal[0])<OK)
> {
> logMsg("No TD$V with cardNum=%d\n probe=%x\n",cardNum,p);
> cards[cardNum].card=NULL;
> }
> else
> {
> logMsg("Found TD4V with cardNum=%d\n address=%x\n",cardNum,p);
> cards[cardNum].card=p;
> }
>...
>
>Now I want to change the mv162 board to mv2302. using the same initing code.
and set the proper >Base_IO address under the instruction of
>.../target/config/mv2302/target.nr This time it doesn't work at all.
>What's wrong about the memory map of 2302 ?
We at SLS are also using these TD4V cards and in the beginning I recall having a
similar
problem. Have you checked the address modifier for your A32 memory access
window?
The TD4V card responds only to supervisor access modifier codes, while the
address windows
in the BSP are set to user mode access by default. Check in mv2300.h the
following line:
#define VAL_LSI0_CTL ( LSI0_CTL_EN | LSI0_CTL_WP |\
LSI0_CTL_D64 | LSI0_CTL_A32 |\
LSI0_CTL_DATA | LSI0_CTL_USR |\
LSI0_CTL_SINGLE | LSI0_CTL_PCI_MEM
)
If it is like this, try to change LSI0_CTL_USR to LSI0_CTL_SUP and
rebuild the kernel. Then you should be able to access the TD4V.
I hope this helps (your problem may be different, however.) Please let me know
if you
need further help.
By the way, _please_ use plain text when you mail to tech-talk. Besides that
HTML mail
can be hard to read for many of the recipients, it looks awful in the archives.
best regards,
Timo Korhonen
--
Timo Korhonen PSI (Paul Scherrer Institut), SLS
CH-5232 Villigen PSI
tel + 41- 56 3103262 fax + 41 - 56 310 3151
e-mail: [email protected]
- Navigate by Date:
- Prev:
The memory map of mv2302 Weixing Cheng
- Next:
Problem when compiling cross compiler for PowerPC shen guobao
- Index:
1994
1995
1996
1997
1998
1999
2000
<2001>
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
The memory map of mv2302 Weixing Cheng
- Next:
Problem when compiling cross compiler for PowerPC shen guobao
- Index:
1994
1995
1996
1997
1998
1999
2000
<2001>
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|