Adding ASF to Solution

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

i tried usb-cdc ASF example in studio6, its compiled and executed well. Then i launched my own application as same as usb-cdc. The problem came up during compilation what it is adding asf to the solution.
In usb-cdc example did not contain the data flash ASF in solution, even it is working. But my application i didn't add ASF to solution so it shown error. what is a way to clear this error.

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

Quote:

so it shown error

Always, always, ALWAYS include a verbatim copy of the error when posting here at AVRfreaks. Do not type it into a post. Do a mark-copy-paste.

Without the exact error message you will not likely get any good answers.

The quality of the answers you get is highly correlated with the quality of the question you ask.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

sorry for that, hereafter this will not happen...

Building error:
Error 2 at45dbx_mem.h: No such file or directory D:\paarthi\SW\Studio-6\mYPRoJECt\PLC_CPU\PLC_CPU\src\asf\common\services\storage\ctrl_access\ctrl_access.h 133 25 PLC_CPU

This is due to enable AT45DBXX data flash memory logic unit(LUN_0), same error did not come for evk1100 board as well usb-cdc example solution did not contain AT45DB ASF.

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


The quality of the answers you get is highly correlated with the quality of the question you ask.

For better understanding i attached my application zip file from that you can get more information.

Attachment(s): 

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

Finally i added all the asf module required for my project, then i got only two error and these two error represent the header file. I don't how resolve it please help me

That two error are:
1. 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

2.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

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

what is the solution for this error?