Hello @tl007 ,
I've tested the generated mot file on my controller and it works. The blue LED blinks as expected. You have generated the code to be written in SRAM.
The BAM selection that I was mentioned in my previous response is used only to let you know when to restart the board. So I was not expecting this to make the code work.
Since the generated code works on my end, it is very hard to debug this on your end. The next step, in this case, would be to debug the generated code on the faulty board to see where exactly the code stops. My guess is that the problem is related to the oscillator on the board or with the external clock.
I've seen in your video that you have already tried to test the board with your own code, probably a blinker developed in the S32DS with a bare-metal code in which you were writing directly the device registers. MBDT generates code on top of the S32SDK for Power but the main difference between the MBDT generated code and what you have tried is that probably you were using the internal clock.
1. Are you able to test the generated code on another board?
2. Can you please flash the generated .elf file (it's easier to select the flash target not sram) from the MBDT in exactly the same way as you've flashed the bootloader .srec file? Also, if you try this, and enter debug mode, the S32DS will show you the stack can you please show me this?
Regards,
Marius