DAPLink 如何制作其虚拟文件系统?

How DAPLink make its virtual file system?

我是 DAPLink 的新手。只要知道它可以将 cortex m0 芯片变成 mbed 接口,然后我们就可以编程或调试了。但是我发现mbed接口有大约8MB的U盘。它是如何工作的?众所周知,一个mbed接口芯片(如11u24)只有8KB RAM和64KB Flash。

实际上 磁盘上 space 没有 8MB,virtual file system just tells the operating system that it is 8MB large. This variable is held in vfs_user.c

然后虚拟文件系统劫持写入设备,而是通过 Debug Access Port. So there is no caching on the chip that runs DAPLink, nor is there flash required. The files that show up when you mount the drive - like mbed.htm 将它们路由到目标 MCU - 被烘焙到 ROM 中。