Hi, I isolated the problem and I can show it to through a simple example.
First, I only managed to reproduce the problem in encrypted session, maybe it also exist in plain, but I did not manage to reproduce it.
Here's what I did :
I authentifed my MCU with the SE050 with a key (the value is only zeroes). Then, I looped to write in a file already created with a big size (> 500), a single byte, then two bytes, and so on.
At 4 bytes, I had a 0x6a80 and then only 0x6a80 errors until I rebooted the SE050.
For your information, if instead of writing the precise number of bytes, I round the buffer length to the upper multiple of 16, I manage to write as much bytes I want without any problem.
Please find attached an encrypted set of command that is showing the problem.