This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

issue about porting ecos on new target board


> Dear,
>
> I had some problme in setting up the parameter of arm-elf-gcc (makefile),
> please help me to solve it.
> I tried to use the ARM E7T redboot binary code (RAM mode) to port
> it on the
> new target board
> (KS32C41000,  http://www.samsungusa.com/cgi-
> bin/nabc/semiconductors/system_lsi/32_bit_arm_based_risc_mpu/pda/k
> s32c41100/
> ks32c41100.jsp
> )
>
> But when I use the debugger(v2.51) to load the redboot.elf, the
> simulator
> broke down and did not
> show any error message. So I though that maybe the setting of makefile had
> some problem. Below is
> the setting in my E7T redboot and the makefile of KS32C41000's
> sample code.
> (I had ever tried to write a small sample code and use the E7T's
> arm-elf-gcc setting, it still could
> not work with KS32C41000's simulator.)
>
> #----REDBOOT E7T in hal_arm_e7tcdl settings (I had modified some
> parameter)----------
> #using the arm-elf-gcc
>
> TEXT_ADRS = 0xc000000    # ROM entry address
>
> CFLAGS	= -mcpu=arm7tdmi -mbig-endian -mno-short-load-words -Wall
> -Wpointer-arith -Wstrict-
> prototypes -Winline -Wundef -Woverloaded-virtual -g -O2
> -ffunction-sections
> -fdata-sections -fno-
> rtti -fno-exceptions -fvtable-gc -finit-priority
>
> LDFLAG	= -mcpu=arm7tdmi -Ttext $(TEXT_ADRS) -mbig-endian
> -mno-short-load-words -Wl,--
> gc-sections -Wl,-static -g -nostdlib
>
> #----REDBOOT E7T in hal_arm_e7tcdl settings (I had modified some
> parameter)----------
>
>
> #----KS32C41000 Sample code in the makefile settings-----------
> PRJ= 41test
> ARMLINK= armlink
> ARMASM = armasm
> ARMCC  = armcc
> LFLAGS = -ro-base 0xc000000 -rw-base 0x0c040000 -elf
> AFLAGS = -bi -apcs 3/32bit/noswst/nofp -cpu ARM7TM
> CFLAGS = -c -g+ -fc -apcs 3/32bit/noswst/nofp -bi -processor
> ARM7TDMI -arch
> 4T
> #If you doesn't debug,use following CFLAGS for more faster operation.
> #CFLAGS = -c -g- -fc -apcs 3/32bit/noswst/nofp -bi -processor ARM7TM -arch
> 4T
> all: $(PRJ).elf
> $(PRJ).elf: $(PRJ).o
> 	del $(PRJ).bin
>         del $(PRJ).elf
>         $(ARMLINK) $(LFLAGS) -o $(PRJ).elf $(PRJ).o
>         fromelf -nodebug -nozeropad $(PRJ).elf -bin $(PRJ).bin
> $(PRJ).o: $(PRJ).c
> 	del $(PRJ).o
> 	$(ARMCC) $(CFLAGS) $(PRJ).c -o $(PRJ).o
>
> #----KS32C41000 Sample code in the makefile settings-----------
>
> Regards,
> Steve


------------------------------------------
社團、小型企業購買虛擬主機的最佳選擇
http://mymailer.url.com.tw



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]