Hi Norman, excuse delay in answer, I've been a little busy. I tried the example of the SD card and, indeed, it calculates the size succesfully, but the problems remain and that the example can not perform both reads and writes. I tried two examples sd_card and sd_card_bench with the changes you suggested. I attached the serial outputs of the two examples.
greetings waldo