How to protecting *.prm file using processor expert?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to protecting *.prm file using processor expert?

Jump to solution
541 Views
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 Kudos
1 Solution
341 Views
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

View solution in original post

1 Reply
342 Views
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