WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2008-Dec-16 00:13:26

justrajdeep
Member
Registered: 2008-Nov-28
Posts: 10

Designing Custom Peripherals

I followed the steps mentioned here completely
http://warp.rice.edu/svn/WARP/Documenta … _Core.html

then i did everything as given in
http://warp.rice.edu/svn/WARP/Documenta … rview.html
only adding the .c and .h files generated by matlab in ..\netlists\pcores\src

At Local date and time: Tue Dec 16 11:22:40 2008
xbash -q -c "cd /cygdrive/d/warp/sincos/; /usr/bin/make -f system.make bits; exit;" started...
Done!
At Local date and time: Tue Dec 16 11:22:48 2008
xbash -q -c "cd /cygdrive/d/warp/sincos/; /usr/bin/make -f system.make sincos_programclean; exit;" started...
Done!
Address Map for Processor ppc405_0
  (0b0000010000-0b0000010011) ppc405_0   
  (0b0000100000-0b0000100011) ppc405_0   
  (0x40a00000-0x40a03fff) ppc405_0_docm_cntlr    ppc405_0_docm
  (0x81400000-0x8140ffff) USER_IO    plb0
  (0x84000000-0x8400ffff) rs232    plb0
  (0xffff0000-0xffffffff) ppc405_0_iocm_cntlr    ppc405_0_iocm
At Local date and time: Tue Dec 16 11:22:57 2008
xbash -q -c "cd /cygdrive/d/warp/sincos/; /usr/bin/make -f system.make bits; exit;" started...
Done!
At Local date and time: Tue Dec 16 11:23:13 2008
xbash -q -c "cd /cygdrive/d/warp/sincos/; /usr/bin/make -f system.make init_bram; exit;" started...
powerpc-eabi-gcc -O2 /cygdrive/d/warp/sincos/src/mymodel_plbw.c  -o sincos/executable.elf \
      -g    -I./ppc405_0/include/  -Isrc/  -L./ppc405_0/lib/  \
 
/cygdrive/c/Xilinx/10.1/EDK/gnu/powerpc-eabi/nt/bin/../lib/gcc/powerpc-eabi/4.1.1/xil-crt0.o: In function `_start':
xil-crt0.S:(.text+0xc0): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [sincos/executable.elf] Error 1

Done!

1. can you explain why am i facing this error?
2. Matlab generates in ..\netlist\pcores\..\hdl\..\vhdl some VHDL files, can i use these files in my project?
if so how to use them?

Offline

 

#2 2008-Dec-16 04:50:45

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Designing Custom Peripherals

That error indicates that none of your software code includes a main() function, which is required for the processor to boot. You should not include the C or H files created by Sysgen in your XPS software project. These files are used by XPS automatically when it compiles the driver for your pcore.

Offline

 

#3 2008-Dec-16 05:17:47

justrajdeep
Member
Registered: 2008-Nov-28
Posts: 10

Re: Designing Custom Peripherals

then how do i generate the bit file or how do i run the model developed in simulink in my WARP board?

Offline

 

#4 2008-Dec-16 22:57:53

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Designing Custom Peripherals

You need to follow the tutorials, in the order they are presented. They illustrate how to use XPS to build a basic project, use Sysgen to build a simple peripheral and how to use the peripheral in an XPS project. I would strongly recommend completing these successfully before attempting to modify the more complicated WARPLab reference design.

Offline

 

Board footer