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

cross mob
Translation_Bot
Community Manager
Community Manager
Community Manager

Hello:

The board is TC389, an explanation of the function FLSLoader_erase:

FLSLoader_ReturnType FLSLoader_erase (const FLSLoader_AddressType targetAddress, const FLSLoader_lengthType Length);
 
where Length: Number of Flash (pFlash or dFlash) sectors to be erased .
 
Note: Number of sectors should lie within a single flash bank. ERASE OPERATION ACROSS THE FLASH BANKS IS NOT SUPPORTED. targetAddress: Target address in flash memory. It should be aligned to the following sector sizes of the selected flash for erase.
pFlash: 16 Kbyte
dFlash: 4 Kbyte
 
I did a test to erase UCB using this interface. The erasing address was 0xaf400200, and the length was 1 sector, but the content of 1 UCB 512 bytes was erased, not 8 UCB 4Kbytes long. I want to ask if this situation is normal. If I want to erase the UCB (0xaf402804, 0xAF402818 UCB) that is configured to start with HSM, can I also use this interface. Will the UCB before and after be erased together?

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/%E4%BD%BF%E7%94%A8FlsLoader-Erase%E6%93%A6%E9%99%A4UCB%E7%9A%84%E8%AF%A2%E9%97%AE/td-p/671958

0 Likes
1 Solution
Translation_Bot
Community Manager
Community Manager
Community Manager

Logical Sectors: A physical sector is further separated into logical sectors. A logical sector is a group of
wordlines for PFLASH and DFLASH, and a single wordline for UCB. A logical sector can be erased with a
single operation. The plain term “sector” means “logical sector”.

Wordline: An aligned group of bytes:
— PFLASH: 1024 bytes.
— DFLASH: 512 bytes in single ended mode and 256 bytes in intensive sensing mode.

As can be seen from the aurixTC3XX_UM_part1_v2.0.pdf file, for UCB, a wordline is 512 or 256 bytes and is called a logical sector. Therefore, erasing UCB and dflash/pflash refer to different sector definitions.

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/%E4%BD%BF%E7%94%A8FlsLoader-Erase%E6%93%A6%E9%99%A4UCB%E7%9A%84%E8%AF%A2%E9%97%AE/m-p/672295

View solution in original post

0 Likes
3 Replies
Translation_Bot
Community Manager
Community Manager
Community Manager

Another question. When we read the two UCBs 0xaf400e00 and 0xAF401E00, we found that they were unreadable. Is this a permission requirement for the chip?

 

 

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/%E4%BD%BF%E7%94%A8FlsLoader-Erase%E6%93%A6%E9%99%A4UCB%E7%9A%84%E8%AF%A2%E9%97%AE/m-p/672208

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager

Logical Sectors: A physical sector is further separated into logical sectors. A logical sector is a group of
wordlines for PFLASH and DFLASH, and a single wordline for UCB. A logical sector can be erased with a
single operation. The plain term “sector” means “logical sector”.

Wordline: An aligned group of bytes:
— PFLASH: 1024 bytes.
— DFLASH: 512 bytes in single ended mode and 256 bytes in intensive sensing mode.

As can be seen from the aurixTC3XX_UM_part1_v2.0.pdf file, for UCB, a wordline is 512 or 256 bytes and is called a logical sector. Therefore, erasing UCB and dflash/pflash refer to different sector definitions.

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/%E4%BD%BF%E7%94%A8FlsLoader-Erase%E6%93%A6%E9%99%A4UCB%E7%9A%84%E8%AF%A2%E9%97%AE/m-p/672295

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager

Thank you so much!

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/%E4%BD%BF%E7%94%A8FlsLoader-Erase%E6%93%A6%E9%99%A4UCB%E7%9A%84%E8%AF%A2%E9%97%AE/m-p/672298

0 Likes