Help with CubeProgrammer in custom external loader when calling Write()
Hi!
I am developing a custom loader for a custom H7-board with a OSPI with a page size of 512 bytes (0x200). Naturally the programming via the Write() function needs to be optimized in programming whole pages aligned on boundaries and so on.
When debugging with a loading a testfile of 572 bytes (0x23c), the Write() is called twice with these input values from CubeProgrammer:
Write()--------------------
Address: 0x70000000
Size: 0x13c
Write()--------------------
Address: 0x7000013c
Size: 0x100I have stated page size to 512 bytes in Dev_Inf.c so it does not make sense why the first call is not made with a size of 0x200 and the second call is made with the "rest" 0x3c..
For other tests it almost appear as CubeProgrammer calls Write() with "random size chunks" and naturally causing the programming to fail.
Have I missed something here, what logic is applied in CubeProgrammer?
