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

gcc doesn't like __far in pru_cfg.h #55

Open
WalterCEden opened this issue Apr 9, 2021 · 1 comment
Open

gcc doesn't like __far in pru_cfg.h #55

WalterCEden opened this issue Apr 9, 2021 · 1 comment

Comments

@WalterCEden
Copy link

I'm trying to run the PRU ADC c example at https://github.com/beagleboard/cloud9-examples/blob/master/PocketBeagle/TechLab/.challenges/analogIn.pru0.c

I'm running it with Cloud9's IDE and it's failing on the __far syntax in the pru_cfg.h file. Here's the specific line

volatile __far pruCfg CT_CFG attribute((cregister("PRU_CFG", near), peripheral));

Now I get a far type but this is __far so what's the problem and how do I fix this?

@PierrickRauby
Copy link

I think you need to use the pru C compiler to compile PRU codes and not GCC

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

2 participants