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

cross mob
uzhux040
Level 1
Level 1
First question asked Welcome!

The BMI field setting like this:

volatile const uint32 bmiField0[128] =
{
  0xB359000Eul, 0x80000000ul, 0xD97FAA13ul, 0x268055ECul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x00000000ul, 0x00000000ul, 0x00000000ul, 0x00000000ul,
  0x43211234ul, 0x00000000ul, 0x00000000ul, 0x00000000ul  /* UCB CONFIRMATION - 32-bit CODE = UNLOCKED */
};
when I burn it into TC397 board it work well, however, my startup entry is 0x8010 0000 actually. it shouldn't work if the BMI start address(0x8000 0000) didn't match the startup entry(0x8010 0000).
0 Likes
1 Solution
Aiswarya_A
Moderator
Moderator
Moderator
25 likes received 250 sign-ins 50 solutions authored

Hello, 

Please be cautious that you are using the correct CRC in the BMHD, else it could break the device. 
You can refer to the below thread and use the online CRC calculator to calculate the CRC:
https://community.infineon.com/t5/AURIX/How-to-calculate-BMHD-CRC-on-PC/td-p/319398
For example :

If  0x007E Boot Mode Index (BMI) 
0xB359 Boot Mode Header ID (CODE)  
0xA0000000 User Code start address 
Then CRC input data will be B359007EA0000000 and the CRC value will be 0x809FE5E2.
You could refer to Ifx_Cfg_SswBmhd.c file in any of the aurix code example.

Your device may be working because your debugger might be taking the start address from the elf file when you load the elf file into the debugger.

Kind Regards,
Aiswarya.

View solution in original post

0 Likes
1 Reply
Aiswarya_A
Moderator
Moderator
Moderator
25 likes received 250 sign-ins 50 solutions authored

Hello, 

Please be cautious that you are using the correct CRC in the BMHD, else it could break the device. 
You can refer to the below thread and use the online CRC calculator to calculate the CRC:
https://community.infineon.com/t5/AURIX/How-to-calculate-BMHD-CRC-on-PC/td-p/319398
For example :

If  0x007E Boot Mode Index (BMI) 
0xB359 Boot Mode Header ID (CODE)  
0xA0000000 User Code start address 
Then CRC input data will be B359007EA0000000 and the CRC value will be 0x809FE5E2.
You could refer to Ifx_Cfg_SswBmhd.c file in any of the aurix code example.

Your device may be working because your debugger might be taking the start address from the elf file when you load the elf file into the debugger.

Kind Regards,
Aiswarya.

0 Likes