當所有的SD卡相關的程式都寫好了,如果沒在MPLAB中作一些設定,在編譯時還是會出現error。
When all functions of SD is prepared well, errors will happen if some operations are setup in MPLAB.
1. 選擇Project -> Build Option ->Project
Select Project -> Build Option -> Project;
2. 選擇MPLAB C18的選項,在分類欄中選擇Memory Model
Click the MPLAB C18 tab and select Memory Model in Categories.
3. 設定下列選項
Set the following options:
(1) Code Model: Large code model
(2) Data Model: Large data model
(3) Stack Model: Multibank model
4. 避免"Error - could not find definition of symbol 'MDD_SDSPI_InitIO' in file './FSIO.o'."
Prevent error "Error - could not find definition of symbol 'MDD_SDSPI_InitIO' in file './FSIO.o'."
進入 Project>Built Options>Project>MPADM/C17/C18 Suite
選擇 Built Library target (invoke MPLIB)
Enter Project>Built Options>Project>MPADM/C17/C18 Suite
select Built Library target (invoke MPLIB)
設定好後,如果你的SD卡程式是ok的,應該就會work ~~~
After setting, if you sd program is ok, your function will work ~~~
留言列表