Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to compile SD card example #6

Open
phy455 opened this issue Jul 23, 2019 · 4 comments
Open

Not able to compile SD card example #6

phy455 opened this issue Jul 23, 2019 · 4 comments

Comments

@phy455
Copy link

phy455 commented Jul 23, 2019

Hi @yachen ,

We are working on Nuvoton NUC472 and taken BSP version: 3.03.000 (Downloaded from https://github.com/OpenNuvoton/NUC472_442BSP) as per our project requirement.
We are using Tool-chain Version : arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release).

I want to use SD card example. I have taken reference example https://github.com/OpenNuvoton/NUC472_442BSP/tree/master/SampleCode/StdDriver/SD_FATFS

The problem we are facing is not able to compile the example if I am defining SD_USE_INT macro, I am not able to compile the example. I have attached a screenshot of errors.

Let me know if you need more detail.

image_2019_07_23T10_24_28_060Z

@yachen
Copy link

yachen commented Jul 24, 2019

Hi,

Please pull latest snap shot. This issue has been fixed.

Sincerely,

Yi-An Chen

@phy455
Copy link
Author

phy455 commented Jul 25, 2019

Hy @yachen,
Thanks for quick for the response, I will check it and let u know.

@phy455
Copy link
Author

phy455 commented Jul 29, 2019

hy @yachen

Compilation error is resolved.

An example is working fine but I have a doubt regarding sd card event.

I have defined SD_USE_INT in main.c and sd.c file.
Still, I am not getting any event on removing sd card as well as inserting it.

Also one question regarding printf. why we can't use printf API?
is there any limitation?

@mjchen1
Copy link
Contributor

mjchen1 commented Jul 30, 2019

Hi,
Please enable card detect interrupt as below.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants