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

Null pointer issue in TCPStream.c #5

Closed
andrewmarles opened this issue Jun 24, 2021 · 2 comments
Closed

Null pointer issue in TCPStream.c #5

andrewmarles opened this issue Jun 24, 2021 · 2 comments

Comments

@andrewmarles
Copy link
Contributor

I think there might be a problem with TCPStream.c that breaks ethernet on the IMXRT1062 at the moment. I am pretty sure that the call hal.stream_select(NULL) goes nowhere and so while you can enable ethernet and the device will come up and ping, as soon as you open a telnet session and send a command it immediately locks up the board.

I reverted these calls to the previous selectStream function and it appears to work ok - I can open a telnet session and interact with the device as expected.

If there are updates needed to the iMX driver to align it with the updated stream switching functionality, I can certainly take a crack at a PR if there is an example driver that is known to work. It looks to me like it is just that the stream_select function pointer isn't defined in the driver.

Cheers,

@terjeio
Copy link
Contributor

terjeio commented Jun 24, 2021

Are you sure your source code is up to date and that the Arduino IDE is using it? Line 2222 in driver.c sets the function pointer as it should - and it works for me, albeit with an yet to be released driver.c:

hal.stream_select = selectStream;
hal.stream_select(&serial_stream);

@andrewmarles
Copy link
Contributor Author

Thanks, my bad. I had not merged properly with some local driver updates.

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