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

compiled build? #7

Open
theIdeviceguy18383 opened this issue May 22, 2021 · 1 comment
Open

compiled build? #7

theIdeviceguy18383 opened this issue May 22, 2021 · 1 comment

Comments

@theIdeviceguy18383
Copy link

I am on Linux and I have been trying to compile, but compiling seems to only work on Mac. Can someone send a compiled version of the latest build?

@tak2hu
Copy link

tak2hu commented Apr 28, 2023

same but there's this example file

tho I got these errors

button_helper.c:53:12: error: incompatible integer to pointer conversion assigning to 'volatile uint32_t *' (aka 'volatile unsigned int *') from 'unsigned long long' [-Wint-conversion]
        gpio_base = dt_get_u32_prop("gpio", "reg") + gIOBase;
                  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
button_helper.c:54:34: error: format specifies type 'unsigned long long' but the argument has type 'volatile uint32_t *' (aka 'volatile unsigned int *') [-Werror,-Wformat]
        printf("gpio_base: 0x%llx\n\n", gpio_base);
                             ~~~~       ^~~~~~~~~
2 errors generated.

and if I revert back before this commit by git checkout e7f679f then I get this error

button_helper.c:16:33: error: incompatible integer to pointer conversion initializing 'const volatile uint32_t *const' (aka 'const volatile unsigned int *const') with an expression of type 'long' [-Wint-conversion]
const volatile uint32_t * const gpio_base = 0x20f100000;

still don't know how to solve this lol
ok solved it by using (most likely) bad code from chatgpt

const volatile uint32_t * const gpio_base = (const volatile uint32_t * const) 0x20f100000;

haven't test it yet so idk if it actually works lol (i'll try later)

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