Read Pflash Section

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User17320
Level 1
Level 1
First like given 10 sign-ins First question asked

Hi Guys,

I try to read the PFLASH section for the verification of the flashed software by the bootloader. The Idea behind is read the Pflash section and calculate the crc for the flashed software image. But there is no any read function in the illd. Could you help me further with this issue?

 

Best regards

 

0 Likes
1 Solution
Waldi
Level 3
Level 3
10 sign-ins 10 replies posted 5 sign-ins

You don't need any special function. It is as simple as:

uint32 value = *((uint32 *)(address));

Macros from IfxFlash_cfg.h might be useful. Please also take a look at this:

https://community.infineon.com/t5/AURIX/How-can-I-read-erased-PFLASH/m-p/317417

View solution in original post

2 Replies
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored

You could use the FCE peripheral to generate the CRC for you see the following example:

Flexible CRC Engine (FCE) example for TC375 

0 Likes
Waldi
Level 3
Level 3
10 sign-ins 10 replies posted 5 sign-ins

You don't need any special function. It is as simple as:

uint32 value = *((uint32 *)(address));

Macros from IfxFlash_cfg.h might be useful. Please also take a look at this:

https://community.infineon.com/t5/AURIX/How-can-I-read-erased-PFLASH/m-p/317417