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

AURIX™ Forum Discussions

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

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
10 replies posted 5 sign-ins 5 replies posted
Level 3

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
25 likes received 25 solutions authored 100 sign-ins
Employee

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
10 replies posted 5 sign-ins 5 replies posted
Level 3

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