ADC Initialization Twi Error for SC584

Hello,

I am working on a project which requires ARM(Core0) with lwIP for ethernet operation and dsp algorithms to be run on Sharc Core1. For this I have added lwIP extracted inetd example to run echo server only. Also on Sharc Core1 I have added different drivers ADC, DAC, UART, DDR, PWR, SPU etc. The main of Sharc Core1 simply initializes these drivers. The echo server in ARM runs fine but it throws an error for ADC Initialization while Twi Config while running Core1. I am not able to figure it out. The soft configuration switch is used in ARM only to enable the peripherals. Attached is the project. Any help will be appreciated.  

Thank You

Anukul Anand

ADC_DAC_Sharc.rar

Parents
  • 0
    •  Analog Employees 
    on Aug 4, 2021 5:32 AM

    Hi Anukul,

    Could you please add the softconfig files in core1. Because we are initializing all peripherals in core1.

    From your mail we understand that you were facing this issue for ADC configuration.

    Can you share the screenshot of the error when you were debugging the project.

    We created a new project and moved core1 initializing section over there. After adding softconfig file and corresponding function call we are not facing this issue.

    Please try and let us know how you are getting on.

    Best Regards,
    Santha kumari.K

  • Hello

    As per your comment I have also tried earlier with softconfig in Core 1 also but while running core 1, the echo server code in ARM stops and it throws an error: "ADAU1979: adi_adau1979_ConfigTwi failed". 

Reply Children
  • 0
    •  Analog Employees 
    on Aug 5, 2021 8:51 AM in reply to anukul90

    Hi Anukul,

    Could you please let us know whether you are using custom board or Ezkit.

    Can you create a new project and add all core1 code in that with softconfig file and let us know whether you are facing the same issue.

    This would be helpful for us to narrow down the issue.

    Best Regards,
    Santhakumari.K

  • Hello

    I am using EzKit only for the project. I have created the project and added all core 1 code with softconfig and it works fine with no issue. But My requirement is to run ethernet echo server on ARM (Core 0) and other peripherals to be initialized in Core 1 only. The above attached project has 1 softconfig in core0 and other in core1. But as per my understanding you can't use two softswitches  in both cores. That's why i disabled the core1 softswitch. So whether softconfig used in core0 works for core1 also or have to reconfigure separate. 

    Thanks

  • 0
    •  Analog Employees 
    on Aug 9, 2021 2:45 PM in reply to anukul90

    Hi Anukul,

    We are simulated the issue in SC584 ezkit. When we tried to narrow down the issue, we found that the issue is not occurred when we uncheck PA_14 pinmux in coreo. Because this pin is muxed with ADC_reset. We suspect that this may be the cause of "ADAU1979: adi_adau1979_ConfigTwi failed"

    Can you go to core0->system.svc->pinmultiplexing->uncheck PA_14 and run the project.

    Please run the project and let us know how you are getting on

    Best Regards,
    Santhakumari.K

  • Hello

    Thank you for your response. The ADC issue was solved by your valuable input. It worked fine. But the echo server that is running on core 0 is hindered as soon as I run core 1. Core 1 has only initialization of ADC, DAC, UART, DDR, GPIO. and Core 0 is having lwIP echo server running on port 7. The operation of core 0 is disturbed as soon as I ran core 1 code. Attached is the modified code. Please guide me through this issue. Hoping for favorable response.

     ADC_DAC_Sharc