7i76E hm2 driver

More
3 years 6 months ago - 3 years 6 months ago #269851 by PCW
Replied by PCW on topic 7i76E hm2 driver
long read_timeout = board->hal ? board->hal->read_timeout : 1600000;

Looks suspicious when you say an added 1.5 ms makes initialization fail.
Last edit: 3 years 6 months ago by PCW.

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #269853 by 5G-antry
Replied by 5G-antry on topic 7i76E hm2 driver
Yes, thats right. I also thought that those 1.5ms should not make a problem.
The weird thing is that the operation after initialization works stable (more or less)

I will look into it today or tomorrow and give feedback.

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #269983 by 5G-antry
Replied by 5G-antry on topic 7i76E hm2 driver
Just tried around some stuff and even if the duartion of the initialization is set very long (takes like 4 or 5 seconds to initialize without added delay on interface) it does not initialize.

What did I do:
After struggeling with hm2_eth and trying basically everything I could imagine, I changed the hardcoded delay of  "halcmd_commands.c" and "halrmt.c" to a high amount of time.
Still errors (see attachement)

Maybe it has something to do with "waitpid failed". Have to look into it

On the other side, maybe I will ignore some stuff of the code to initialize the MESA so that at leat it can start one time.
Could it also be regarding the firmware, how MESA handles stuff?

Have to look way deeper into it and will report :)

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #269986 by PCW
Replied by PCW on topic 7i76E hm2 driver
Did you change this number?
long read_timeout = board->hal ? board->hal->read_timeout : 1600000;
The following user(s) said Thank You: 5G-antry

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #270048 by 5G-antry
Replied by 5G-antry on topic 7i76E hm2 driver
I thought I did it, but it seems I had not. :laugh:
I Changed this number and it works now. Thank you!!
However, I changed different other things.

I will give an update if it also works when just this line is adapted.

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago - 3 years 4 months ago #273099 by 5G-antry
Replied by 5G-antry on topic 7i76E hm2 driver
Sorry for the late reply, but better late than never.

Everything works as expected :)
Last edit: 3 years 4 months ago by 5G-antry.

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum