Tool/software:
Hello Team,
we were trying to run example provided in MCAL package MCAL_MSPM0_00.02.04.00. The example is not working as expected, as MCU goes into exception (reset handler).
We have following observation:
1. CCS example: out_of_box_mspm0g3519
We flash binary of out_of_box_mspm0g3519 example provided in CCS and we can see code is running with LED blinking on the board. In this case we can see address 0x41C40034 is having value of 0x8103060A
2. MCAL Package example - dio_app
We build example according to provided steps in MCAL release notes. We downloaded the generated binary file through Lauterbach (Trace32) debugger.
when we run the example, instructions till SYSCTL->SOCLOCK.SYSPLLPARAM0 = *(volatile uint32_t *) ((uint32_t)Mcu_DrvObj->Mcu_ClockSrcConfig->Mcu_ClkSysPLLInputFreq); (in Mcu_SyspllSetting() function) get executed. As soon as above-mentioned line executes it jumps to reset handler function. Further we checked and found that there is no data on address 0x41C40034 which is available in case of CCS example.
Based on above observations we have below questions:
1. Is this Flash region written while flashing code from CCS. How it's handled?
2. Do we need to take care of writing this area while flashing. How can we handle it?
3. Or is there any reason which is affecting this?
Regards,
Rohidas