Tool/software: Code Composer Studio
Hi all,
We use tda2xx to communicate with MCU, the MCU send the packets to the tda2xx with 2ms period, and then wait 10ms for tda2xx reback the packets. When we remove the sd card from tda2xx board, the tda2xx generates an interrupt to handle related events(shown as below printfs), then it can't reback the packets from MCU within 10ms, it's so terrible for we need to reback the packets to MCU in time.
What shall we do with the sd card removal events?Shall we do it with polling mode?
remove printfs:
root@dra7xx-evm:~# [ 38.232174] mmc0: card 59b4 removed
Broadcast message from systemd-journald@dra7xx-evm (Fri 2020-04-24 09:14:08 UTC):
systemd[1]: Caught <ABRT>, dumped core as pid 25961.
Broadcast message from systemd-journald@dra7xx-evm (Fri 2020-04-24 09:14:08 UTC):
systemd[1]: Freezing execution.
systemd-journald[127]: Failed to send WATCHDOG=1 notification message: Connection refused
systemd-journald[127]: Failed to send WATCHDOG=1 notification message: Connection refused
systemd-journald[127]: Failed to send WATCHDOG=1 notification message: Connection refused
systemd-journald[127]: Failed to send WATCHDOG=1 notification message: Connection refused………………(repeat this printf, and the tda2xx can't reback the packets to MCU with 10ms)
insertion printfs:
root@dra7xx-evm:~# [ 62.743626] mmc0: host does not support reading read-only switch, assuming write-enable
[ 62.754761] mmc0: new ultra high speed SDR104 SDXC card at address 59b4
[ 62.773987] mmcblk0: mmc0:59b4 SDU1 58.9 GiB
[ 62.783167] mmcblk0: p1 p2
[ 63.062903] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 63.076297] EXT4-fs (mmcblk0p2): recovery complete
[ 63.081253] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
------------------------------------------------------------------------------------
By the way, our rootfs is set to read-only filesystem
Regards
Jason