• 0

vivado 18.2 microblaze SDK get undefined reference to main.c error. Following microblaze tutorial


Question

HI, I am following the Microblaze tutorial located

https://reference.digilentinc.com/vivado/getting-started-with-ipi/2018.2 andI am using the same version, but whenI try to load theProgram or run clean build or regenerate BSP I get 

'Building target: ipi-gsg.elf'
'Invoking: MicroBlaze gcc linker'
mb-gcc -Wl,-T -Wl,../src/lscript.ld -L../../ipi-gsg_bsp/microblaze_0/lib -mlittle-endian -mcpu=v10.0 -mxl-soft-mul -Wl,--no-relax -Wl,--gc-sections -o "ipi-gsg.elf"  ./src/main.o   -Wl,--start-group,-lxil,-lgcc,-lc,--end-group
c:/xilinx/sdk/2018.2/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/7.2.0/../../../../microblaze-xilinx-elf/lib/le/crtinit.o: In function `_crtinit':
(.text+0x78): undefined reference to `main'
collect2.exe: error: ld returned 1 exit status

make: *** [ipi-gsg.elf] Error 1

 

I'm copying and pasting that example C program in that tutorial

I am doing run as LAunch on Hardware   (System DEbugger)  to load it

which gives me this pop up as well

"executables selected for download following on to the following processors doesn't exist or incorrectly specified. Do you wish to ignore them and process? 1. microblaze_0"

I'm using a basys 3 board

 

How do I fix this? I don't see what is not being referenced to main.c

I've also tried regenerate which didn't do anything

Thanks

Daryl

Link to post
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now