Hi,
I have create a new S32K344 blank project in S32Ds 3.5 with RTD 4.0.0. when I am trying to debug, the execution is going to HardFault , The same goes for using sample projects,
but when i create a new blank S32K324 project, it work
Below are the steps followed to import and the build
Apart from these steps do I need to configure anything on hardware/software?
Thank you
Regards
yown
解決済! 解決策の投稿を見る。
Hi @Yown,
Are the cores decoupled or in the lockstep mode?
Can you read Processor X Configuration 2 (CPXCFG2) register.
Regards,
Daniel
Hi @Yown,
Are the cores decoupled or in the lockstep mode?
Can you read Processor X Configuration 2 (CPXCFG2) register.
Regards,
Daniel
i fix it and it works, thank you very much, Are there any references for this knowledge, For example, is the default operating mode of core is decoupled
thanks for your guidance, it took me a while to find them
so in decoupled mode, should i need to change configuration of dtcm size
S32K344 is in the lockstep mode by default, whereas S32K324 is decoupled by default.
It can be changed in the DCF record.
Here is an example that programs a new DCF record on S32K344 to decouple it:
Regards,
Daniel
Sorry Daniel, I'm a little confused, i didn't change anything but create a new project, according to the CPXCFG2, is decoupled mode, is there any project configuration wrong i should check?
at this stage, i just want to make sure S32K344 start normal, so i can keep rtos kernel develop on it , the way i fix the issue above is change itcm size to 32KB and dtcm to 64KB, seem i need to run core in lockstep
and in the example you provided, "C40_Ip_Cfg.h" missed, how can i get it
C40_Ip_Cfg.h is not missing, it is in this directory:
Example_S32K344_decouple_RTD400_Ip_C40_DS35_v1.zip\Example_S32K344_decouple_RTD400_Ip_C40_DS35_v1\generate\include
You don't have S32K344 but S32K324 now.
Check the DCF records at 0x1B000768.
If you had S32K344 with the default DCF, at 0x1B000768, there would be all 0xFFFF_FFFF.
BR, Daniel
Thanks for your patience~ it really isn't all 0xFFFF
in the board, Silicon: P32K344EHVMMS 1P55A CTSA2128A
I can't figure out their relationship, So do I need to continue to develop refer to S32K324 project?
Probably one of your colleagues decoupled the S32K344 MCU into S32K324.
You need to program a new DCF record (at the next 0xFFFF_FFFF after the current record) from an S32K324 project to make it S32K344 again.
BR, Daniel
i think the problem is about dtcm initialize, i can't step out this loop but get hardfault