cancel
Showing results for 
Search instead for 
Did you mean: 

gcc and PCROP

Michael Schmid
Associate III
Posted on August 17, 2017 at 12:59

Dear all,

the readout protection of the L4, F4 and F7 MCUs is supported with build-tools form Keil and IAR. The 3 application notes, i have read, states that one of these IDEs must be used. Since the newer arm-none-eabi-gcc also supports -mpure-code parameter, i wonder is someone can use the gcc based tools as well to use the PCROP features.

1) Is the arm-none-eabi-gcc -mpure-code switch equal to the Keil/IAR code switches?

2) Is ST Micro planning to show an example of PCROP with ether F4/L4/F7 with a gcc based tool chain?

It would be great for us, if we not need to change the tool chain, and could use the gcc based tool chain to PCROP-protect out code.

best regards,

Michael 

#pcrop #pcrop-code-protection-gcc #code-protection #stm32f7 #stm32l4 #stm32f4
1 REPLY 1
Amel NASRI
ST Employee
Posted on August 17, 2017 at 16:41

Hi

schmid.michael.002

‌,

There are 3 separate PCROP related application notes: AN4701 (F4), AN4758 5L4) and

http://www.st.com/content/ccc/resource/technical/document/application_note/group0/3d/86/0f/38/1c/d4/4b/58/DM00346619/files/DM003466pdf/jcr:content/translations/en.DM003466pdf

(F7).

The F7 application note describes the required configuration to use PCROP with the 3 toolchains:IAR Embedded Workbench®, Keil® µvision IDE andSW4STM32.

So the GCC compiler is already supported.

The dedicated example with gcc based toolchainis located underX-CUBE-PCROP\STM32CubeExpansion_AN4968_F7_V1.0.0\Projects\STM32F722ZE-Nucleo\Step1-ST_Customer_level_n\SW4STM32 orX-CUBE-PCROP\STM32CubeExpansion_AN4968_F7_V1.0.0\Projects\STM32F722ZE-Nucleo\Step2-ST_Customer_level_n+1\SW4STM

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.