Nondeterministic "error loading file"

Moderators: TomKerekes, dynomotion

gui_marchioro
Posts: 57
Joined: Sun Aug 21, 2022 11:22 pm

Re: Nondeterministic "error loading file"

Post by gui_marchioro » Fri Dec 30, 2022 7:12 pm

Hello Tom,
did you reboot KFLOP and restart KMotionCNC before running the test?
I assume you are using the files I modified?
Yes.
What does the garbage look like? Hexadecimal numbers?
In the print below you can see what is printed in the console right after the error occur. I have marked in red what is from the first M6, which is problematic, and in green the the part referring to the second M6 executed.
error_characters_printed.png
That's very interesting. That would just skip the compile step and shouldn't change anything with regard to the download or execution. Maybe change the timing?
You are right, when using the .ou file the execution is faster.
I don't think this code does anything. It just gets the current tool which is then never used.
I was missing to add and if statement in order to update a persist variable that relates to the current tool in use. Thanks for the feedback.
This is really a strange one.
Yes, it is :?

Sincerely,
Guilherme

User avatar
TomKerekes
Posts: 2506
Joined: Mon Dec 04, 2017 1:49 am

Re: Nondeterministic "error loading file"

Post by TomKerekes » Sat Dec 31, 2022 12:22 am

Hi Guilherme,

That looks like real garbage not some leftover data that KMotion would send. KMotion should never send those ASCII character codes > 127.

Since it doesn't happen for me I suppose there must be some hardware difference. Possibly some issue with the PC or possibly with KFLOP.

Could you try a different PC temporarily?

Do you have another KFLOP to try?

If you Compile/Download/Execute the M6 C Program from KMotion.exe many times does it ever fail?
Regards,

Tom Kerekes
Dynomotion, Inc.

gui_marchioro
Posts: 57
Joined: Sun Aug 21, 2022 11:22 pm

Re: Nondeterministic "error loading file"

Post by gui_marchioro » Sun Jan 22, 2023 5:55 pm

Hello Tom,
Could you try a different PC temporarily?
I tried and the problem still occurs :(
Do you have another KFLOP to try?
Unfortunatelly I don't have.
If you Compile/Download/Execute the M6 C Program from KMotion.exe many times does it ever fail?
I will try to do this and post the results here.

Sincerely,
Guilherme

Post Reply