How to protecting *.prm file using processor expert?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to protecting *.prm file using processor expert?

跳至解决方案
710 次查看
nakchoonlee
Contributor I

Hi. I'm working using MC9S08DZ32 with processor expert(PE).

I make checksum for code crc in prm file as follow.

CHECKSUM

    CHECKSUM_ENTRY

        METHOD_CRC_CCITT

        OF      READ_ONLY   0x7C00 TO   0xFFFD

        INTO    READ_ONLY   0xFFFE SIZE 2

        UNDEFINED 0xFF

    END

END

But auto generated prm file removes above code.

How to protecting my checksum code?

One solution is freeze generate code but If I miss that when modify PE, code releases without code crc.

Please let me know awesome solution.

Thanks.

0 项奖励
回复
1 解答
510 次查看
marek_neuzil
NXP Employee
NXP Employee

Hello,

You can use the Generate PRM file property in the CPU - Build Option tab. Open the Component Inspector of the CPU in your project, select the Build Options tab, set the value of the Generate PRM file to no. The PRM file will not be re-generated, i.e. you can modify it.

pastedImage_5.png

Best Regards,

Marek Neuzil

在原帖中查看解决方案

1 回复
511 次查看
marek_neuzil
NXP Employee
NXP Employee

Hello,

You can use the Generate PRM file property in the CPU - Build Option tab. Open the Component Inspector of the CPU in your project, select the Build Options tab, set the value of the Generate PRM file to no. The PRM file will not be re-generated, i.e. you can modify it.

pastedImage_5.png

Best Regards,

Marek Neuzil