Hi Claes,
I re installed your recommended toolchain and it worked perfectly without any undefined references.
Thank you
By the way I tried to create a user io method for accessing a USB CAN over my rpi but I don t remember how to modified the $pwrp_appl/makefile in order to compile my C code driver against the above mentioned cross toolchain.
could you help me by providing the additionnal lines required (I guess at least a CC= flag but I m so bad with makefile that I would appreciate your help or guidances on that)
Also how to change the pwrp_obj directory to match the arm64 arch that the compiler is looking for ? Actually it generates every object file in projectpath/bld/x86_64_linux/obj rather than in projectpath/bld/arm64-linux/obj directory ?
Thanks for your help
Snarf
-- EDIT --
This is my makefile so far
snarf_top : snarf
include $(pwr_exe)/pwrp_rules.mk
snarf_modules : $(pwrp_obj)/rt_io_user.o \
$(pwrp_obj)/ra_io_m_nodave_plc.o \
$(pwrp_obj)/ra_io_m_nodave_transaction.o \
$(pwrp_obj)/ra_io_m_usb_rack.o \
$(pwrp_obj)/ra_io_m_usb_can.o
snarf : snarf_modules
@echo "****** snarf modules built ******"
#
# Modules
#
$(pwrp_obj)/rt_io_user.o : $(pwrp_appl)/rt_io_user.c $(pwrp_appl)/ra_io_m_nodave.h
$(pwrp_obj)/ra_io_m_nodave_plc.o : $(pwrp_appl)/ra_io_m_nodave_plc.c $(pwrp_appl)/ra_io_m_nodave.h
$(pwrp_obj)/ra_io_m_nodave_transaction.o : $(pwrp_appl)/ra_io_m_nodave_transaction.c $(pwrp_appl)/ra_io_m_nodave.h
$(pwrp_obj)/ra_io_m_usb_rack.o : $(pwrp_appl)/ra_io_m_usb_rack.c $(pwrp_appl)/ra_io_m_usbcan.h
$(pwrp_obj)/ra_io_m_usb_can.o : $(pwrp_appl)/ra_io_m_usb_can.c $(pwrp_appl)/ra_io_m_usbcan.h