---
title: "W7500P, fopen()"
url: "https://maker.wiznet.io/forum/13753"
markdown_url: "https://maker.wiznet.io/forum/13753/md"
type: "Forum topic"
category: "MCU & Boards"
author: "Yongjin Jang"
created: "2020-03-23T07:59:54+09:00"
last_activity: "2020-03-24T01:01:32+09:00"
language: "ko"
views: 543
replies: 2
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# W7500P, fopen()

## Question

Asked by Yongjin Jang on 2020-03-23 in MCU & Boards.

안녕하세요,

wizwiki-W7500P의 SSP1을 이용하여
SD Card에 File R/W를 하려고 합니다.

os.mbed에 있는 예제로 테스트 중인데,
SDFileSystem_HelloWorld_WIZwiki-W7500 => wizwiki-W7500 동작이 되는데
SDFileSystem_HelloWorld_WIZwiki-W7500 => wizwiki-W7500P 동작이 되지 않네요.
=> 첫 시작이 printf(“Hello World!\n”); 인데 터미널에서는 He만 나오고 진행이 안됩니다.

## Replies

### Reply 1 by becky, 2020-03-24

안녕하세요

현재 mbed 측의 라이브러리 업데이트 후,
위즈네트 모듈 부분이 적용되지 않은 상태입니다.

![](https://github.githubassets.com/favicons/favicon.svg) [github.com](https://github.com/Wiznet/W7500P/tree/master/W7500P_FW/Projects/Peripheral_Examples/SSP)

### [W7500P/W7500P_FW/Projects/Peripheral_Examples/SSP at master · Wiznet/W7500P](https://github.com/Wiznet/W7500P/tree/master/W7500P_FW/Projects/Peripheral_Examples/SSP)

[master/W7500P_FW/Projects/Peripheral_Examples/SSP](https://github.com/Wiznet/W7500P/tree/master/W7500P_FW/Projects/Peripheral_Examples/SSP)

Contribute to Wiznet/W7500P development by creating an account on GitHub.

가능하시다면 Keil 프로젝트로된 위의 코드를 사용하시는것을 추천드립니다.

### Reply 2 by Yongjin Jang, 2020-03-24 (in reply to reply 1)

네, 알겠습니다.
WIZWIK-W7500P 모듈의 경우 대부분 그런것 같네요.

추가 질문 입니다.
원래 하려고 했던것은 fopen(,)를 사용하려고 하는데
Wiznet에서 제공된 Keil, SSP 어플리케이션에서(다른 예도 마찬가지이지만) retarget.c를 같이 사용하며fopen()을 사용하면

fp = fopen(“/sd/mydir/sdtest.txt”, “w”);

```
if(fp == NULL)
{
    //error("Could not open file for write\n");
}
fprintf(fp, "Hello fun SD Card World!");
fclose(fp);
```

=>
.\Objects\BX6416R10_W7500P_R100_20200217.axf: Error: L6200E: Symbol __stdout multiply defined (by stdio_streams.o and retarget.o).
.\Objects\BX6416R10_W7500P_R100_20200217.axf: Error: L6200E: Symbol __stdin multiply defined (by stdio_streams.o and retarget.o).

이런 메세지가 발생합니다.

---

Source: https://maker.wiznet.io/forum/13753
