Loading a Op5130 model crashes due to share memory not cleaned

Question:

I have a model using RT-XSG and OP5130. It worked fine before. However, I have been suddenly not able to load with some errors:

****************************

ERROR:    Could not read from Base Address 0
ERROR:    Reconfig IO Controller 'OP5130': reconfigIO Ctrl Init failed
ERROR:    OpCtrl Reconfig IO: Initialization ERROR

*****************************

or

*******************************

 Wrong FPGA type or size detected:
 FPGA type number is 0, expected type was 4
 FPGA size number is 0, expected size was 7

RT-LAB wasn't able to flash the bitstream automatically.

*******************************

Answer:

This kind of error is due to the share memory that is not succefully cleaned with your last reset. You need to go the folder of </dev/shmem> on your target and remove everything inside this folder. Certainly, you can also restart your target and the share memory will be cleaned automatically.