[En-Nut-Discussion] anyone using SAM7S32?
Bernd Walter
enut at cicely.de
Tue Jul 28 20:47:48 CEST 2009
Just tried to run ethernut the first time on a SAM7S controller.
My main function doesn't get excecuted it seems, so it looks to be
something in Ethernut startup.
I'd used the included st91sam7s32_rom.ld.
[347]devel> cat contrib/ethernut-4.8.2/UserConf.mk
PLATFORM=AT91SAM7S
HWDEF+=-D$(PLATFORM)
DEVICE=AT91SAM7S256
MCU=arm7tdmi
ARCH=arm
MCUOPTS=-mcpu=arm7tdmi
RUNFLAG=
LDNAME=at91sam7s32_rom
LDSCRIPT=$(top_srcdir)/arch/arm/ldscripts/$(LDNAME).ld
#LDDIRS=
#BURN=jtagomat
#BURNFLAGS=$(TARG)
CRUROM=crurom
#HWDEF+=-DNUTDEBUG
HWDEF+=-DAT91_PLL_MAINCK="18432000"
HWDEF+=-DNUTMEM_SIZE="0x1F00"
HWDEF+=-DNUTMEM_START="0x00200100"
HWDEF+=-DNUT_THREAD_IDLESTACK="512"
HWDEF+=-DNUT_THREAD_MAINSTACK="1024"
HWDEF+=-DNUT_THREAD_TCPSMSTACK="1024"
HWDEF+=-DNUT_THREAD_DHCPSTACK="1024"
HWDEF+=-DNUT_THREAD_SNTPSTACK="1024"
HWDEF+=-DFOPEN_MAX=20
HWDEF+=-DPHAT_SECTOR_BUFFERS="6"
HWDEF+=-DNIC_PHY_ADDR=1
HWDEF+=-DMMC_CS_BIT=SPI0_NPCS2_PA10B
HWDEF+=-DNUT_WDT_START=yes
HWDEF+=-DMCU_AT91=yes
HWDEF+=-DLAU_DEBUGLIB_NOT_IMPLEMENTED=yes
HWDEF+=-DLAU_LOADLIB_NOT_IMPLEMENTED=yes
HWDEF+=-DLAU_IOLIB_NOT_IMPLEMENTED=yes
HWDEF+=-DLAU_OSLIB_NOT_IMPLEMENTED=yes
#HWDEF+=-DNUT_TICK_AT91PIT=yes
HWDEF+=-DNUT_CPU_FREQ="55000073" -DPLL_MUL_VAL=1300 -DPLL_DIV_VAL=218
The tree was copied from a working SAM7X tree.
Some of the above definitions are leftovers.
Probably I missed to change something, but I don't see anything wrong.
All I can see so far is that the xtal starts oscillating, but main()
doesn't start.
--
B.Walter <bernd at bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
More information about the En-Nut-Discussion
mailing list