I have copied the source code of one of the sample programs for CCS over to my Linux setup and have compiled it using Montavista arm_v5t_le-gcc.
It compiles without any errors, but if I run it using NFS I get a Segmentation Fault when it executes a read/write to PINMUX3.
The define code is:
#define SYSTEM_BASE 0x01C40000
#define PINMUX3 *( volatile Uint32* )( SYSTEM_BASE + 0x0C )
The line that throws the error is:
PINMUX3 &= ~0x00600000;
I have eliminated any other calls so this is the only line that gets executed.
I have run simple 'hello world' programs with no errors.
My environment:
printenv
bootdelay=4
baudrate=115200
ethaddr=00:0e:99:02:cd:d7
rootpath=/home/sam/workdir/filesys
nfshost=192.168.114.141
serverip=192.168.114.141
bootfile="uImage"
bootcmd=nboot 0x80700000 0 0x400000;bootm
ipaddr=192.168.114.101
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 1.3.4 (Mar 2 2009 - 11:50:39)
bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=192.168.114.141:/home/sam/workdir/filesys,nolock mem=76M video=davincifb:viid0=OFF:vid1=OFF:osd0=720x576x16,4050K dm365_imp.oper_mode=0 davinci_capture.device_type=4
Environment size: 544/262140 bytes
DM365 EVM :>
It would seem to be a memory configuration issue. But where?
Thanks,
Sam V