very basic question - VxWorks
This is a discussion on very basic question - VxWorks ; Hi
I'm trying to set the chip select 6 in SBC8548E board. I'm checking it
with the multimeter but it's always 3.3V.
I guess there is problem with my method.From the config.h file in BSP
directory I found out that.
...
-
very basic question
Hi
I'm trying to set the chip select 6 in SBC8548E board. I'm checking it
with the multimeter but it's always 3.3V.
I guess there is problem with my method.From the config.h file in BSP
directory I found out that.
/* LBC CS6 - flash 1 - 64MB, 32-bit flash SODIMM - for TFFS */
#define FLASH1_BASE_ADRS 0xd0000000
#define FLASH1_ADRS_MASK 0xf0000000
#define FLASH1_SIZE 0x04000000
I open the shell and type
-> chipselect6=0xd0000000
New symbol "chipselect6" added to kernel symbol table.
chipselect6 = 0x1530c60: value = -805306368 = 0xd0000000
-> *chipselect6 =1
0xd0000000: value = -805306368 = 0xd0000000
can you suggest me a way to do this?
Thanks
-
Re: very basic question
tguclu wrote:
>Hi
>I'm trying to set the chip select 6 in SBC8548E board. I'm checking it
>with the multimeter but it's always 3.3V.
Unless your hardware is EXTREMELY unusual, your multimeter will never "see"
a chip select change state because chip selects typically go low for far
too little time. You'll need at least an oscilloscope and, even then, you
may need to resort to tricks such as single sweep if the chip select is not
toggled on a regular basis.
>I guess there is problem with my method.From the config.h file in BSP
>directory I found out that.
>
>/* LBC CS6 - flash 1 - 64MB, 32-bit flash SODIMM - for TFFS */
>
>#define FLASH1_BASE_ADRS 0xd0000000
>#define FLASH1_ADRS_MASK 0xf0000000
>#define FLASH1_SIZE 0x04000000
>
>I open the shell and type
>-> chipselect6=0xd0000000
>New symbol "chipselect6" added to kernel symbol table.
>chipselect6 = 0x1530c60: value = -805306368 = 0xd0000000
>-> *chipselect6 =1
>0xd0000000: value = -805306368 = 0xd0000000
>
>can you suggest me a way to do this?
I don't know whether dereferencing a pointer variable (the method you
describe above) works in the shell, but I am certain that using the memory
display command ('d') does. For example, this command reads and displays
the value of one 32-bit location beginning at address 0xd0000000.
> d 0xd0000000,1,4
--
================================================== ======================
Michael Kesti | "And like, one and one don't make
| two, one and one make one."
mrkesti at hotmail dot com | - The Who, Bargain