MCXN947 problems with multicore application development

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCXN947 problems with multicore application development

Jump to solution
328 Views
embedbytes
Contributor III

Can anyone over any guidance on developing a multicore application for the MCXN947. More specifically I would like a multicore application that allows both cores to run from FLASH. I have been working with the example program "frdmmcxn947_rpmsg_lite_pingpong_rtos_primary_core". I have attempted multiple  changes to the linker files and core boot addresses but cannot get the second core running. I have verified the second core code and ISR vector are at the correct place but as soon as the code tries to release the second core from reset the system crashes. I am trying to run core 0 from the first 512k of flash and the second core from the second 512k of flash with now luck. I am looking for the secret if any has one.

Labels (1)
0 Kudos
Reply
1 Solution
306 Views
embedbytes
Contributor III

I Believe have resolved the issue. The key was adding (1) to the start address of the secondary core code when calling MCMGR_StartCore(), as follows.

 

MCMGR_StartCore(kMCMGR_Core1, 0x00080001U, NULL, kMCMGR_Start_Synchronous);


The +1 ensures the Thumb bit is set.

View solution in original post

0 Kudos
Reply
1 Reply
307 Views
embedbytes
Contributor III

I Believe have resolved the issue. The key was adding (1) to the start address of the secondary core code when calling MCMGR_StartCore(), as follows.

 

MCMGR_StartCore(kMCMGR_Core1, 0x00080001U, NULL, kMCMGR_Start_Synchronous);


The +1 ensures the Thumb bit is set.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2200905%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMCXN947%20problems%20with%20multicore%20application%20development%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2200905%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ECan%20anyone%20over%20any%20guidance%20on%20developing%20a%20multicore%20application%20for%20the%20MCXN947.%20More%20specifically%20I%20would%20like%20a%20multicore%20application%20that%20allows%20both%20cores%20to%20run%20from%20FLASH.%20I%20have%20been%20working%20with%20the%20example%20program%20%22frdmmcxn947_rpmsg_lite_pingpong_rtos_primary_core%22.%20I%20have%20attempted%20multiple%26nbsp%3B%20changes%20to%20the%20linker%20files%20and%20core%20boot%20addresses%20but%20cannot%20get%20the%20second%20core%20running.%20I%20have%20verified%20the%20second%20core%20code%20and%20ISR%20vector%20are%20at%20the%20correct%20place%20but%20as%20soon%20as%20the%20code%20tries%20to%20release%20the%20second%20core%20from%20reset%20the%20system%20crashes.%20I%20am%20trying%20to%20run%20core%200%20from%20the%20first%20512k%20of%20flash%20and%20the%20second%20core%20from%20the%20second%20512k%20of%20flash%20with%20now%20luck.%20I%20am%20looking%20for%20the%20secret%20if%20any%20has%20one.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2200905%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ECore%20and%20Memory%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2200962%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCXN947%20problems%20with%20multicore%20application%20development%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2200962%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20Believe%20have%20resolved%20the%20issue.%20The%20key%20was%20adding%20(1)%20to%20the%20start%20address%20of%20the%20secondary%20core%20code%20when%20calling%20MCMGR_StartCore()%2C%20as%20follows.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EMCMGR_StartCore(kMCMGR_Core1%2C%200x00080001U%2C%20NULL%2C%20kMCMGR_Start_Synchronous)%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThe%20%2B1%20ensures%20the%20Thumb%20bit%20is%20set.%3C%2FP%3E%3C%2FLINGO-BODY%3E