-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
"'reinterpret_cast' from integer to pointer" error during compiling #80
Comments
Sorry it's been a while since I last compiled this project and I don't have ARM GCC installed now, so hard to advise anything. Hope what you did works. |
Hi Alexander, wondering if you can give some clarification on what the line is declaring:
So far I am not getting any serial data in at my monitor. I wonder when I deleted constexpr it did not successor define the pins on the teensy-board. Thanks! |
Those are hardware timer module definitions for different versions of teensy. For each timer, it contains interrupt number, pin numbers, etc. |
thanks Alex. I got successfully compiled and upload the original. After digging some posts in I got the Teensy to output something. Wonder do you have a more elaborate explanation on the config manual....its a bit hard to understand it. |
Are you referring to this manual? https://github.com/ashtuchkin/vive-diy-position-sensor/blob/docs/docs/manual.md I've started to write it back in the day, but didn't have time to finish. I don't have anything else, sorry. There's some more info in the issues like #65, #73. |
I could pull in a more elaborate explanation for it :-) |
Sorry it's been a long time since I last touched this project, so it would take some time for me to reestablish the context, which I don't have. Let me know if you'd like to contribute a more elaborate explanation so that other people can use it. |
Hi Alex,
Yes I would love to provide a more complete description for others. For now
I am working on other parts of my project and will circle back to it very
soon.
Thanks
…On Thu, Feb 17, 2022 at 1:22 AM Alexander Shtuchkin < ***@***.***> wrote:
Sorry it's been a long time since I last touched this project, so it would
take some time for me to reestablish the context, which I don't have. Let
me know if you'd like to contribute a more elaborate explanation so that
other people can use it.
—
Reply to this email directly, view it on GitHub
<#80 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALHICSYS4SD7WFHB23PA2ATU3SA2XANCNFSM5NNO5RRQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Hi,
I was getting this error message during compiling:
I then went to the code and changed from:
// FTM definitions: Ports, Interrupts and Input pins. constexpr static FTMDef timer_defs[] = { #if defined(__MK20DX128__) || defined(__MK20DX256__) // Teensy 3.0, 3.1, 3.2. Chip 64 LQFP pin numbers in comments. Teensy digital pins as numbers. {&FTM0_SC, IRQ_FTM0, {{/*25*/NA, /*44*/22}, {/*26*/33, /*45*/23}, {/*27*/24, /*46*/ 9}, { NA, /*49*/10},
to the following:
// FTM definitions: Ports, Interrupts and Input pins. static FTMDef timer_defs[] = { #if defined(__MK20DX128__) || defined(__MK20DX256__) // Teensy 3.0, 3.1, 3.2. Chip 64 LQFP pin numbers in comments. Teensy digital pins as numbers. {&FTM0_SC, IRQ_FTM0, {{/*25*/NA, /*44*/22}, {/*26*/33, /*45*/23}, {/*27*/24, /*46*/ 9}, { NA, /*49*/10},
After I deleted constexpr it did successfully compiled and I was able to upload the hex file to my teensy3.2 via Tycommander GUI.
The serial port currently outputs nothing, I am going to build the light sensor and set up vive lighthouse and see if I can get data.
I had checked online it seems that the later version of GCC gives this as an error rather than a warning. I am very rudimentary to cpp so I wonder if there is a better solution than a) changing the code like I did (not sure if it works) or b) installing an older version of GCC?
The text was updated successfully, but these errors were encountered: