expected '=', ',', ';', 'asm' or '__attribute__' error

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i am working with my own application on atmel studio 6, custom board(at32uc3a0512). my application for sram, usb communication. i added necessary asf and definition. while compiling the error came, these are:

1.Error 1 expected '=', ',', ';', 'asm' or '__attribute__' before 'udi_api_t' D:\paarthi\SW\Studio-6\mYPRoJECt\PLC_CPU_BOARD\PLC_CPU_BOARD\src\asf\common\services\usb\class\msc\device\udi_msc.h 127 1 PLC_CPU_BOARD

2. Error 2 expected ')' before 'status' D:\paarthi\SW\Studio-6\mYPRoJECt\PLC_CPU_BOARD\PLC_CPU_BOARD\src\asf\common\services\usb\class\msc\device\udi_msc.h 157 1 PLC_CPU_BOARD

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

.Error 1 expected '=', ',', ';', 'asm' or '__attribute__'

Almost always occurs when you try to use a type that is not defied. So something like:

my_type foo;

The chances are you have not #include'd the file where the type being used on line 127 of udi_msch.h is defined.