Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Balasubramanian Vaidhyana
02/28/17 08:58
Read: 286 times
Andover Ma
United States


 
#190746 - tusb3410.h:56: syntax error: token -> 'bPCON' ; column 9
Hi all

I am trying to compile the bootcode for TUSB3410 USB controller. I am using the makefile as below. I am getting the below error

tusb3410.h:56: syntax error: token -> 'bPCON' ; column 9

I did a make all.. Has anyone here tried to compile the bootcode for TUSB3410?. Any help would be greatly appreciated...


Makefile:

#
# Makefile tusb3410 firmware
#
VID='#x0451'
PID='#xbeef'

CC = c://newProject//bin//sdcc
LD = c://newProject//bin//sdcc
LFLAGS = --model-small --idata-loc 0xc0 --xram-loc 0xf800 --xram-size 2048 --code-size 16384
# ^ info for weasels only: the stack grows upwards ...
CFLAGS = -c

OBJS= main.rel usb.rel ser.rel

all : firm.flat tusb3410_autoexec_firmware.inc tusb3410_descriptor_header.inc

tusb3410_autoexec_firmware.inc : firm.flat
gosh gen-descriptor-header.scm $(VID) $(PID) firm.flat

tusb3410_descriptor_header.inc : gen-descriptor-header.scm
gosh gen-descriptor-header.scm $(VID) $(PID)

firm.flat : main.ihx ihex/ihex2flat
ihex/ihex2flat main.ihx firm.flat

main.ihx : $(OBJS) Makefile ihex/ihex2flat
$(LD) $(LFLAGS) $(OBJS)

ihex/ihex2flat:
(cd ihex; make)

clean:
rm -f firm.flat *.asm *.ihx *.lnk *.map *.mem *.lst *.rel *.rst *.sym
rm -f *~
(cd ihex; make clean)

main.rel: main.c Makefile
$(CC) $(CFLAGS) main.c

usb.rel: usb.c Makefile tusb3410_descriptor_header.inc
$(CC) $(CFLAGS) usb.c

ser.rel: ser.c Makefile
$(CC) $(CFLAGS) ser.c





List of 8 messages in thread
TopicAuthorDate
tusb3410.h:56: syntax error: token -> 'bPCON' ; column 9      Balasubramanian Vaidhyana      02/28/17 08:58      
   More on TUSB3410 bootcode compilation      Balasubramanian Vaidhyana      02/28/17 12:11      
      Correct Configuration?      Michael Karas      03/03/17 10:09      
         SDCC configuration for MCS51      Balasubramanian Vaidhyana      03/06/17 14:38      
         included 8052.h      Balasubramanian Vaidhyana      03/06/17 14:56      
   what is on that line?      Jan Waclawek      03/04/17 03:15      
      code base used      Balasubramanian Vaidhyana      03/07/17 07:28      
   closing this issue      Balasubramanian Vaidhyana      03/08/17 04:54      

Back to Subject List