• AVR Freaks

Hot!How to use both cores on DSPIC33CH512MP508 ?

Author
belzebuth
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2020/09/07 04:55:57
  • Location: 0
  • Status: offline
2020/09/15 06:12:47 (permalink)
0

How to use both cores on DSPIC33CH512MP508 ?

Hello,
Although I have been using microchip products for several years, I am totally new to the DSPIC33CH series. Could there be an example of using 2 cores simultaneously with simulink somewhere? I tried to create two models: one with a master block and dspic33CH512MP508 and the other with a dspic33CH512MP508S1 slave block, is that a good start?
when I click on the slave block in the second model I have the following error message:
"error evaluating 'openFCn' callback of select slave image blok (mask untitled1 / SLAVE core"
there is apparently something that I do not do well ...
Thanks for your help
#1

10 Replies Related Threads

    Lubin
    Moderator
    • Total Posts : 447
    • Reward points : 5
    • Joined: 2007/03/31 07:38:15
    • Location: Bayonne, France
    • Status: offline
    Re: How to use both cores on DSPIC33CH512MP508 ? 2020/09/15 07:57:25 (permalink)
    0
    Hi,
     
    Two model for dual core is the right way to go. One for the primary core, the 2nd one for the secondary.
    The model for the primary must endow the block selecting the secondary core.
     
    Thanks for reporting the error.
    The named "slave core" block seems locked in the latest blockset release. 
    Please right click on that block and select Library Link => Disable Link. You could then open the block to change its settings.
     
    Lubin
    #2
    belzebuth
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2020/09/07 04:55:57
    • Location: 0
    • Status: offline
    Re: How to use both cores on DSPIC33CH512MP508 ? 2020/09/16 05:18:50 (permalink)
    0
     
    Hi Lubin, 






     
    Thank you for your answer, I have deleted the link with the library as you advise but unfortunately I still have the same result as shown in the screenshot below. I will try with an older version of the blockset to see if I have the same.
     

    Attached Image(s)

    #3
    belzebuth
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2020/09/07 04:55:57
    • Location: 0
    • Status: offline
    Re: How to use both cores on DSPIC33CH512MP508 ? 2020/09/16 05:52:16 (permalink)
    0
    I've replaced blockset v3.46.63 by 3.46.05 and i have the same message...(and no dspic33CH512MP508 in v3.46.05)
    #4
    wvdk
    New Member
    • Total Posts : 23
    • Reward points : 0
    • Joined: 2019/02/11 03:36:51
    • Location: 0
    • Status: offline
    Re: How to use both cores on DSPIC33CH512MP508 ? 2020/09/21 05:04:37 (permalink)
    0
    What would help, is an example in the 'MCHP_examples'.
    #5
    Lubin
    Moderator
    • Total Posts : 447
    • Reward points : 5
    • Joined: 2007/03/31 07:38:15
    • Location: Bayonne, France
    • Status: offline
    Re: How to use both cores on DSPIC33CH512MP508 ? 2020/10/06 09:36:45 (permalink)
    0
    There was an issue which is fixed.
    Please download the v.3.46.064 from the MathWorks website:
     
    I did not add an example ; let me know if you get issues or difficulties. I might post an example if required.
     
    Note: name used for the dual core are now respectively "Main" and "Secondary".
     
    #6
    belzebuth
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2020/09/07 04:55:57
    • Location: 0
    • Status: offline
    Re: How to use both cores on DSPIC33CH512MP508 ? 2020/10/07 12:56:13 (permalink)
    0
    hi Lubin,
    thank you for modifying the blockset. i have intsalled the new version but unfortunately for me the problem still persists (I use matlab 2015a) .
    when I click on the core slave block to specify the filename I always get the same message and when I try to delete the block it doesn't work either and generates another error message, I enclose two screenshots.
    Perhaps am i doing something wrong ??

    Attached Image(s)

    #7
    Lubin
    Moderator
    • Total Posts : 447
    • Reward points : 5
    • Joined: 2007/03/31 07:38:15
    • Location: Bayonne, France
    • Status: offline
    Re: How to use both cores on DSPIC33CH512MP508 ? 2020/10/07 13:09:57 (permalink)
    0
    Hi,

    The current release does not have the Slave Core block but a Secondary core block instead.
    Could you verify that the latest version is installed and not shadowed by older release ?
    Then pick the block Secondary Core.
     
    Lubin
     
    #8
    belzebuth
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2020/09/07 04:55:57
    • Location: 0
    • Status: offline
    Re: How to use both cores on DSPIC33CH512MP508 ? 2020/10/07 13:23:16 (permalink)
    0
    Sorry i called it slave core but as you can see on screenshots it is the secondary core block
    version is 3.46.064
    i have deleted the directory C:\Program Files (x86)\Microchip\MatlabTools before new installation
     

    Attached Image(s)

    #9
    Lubin
    Moderator
    • Total Posts : 447
    • Reward points : 5
    • Joined: 2007/03/31 07:38:15
    • Location: Bayonne, France
    • Status: offline
    Re: How to use both cores on DSPIC33CH512MP508 ? 2020/10/07 16:04:07 (permalink)
    0
    Hi,
     
    I confirm an issue with older matlab release (at least with R2015a and R2015b) ; not affecting recent ones.
    Will be fixed shortly.
    #10
    Lubin
    Moderator
    • Total Posts : 447
    • Reward points : 5
    • Joined: 2007/03/31 07:38:15
    • Location: Bayonne, France
    • Status: offline
    Re: How to use both cores on DSPIC33CH512MP508 ? 2020/10/09 07:12:39 (permalink)
    0
    v3.47 should fix this issue affecting "old" Matlab Release. Anyway, best to update : there are nice feature related to code generation with recent release.
    #11
    Jump to:
    © 2020 APG vNext Commercial Version 4.5