Tool/software:
Hi Everyone,
I'm currently facing an issue with a board equipped with F28386D where the code is not starting.
While using the same code on the DemoBoard is all fine.
I tried also with a LED example code and also this one is not booting on my board.
By looking at XRSTn signal I can see a drop to GND every 15ms with a duration of 25us (we are using 200MHz clock) which suggest me the watchdog intervention.
The WD is disabled from the .asm file
WD_DISABLE .set 1 ;set to 1 to disable WD, else set to 0
so this makes me think that it is the NMWI that reset the uP.
By adding some while(1) loops in the code I identified that the code is running until these 2 lines
DevCfgRegs.CPUSEL15.all = 0x000000FFU; DevCfgRegs.CPUSEL12.all = 0x000000FFU;
which are generated by the Build from Matlab/Simulink that should associate CMPSS and CLB to CPU2.
My code, which runs only on CPU1, is not using such peripherals so it makes sense that are not associate to CPU1.
If I comment these two lines everything is fine and my code is able to boot and run perfectly on my board.
What is not clear to me is why I have to comment such lines and why I get a different behavior from the demo board.
Any ideas on this? I'm questioning both HW and SW/Configuration issue.
Additionally, for a code that is not using CPU2 and CM what is the best thing to do? Erase the flash of such CPUs and leave it unprogrammed?

