4 Replies Latest reply on Jan 25, 2016 1:43 PM by user_611219

    AN499433 adaptation problem

    user_543492

      I'm trying to adapt AN499433 to a CY8C24794 controller.  When I generate and compile, I get the follow errors:

         

      !E <library>(652): {linker} multiple define: 'USBUART_CurrentTD'
      !E <library>(653): {linker} multiple define: 'USBUART_bCurrentDevice'
      !E <library>(654): {linker} multiple define: 'USBUART_EndpointAPIStatus'
      !E <library>(655): {linker} multiple define: 'USBUART_TransferBuffer'
      !E <library>(656): {linker} multiple define: 'USBUART_t0'
      !E <library>(657): {linker} multiple define: 'USBUART_t1'
      !E <library>(658): {linker} multiple define: 'USBUART_fDataPending'
      !E <library>(659): {linker} multiple define: 'USBUART_StatusBlockPtr'
      !E <library>(660): {linker} multiple define: 'USBUART_t2'
      !E <library>(661): {linker} multiple define: 'USBUART_DataPtr'
      !E <library>(662): {linker} multiple define: '_USBUART_Configuration'
      !E <library>(663): {linker} multiple define: 'USBUART_EndpointStatus'
      !E <library>(664): {linker} multiple define: '_USBUART_InterfaceSetting'
      !E <library>(665): {linker} multiple define: '_USBUART_EPDataToggle'
      {linker} Too many errors, exiting...

         

      Evidently, the linker is trying to link usbuart_custom.o as well as usbuart_drv.o, causing the definition overlap.  It's not clear to me how the original linker managed to overcome this problem.

         

      Any help wold be appreciated.

         

       

         

      Don