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

FlexIOSPI_Simple hangs Teensy 4.1 #6

Open
shreekumar3d opened this issue Apr 14, 2021 · 2 comments
Open

FlexIOSPI_Simple hangs Teensy 4.1 #6

shreekumar3d opened this issue Apr 14, 2021 · 2 comments

Comments

@shreekumar3d
Copy link

shreekumar3d commented Apr 14, 2021

When this sketch is uploaded, nothing shows up on the serial monitor.

I looked at the code - found that the flex hardware arrays are not initialized right. For now my simple fix is adding a parenthesis to delimit the arrays.

Also, if initialization fails it's best not to proceed with the code. An infinite loop helps the user see the error messages & upload the code again without having to deal with the hung teensy.

These changes are in my repo https://github.com/shreekumar3d/FlexIO_t4 . I can submit pull requests too.

Thanks for your work on this, btw. This is a good starting point for my exploration of the FlexIO on the Teensy.

@KurtE
Copy link
Owner

KurtE commented Apr 14, 2021

Sorry,

I was in the process of updating the FlexIO library, to hopefully handle all of the Shifters and Timers. The manual mentions that there are 4 and 4 but actually there is 8 and 8...

Also There was some stuff off in the one of the sketches that was crashing as I was trying to print out the configuration registers, but I had not enabled the clock for all of the timers.

I just verified I can output one simple Flex Serial and read it back in on Serial using Beta Sparkfun Micromod.

you might check to see if the new stuff works now for you. Also can always send a PR and I can take a look and probably pull in.

Thanks again

@shreekumar3d
Copy link
Author

shreekumar3d commented Apr 14, 2021

No probs. The serial works for me without issues.

I am mostly struggling with SPI at the moment. The SPI data lane & CS both work fine. However, I don't see any clock output. Any clues for me ?

SPI also works. Probably a probing issue on my part. Thanks again!

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