This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WEBENCH® Tools/TMS320F28379D: is this board can run at sampling time 1e-6.

Part Number: TMS320F28379D

Tool/software: WEBENCH® Design Tools

Hi,

I hope you all are doing well. I am implementing a simulation for hardware in Matlab. The Simulink file is running at sampling time at 1e-4. At this sampling frequency, I am losing some samples, and my ADC unable to take the voltage sensing values above 2khz with the sampling time 1e-4. Then I try to dump the Simulink file at a sampling time 1e-6, it showing some error, and it not reaching the data to target also. The error like it showing is "Code replacement library must provide entries for semaphore/mutex creation."  help me get this problem out. Another error is data is not reaching your target file destination.

  • Mahesh,

    I'm going to alert the MW team to your question, as it seems specific to custom generated code for Simulink.  Certainly the ADCs on the F28379D can run at at 3.5MSPS in 12-bit mode or 1MSPS in 16-bit mode.

    Best,

    Matthew

  • Hello Mahesh,

    Please contact MathWorks Technical Support about this error. 

    I have never seen this error message, but it seems to indicate a code generation issue (code replacement library). MathWorks Tech Support will likely ask you to send them a copy of your model for analysis.

    Cheers,

    -Brian

  • Thanks for your reply, Matthew. I am running an induction motor at 1e-4 sampling time with an open loop. Now I am sensing the voltage signal at a switching frequency of 10 kHz through ADC in hardware. As per my design of the voltage sensing circuit will give a peak to peak 3.3v or less. But, input to the ADC and output of ADC is not matching. Then I thought of running my simulation at sampling time 1e-6 because of my sampling time at least ten times the switching frequency. Then I check the ADC through a function generator at sampling time 1e-4 of pulse generation wave with a duty of 50%. The rate of the pulse wave is initially 1khz later I varied the frequency, but the output of my ADC has not matched. Please tell me where I made a mistake in the simulation, what I do to run the simulation entirely at both sampling time 1e-4 and 1e-6.

  • Thanks for your reply, McKay.

    Yeah, I will contact them for this problem. If possible, will you link the MathWorks support team in this conversation? And I also ask them a question in  MathWorks help desk.

  •  The below-attached results are an image of my simulation at 1e-4. 

  • Hi Mahesh,

    MathWorks Tech Support does NOT monitor TI forums, you need to contact them directly as per my prior link. I cannot link them in a conversation on TI forums and provide to them, but you may wish to do so when you submit a ticket.

    Cheers,

    -Brian