Smoothieware / Smoothie2-old

(Deprecated attempt at) A Smoothie firmware port to the Smoothieboard v2 boards.
GNU General Public License v3.0
34 stars 22 forks source link

Motor control not working #28

Closed marcosfg closed 7 years ago

marcosfg commented 8 years ago

I hooked up some drivers to my bambino 210E board to start testing the firmware step generation.

When I send a G0/1 command the firmwares stops responding and the motors are blocked but do not move.

The G28 command replies "OK" and brakes the motor, but no movement.

I am currently using a Bambino with the virtual com port firmware, and I'm using a JTAG probe to flash and debug.

Has anyone had this problem?

DouglasPearless commented 7 years ago

I have updated my repo https://github.com/DouglasPearless/Smoothie2 to my current migration, currently working on the extruder code (i.e. what to replace THEKERNEL->robot->delta_move() with), plus other items. The code is certainly not finished, but as @marcosfg wants to help, I have made it available.

It includes the Segger SystemView code in /src/Segger_SystemView for debugging using one of their JTAG probes.

NOTE: there will be quite a few bugs and some of the code may not be correct, but it is available for review and feedback :-)

wolfmanjm commented 7 years ago

@DouglasPearless wjy would you replace delta_move? that is the new way to move things in the new code.

wolfmanjm commented 7 years ago

I also believe the Segger stuff is not open source so you cannot stick it in the repo. (even yours)

DouglasPearless commented 7 years ago

Oops, removed; that was definitely an oversight!

On 23/10/2016, at 7:11 AM, Jim Morris notifications@github.com wrote:

I also believe the Segger stuff is not open source so you cannot stick it in the repo. (even yours)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Smoothieware/Smoothie2/issues/28#issuecomment-255544422, or mute the thread https://github.com/notifications/unsubscribe-auth/ADkh-xg9UIN9dQG-lsVGp6VmyNu5Azd7ks5q2lHfgaJpZM4JtS0B.

DouglasPearless commented 7 years ago

Ah Ha!

Time to read more code to see how it works.

Cheers Douglas

On 23/10/2016, at 7:11 AM, Jim Morris notifications@github.com wrote:

@DouglasPearless https://github.com/DouglasPearless wjy would you replace delta_move? that is the new way to move things in the new code.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Smoothieware/Smoothie2/issues/28#issuecomment-255544386, or mute the thread https://github.com/notifications/unsubscribe-auth/ADkh-zkDjuran7PkRoetZZdW5e-hblVPks5q2lG4gaJpZM4JtS0B.

DouglasPearless commented 7 years ago

Just a quick update, I have ported most of the code that does not use USB, Ethernet nor SD-Card, now I am debugging and getting it working properly.

it is not yet fir for use, but getting there.

Cheers Douglas

On 23/10/2016, at 10:59 AM, douglas Douglas.Pearless@pearless.co.nz wrote:

Ah Ha!

Time to read more code to see how it works.

Cheers Douglas

On 23/10/2016, at 7:11 AM, Jim Morris <notifications@github.com mailto:notifications@github.com> wrote:

@DouglasPearless https://github.com/DouglasPearless wjy would you replace delta_move? that is the new way to move things in the new code.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Smoothieware/Smoothie2/issues/28#issuecomment-255544386, or mute the thread https://github.com/notifications/unsubscribe-auth/ADkh-zkDjuran7PkRoetZZdW5e-hblVPks5q2lG4gaJpZM4JtS0B.