公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

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

cross mob
ytx
Level 2
Level 2
10 replies posted First like given 5 sign-ins

您好:

板子是TC389,函数FlsLoader_Erase的解释:

FlsLoader_ReturnType FlsLoader_Erase(const FlsLoader_AddressType TargetAddress,  const FlsLoader_LengthType Length);
 
其中 Length: Number of Flash (PFlash or DFlash) sectors to  be erased.
 
Note: Number of sectors should lie within  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
 
我做了使用该接口擦除UCB的测试,擦除地址是0xaf400200,长度是1个sector,但是只擦除了1个UCB 512字节的内容,并不是8个UCB 4Kbyte的长度,想询问下这种情况是正常的吗,如果我要擦除配置HSM启动的这个UCB(0xaf402804, 0xaf402818这个UCB)的话,是不是也是可以用这个接口呢,会将前后的UCB一起擦除吗?
0 点赞
1 解答
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

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 complement sensing mode.

从AURIXTC3XX_um_part1_v2.0.pdf文件中可以看到,对于UCB而言,一个wordline是512或256字节,被称为一个逻辑扇区。因此擦除UCB和DFLASH/PFLASH所指的sector定义是不同的。

在原帖中查看解决方案

3 回复数
ytx
Level 2
Level 2
10 replies posted First like given 5 sign-ins

还有一个问题,我们读取0xaf400e00 以及 0xaf401e00这两个UCB的时候,发现是不可读的,这个是芯片的权限要求吗?

 

 

0 点赞
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

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 complement sensing mode.

从AURIXTC3XX_um_part1_v2.0.pdf文件中可以看到,对于UCB而言,一个wordline是512或256字节,被称为一个逻辑扇区。因此擦除UCB和DFLASH/PFLASH所指的sector定义是不同的。

ytx
Level 2
Level 2
10 replies posted First like given 5 sign-ins

非常感谢!

0 点赞