Tool/software:
Hello everyone,
I am working on embedded development using Code Composer Studio (CCS) and I’ve encountered an issue I’d like to ask about.
My goal is to read local files on the PC through the fopen
function during simulation mode. Specifically, I would like to perform file operations on the PC file system from the target device (MCU or DSP) during the simulation.
During debugging, I’ve noticed that CCS seems to forward the fopen
function calls to the host operating system, enabling file access. I’d like to understand:
-
Are there any documents or examples that explain how CCS supports local file access in simulation mode?
-
What is the underlying mechanism for how the emulator interacts with the host operating system to access the file system?
-
Are there any specific settings in CCS or the target device that need to be configured to successfully perform these file operations?
If anyone has relevant experience or can point me to documentation, it would be greatly appreciated!
Thank you!