Questions on EEPROM page size understanding, MemSectorBatch address, and block configuration names

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Questions on EEPROM page size understanding, MemSectorBatch address, and block configuration names

1,447 次查看
pb632146
Contributor V

Trying to implement FEE, want to make sure I understand the peripherals tab correctly.

 

pb632146_0-1736830135421.pngpb632146_0-1736830135421.png

Whenever I write to fee, will the page size always be 32? Even if I only write 1 byte which would only take up 2 bytes for number,2 bytes for size, 1 byte for actual data? Or does virtual page size just mean the maximum page size of a single "Block" for each config in the block configuration tab

 

 

Also I am porting code that has previously created defines for EEPROM addresses, that looks to this effect

pb632146_1-1736830464580.pngpb632146_1-1736830464580.png

The example code looks like this, is there a way to shorten the name generated by the block configuration to match the ones in the defines easily? So that when I pass it the defined name it writes correctly.

pb632146_2-1736830541953.pngpb632146_2-1736830541953.png

Also will I need to create a block configuration for every one of these single byte writes? I assume there I would want to set the block size to the corresponding size of what is being written to it? or would just leaving it at 32 likely be fine.

pb632146_3-1736830604878.pngpb632146_3-1736830604878.png

 

Finally is there any consideration I should use for the starting address? I assume you need to assign the corresponding amount of space used in  Mem_43_InFls Driver, but I don't know how to convert the example to one for a 342's memory space

pb632146_4-1736831023888.pngpb632146_4-1736831023888.png

this is the default in the 344 example, but I am using a 342 so I do know where the memory should start and end

 

 

0 项奖励
回复
1 回复

1,439 次查看
pb632146
Contributor V
Additionally, Fee_Read wants the length of the bytes to be read, but if I always want to read the full length of the block is there any easy way to not have to derive or store the length of the block elsewhere?
0 项奖励
回复