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.

MCU-PLUS-SDK-AM243X: Change CPU0_C1 by CPU0_C0 Projekt

Part Number: MCU-PLUS-SDK-AM243X
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi all, 

we use the Am243xLP board and the CCS.

Our first evaluation should look like this:

  • CPU0_Core0 is used for our real-time and a freertos-
  • CPU0_Core1 is used for the fieldbus.

I have set up such a project:

CPU0_Core0:

  • Timer Irq for realtime
  • Freertos to evaluate the notifications that come from the CPU0_Core1. 

CPU0_Core1:

  • Freertos -> send Notify
  • The M4 CPU just says "hello".

 

So my project consists of the 3 projects for the 3 CPU's and the

system project "MultiCore_R5".

The projekt works fine.

And here is my question:

I would like to swap my empty_am243x-lp-r5fss0-1_freertos (CPU0_Core1)

project with the example cia401demo_r5fss0-0 (CPU0_Core0).

 

I dont know exactly how I should handle the sysConfig file.  Can someone show me the right way?

 

Thank you.

 

Best regards,

Alexander

 

  • Hello Alexander,

    Thanks for your query.

    I would like to swap my empty_am243x-lp-r5fss0-1_freertos (CPU0_Core1)

    You can do so by modifying the empty example of R5F0-1 core. Add the sysconfig and source code related changes from R5F0-0 core to empty R5F0-1 core.

    Make sure you have done the proper resource allocation for R5F0-1 core. Please refer RESOURCE_ALLOCATION_GUIDE for details.

    Regards,

    Tushar

  • Hello Tushar,

    Thanks for the reply.

    Then I'll take a look at the Resoure_Allocation_Guide.

    Regards

    Alexander

  • Hello Alexander,

    Then I'll take a look at the Resoure_Allocation_Guide.

    Thanks for the above note.

    Regards,

    Tushar

  • Hello Tushar,

    i read the resource allocation document for more information. Thank you very much for that.

    But these resource configurations refer to the assignment of the hardware. I don't want to change that, I continue to use the Launchpad board.

    Unfortunately, I couldn't see what exactly the steps are that I have to do for switching from R5F0_0 core to R5F0_1 core.

    You said:

    Add the sysconfig and source code related changes from R5F0-0 core to empty R5F0-1 core.“

    Can you explain to me exactly what changes have to be made to change the example from the R5F0_0 core to the R5F0_1?

    Regards

    Alexander

  • Hello Alexandar,

    Can you explain to me exactly what changes have to be made to change the example from the R5F0_0 core to the R5F0_1?

    It is similar to create a project with custom changes done on the empty project provided in the SDK.

    Import the empty project for R5F0-1 core and copy all the code from R5F0-0 core. Add the peripherals/modules in the example.syscfg file as you did for R5F0-0 core example.

    Please let us know if you face any issues.

    Regards,

    Tushar

  • Hallo Tushar

    Thank you for your really quick response.

    Ok, I have to import the empty project for the R5F0_1 core. Then I copy the code into my system project, and add the sysconfig.

     But there is one practical question remaining.

    The sources of the cia402 demo project will be created as a link in the ccs project.

    How can I import the links for the sources and the paths/variable settings from the source project into my empty project.

    Unfortunately, Import Settings does not work. No settings to import are displayed.

    What can I do?

    Regards,

    Alexander

  • Hi Alexandar,

    To add the files in the existing project, please follow below steps.

    Right click on the project and select Add files option, navigate to the path of file.

    Select the option Link to Files and check the option Create Link locations relative to PROJECT_LOC.

    Please refer below image.

    Regards,

    Tushar

  • Hi Tushar

    It's great that you answer my questions so diligently.

    I still have a question of understanding:

    Why don't we just change the context parameter for the sysconfig rule

    from r5fss0-0 to r5fss0-1 to make the project run on the other cpu?

    Regards

    Alexander

  • Hi Alexander,

    Why don't we just change the context parameter for the sysconfig rule

    It can be done, but there is not a single change that you can do and build the example. 

    You will need to change makefiles, projectspecs or may be compiler flags also(this setting will change drastically if the core architecture change, like moving from R5F to M4F). It will be tedious task to do all. That's why the simple task is to take an empty example and copy all your code onto it.

    Hope the above clarifies.

    Regards,

    Tushar

  • Hi Tushar,

    As you recommended, I have now created an empty system project, and copied the sources and include paths from the Ethercat example into it.

    Now I'm trying, as you said, to take over the sysconfig settings as well.

    Unfortunately, the complete Ethercat configuration option is missing in the system config.

    In the Ethercat example, it looks like this:

    I assume that it is because the empty system example comes from the mcu SDK,

    but the ethercat example comes from the ind_comm SDK.

    What can I do now?

    Regards,

    Alexander

  • Hi Alexander,

    Have you taken the example from same MCU+SDK package that is provided with Industrial Communication SDK?

    Regards,

    Tushar

  • Hi Tushar

    Yes, it's the Empty System example from the Industrial Communication SDK.

    But when I look at the properties it says:

    Greetings from Germany

    Alexander

  • Hi Alexandar,

    I think this is the problem. Because the MCU+SDK example will not have option to enable industrial communication module from Sysconfig.

    As the project property say that it is using MCU+SDK v10.01 which is not correct. 

    Please change the SDK to Indus Comms like below

    After changing, please click on Apply and close button. Please let us know if this works.

    Regards,

    Tushar

  • Yes, that was the problem.

    Now I can configure Ethercat. Thank you very much for your help.

    Let's see what happens next.

    Regards

    Alexander

  • Hi Alexandar,

    Thanks for the confirmation.

    Once you are able to make things working, please close this thread. 

    Please feel free to create new threads if you face any issues.

    Regards,

    Tushar