Read from a file

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

cross mob
ipek
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked
I read that fopen, fread etc.. are not working (https://www.infineonforums.com/threads/5508-fopen-in-DAvE-4.3-%28erno-88%29-Socket-operation-on-non-...) is there any other way to read a file from my PC ?
I am writing a bootloader and the client (it sends hex file to the bootloader from CAN bus). My client program shall read a hex file of the main application and send it to the bootloader.
Without standart library functions, how people get hex files?

Bests,
İpek.
0 Likes
1 Reply
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Check the Semihosting chapter in the JLink user manual.
Additionally you can check https://wiki.segger.com/Semihosting (specially the section Baremetal Semihosting with Ozone)
This link also provides a nice semihosting overview, http://sushihangover.github.io/arm-cortex-m-semihosting-with-qemu/

Regards,
Jesus
0 Likes