How to control CubeProgrammer with External Loader?
Hi!
I am designing a custom external loader for a OCTO SPI HyperFlash with a page size of 512 bytes. I have most things in place but still struggles with the way CubeProgrammer seems to be calling the Write() function..
More specifically CubePogrammer:
1. Does not pack data in a full page size when programming smaller loads
For load sizes bigger than 64 bytes but less than a page size, CubeProgrammer always calls Write() twice. Why is this? In such case the second call always seems to have a size even divisible by 32. As an example, programming 84 bytes will result in a first and second call to Write() having 52 and 32 bytes sizes respectively. There is a similar effect also when writing bigger data sizes.
Unfortunately, this is a problem for me since the memory I am using does not allow writing data two loads in an address sequence unless the first write ends with an address even divisible with 32 bytes. By other words, the opposite to how CubeProgrammer works.
2. Sometimes calls Write() with half pages for larger loads
Without any obvious reason, CubeProgrammer sometimes starts writing half pages of 128 bytes instead of full 512 byte pages resulting in undesirable performance. Why is this?
-Please, is there a way to control and change the above behaviour of CubeProgrammer?
-Any settings that could be used in Dev_Inf?
Many thanks in advance
