Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

XMC™ Forum Discussions

User16529
Level 4
Level 4
First solution authored
Hi!
I want to embedd in my code the possibility to open and read a file from a directory in my PC. I've used fopen with the path of the file, but it doesn't work, it can't find the file. Is there a better way to do that? I can't use external storage device, such as SD or USB.
Thank you,
Janet
0 Likes
3 Replies
jferreira
Employee
Employee
First like received 750 replies posted 500 replies posted
Hi,

Have a look at https://wiki.segger.com/Semihosting
The linked example, https://wiki.segger.com/images/a/ad/STM32F407_Semihosting_Eclipse.zip, can be easily ported to XMC.

Regards,
Jesus
0 Likes
User16529
Level 4
Level 4
First solution authored
Thank you very much!

Now I have a question: is it possible to transfer a file from an extern device to the xmc4800 through SPI and read it? In my company we want to embed the xmc4800 in our system and we need to send files to the xmc that will read them and do some stuff according to the data in the files.

Janet
0 Likes
User16529
Level 4
Level 4
First solution authored
Any advise please?
0 Likes