Coder Social home page Coder Social logo

Comments (24)

adamgreen avatar adamgreen commented on August 19, 2024

I would start by reading my comments on issue #12 (comment)

I have some experience with the Bambino210E which is the mbed compatible board but not the Bambino200 which is the Microsoft Gadgeteer compatible board so I am not certain about the UART. It doesn't look like you can use P3_4/P3_5 on that Bambino200 board for serial though since it looks like those pins are used for interfacing to the SPIFI flash. Where on the board are you trying to connect to get serial output? That would indicate which pins you should specify in that SerialConsole constructor.

from smoothie2-old.

chrisbrent avatar chrisbrent commented on August 19, 2024

Hi Adam,
After writing this I found http://wiki.micromint.com/index.php/Bambino-200_Manual/User_Interfaces,_Connectors,_and_Jumpers and noticed the same thing as you. I changed the SerialConsole constructor to use new SerialConsole(P6_5, P6_4, 9600) which should map to pin 4 and 5 on socket 2 (or I, P, S, U, Y in gadgeteer speak) I still can't get anything from the console. I've also changed the secondary console to new SerialConsole(P2_11, P2_10, 9600) which should map to pins 5 and 4 on socket 10, the tx and rx are flashing on my FTDI adaptor but I can't connect. Now I think the adapter is failing so I'm getting a new one. After reading the other comment I added the +c option to lpcscrypt and now I see the main LED's flash too! Getting closer. Also I ordered the 200 on Arthur's recommendation, should i get a 210 instead?

from smoothie2-old.

adamgreen avatar adamgreen commented on August 19, 2024

Sounds like you are making progress then.

You don't say if you modified your makefile as I indicated in the comment on issue #12 to build for the LPC4330 in your Bambino board instead of the LPC4337 in the Smoothie2 hardware.

Also I ordered the 200 on Arthur's recommendation, should i get a 210 instead?

I would give more weight to Arthur's recommendation than mine :)

from smoothie2-old.

chrisbrent avatar chrisbrent commented on August 19, 2024

Hi Adam,
Yes I did comment out that line in the makefile, although I'm not sure if that or using +c to lpscrypt was the fix.

from smoothie2-old.

arthurwolf avatar arthurwolf commented on August 19, 2024

If/When you get it to work, it'd be great if you added "how" to the
Smoothie2 readme, I'm sure it'd be of help to others the same way Adam's
Smoothie2Notes have.

On Wed, Jun 22, 2016 at 10:15 PM, chrisbrent [email protected]
wrote:

Hi Adam,
Yes I did comment out that line in the makefile, although I'm not sure if
that or using +c to lpscrypt was the fix.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#13 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAGpFW2x1ds3Yo0ojiRLoXKyctfnI6k8ks5qOZfRgaJpZM4I6WxX
.

Courage et bonne humeur.

from smoothie2-old.

chrisbrent avatar chrisbrent commented on August 19, 2024

Sure thing @arthurwolf That's also why I opened it as an issue, that way i can keep track of what I've tried :)

from smoothie2-old.

adamgreen avatar adamgreen commented on August 19, 2024

@chrisbrent Let us know how you progress once you have the new USB to serial adapter.

from smoothie2-old.

chrisbrent avatar chrisbrent commented on August 19, 2024

No luck on either port with the new USB to serial adaptor. I can conform it's working as I hooked it up to my old one and could send chars both ways. Are the blinking LED's actually telling be anything. They're alternating between LED1 and LED2 on the Bambino. I can confirm that I had to comment out the memory model as per #12 (comment) to get the led's to blink. I'm not sure what else to try now. I got the jtag header on this board, but don't have a debugger for it.

from smoothie2-old.

arthurwolf avatar arthurwolf commented on August 19, 2024

I have a JTAG debugger I could lend you ...

On Thu, Jun 23, 2016 at 11:17 PM, chrisbrent [email protected]
wrote:

No luck on either port with the new USB to serial adaptor. I can conform
it's working as I hooked it up to my old one and could send chars both
ways. Are the blinking LED's actually telling be anything. They're
alternating between LED1 and LED2 on the Bambino. I can confirm that I had
to comment out the memory model as per #12 (comment)
#12 (comment)
to get the led's to blink. I'm not sure what else to try now. I got the
jtag header on this board, but don't have a debugger for it.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#13 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAGpFZMA6myOzSoxGIhoW14VzVHJ96omks5qOvfrgaJpZM4I6WxX
.

Courage et bonne humeur.

from smoothie2-old.

adamgreen avatar adamgreen commented on August 19, 2024

@chrisbrent I don't have a Bambino 200 with which to do any debugging on this end so there is probably a limit of what I can do to help out with these issues.

@arthurwolf would know better than me which LED means what with the current Smoothie2 firmware. Which LEDs connected to which GPIO pins do you see flash?

Can you describe how you connect your USB to serial adapter up to your Bambino? Did you connect RX, TX, and Ground to your adapter? Can you verify that your adapter works with some other UART enabled hardware? Arthur, what commands should Chris be able to send from a terminal application to get a response from the firmware as it currently exists?

from smoothie2-old.

arthurwolf avatar arthurwolf commented on August 19, 2024

I don't think the LEDs do much in the current firmware. I don't expect them
to blink, none of the code that does that has been ported.

On Thu, Jun 23, 2016 at 11:53 PM, Adam Green [email protected]
wrote:

@chrisbrent https://github.com/chrisbrent I don't have a Bambino 200
with which to do any debugging on this end so there is probably a limit of
what I can do to help out with these issues.

@arthurwolf https://github.com/arthurwolf would know better than me
which LED means what with the current Smoothie2 firmware. Which LEDs
connected to which GPIO pins do you see flash?

Can you describe how you connect your USB to serial adapter up to your
Bambino? Did you connect RX, TX, and Ground to your adapter? Can you verify
that your adapter works with some other UART enabled hardware? Arthur, what
commands should Chris be able to send from a terminal application to get a
response from the firmware as it currently exists?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#13 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAGpFfvJBk3a5ocrpbaQ24KFOH_Vgo2hks5qOwBGgaJpZM4I6WxX
.

Courage et bonne humeur.

from smoothie2-old.

arthurwolf avatar arthurwolf commented on August 19, 2024

Sending G1 X10 should answer "ok", I think it's the simplest test one can
do.

On Thu, Jun 23, 2016 at 11:55 PM, Arthur Wolf [email protected] wrote:

I don't think the LEDs do much in the current firmware. I don't expect
them to blink, none of the code that does that has been ported.

On Thu, Jun 23, 2016 at 11:53 PM, Adam Green [email protected]
wrote:

@chrisbrent https://github.com/chrisbrent I don't have a Bambino 200
with which to do any debugging on this end so there is probably a limit of
what I can do to help out with these issues.

@arthurwolf https://github.com/arthurwolf would know better than me
which LED means what with the current Smoothie2 firmware. Which LEDs
connected to which GPIO pins do you see flash?

Can you describe how you connect your USB to serial adapter up to your
Bambino? Did you connect RX, TX, and Ground to your adapter? Can you verify
that your adapter works with some other UART enabled hardware? Arthur, what
commands should Chris be able to send from a terminal application to get a
response from the firmware as it currently exists?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#13 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAGpFfvJBk3a5ocrpbaQ24KFOH_Vgo2hks5qOwBGgaJpZM4I6WxX
.

Courage et bonne humeur.

Courage et bonne humeur.

from smoothie2-old.

adamgreen avatar adamgreen commented on August 19, 2024

@arthurwolf Thanks for the info

from smoothie2-old.

chrisbrent avatar chrisbrent commented on August 19, 2024

Thanks guys. I'm trying this out whenever I have a spare ten minutes. I'll
spend some proper time on it next week. I must be able to debug this
somehow.

On Thu, Jun 23, 2016 at 2:56 PM, Adam Green [email protected]
wrote:

@arthurwolf https://github.com/arthurwolf Thanks for the info


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#13 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAihOms9qlUpevj4anMmlbMpkhv4FQ3Lks5qOwESgaJpZM4I6WxX
.

from smoothie2-old.

chrisbrent avatar chrisbrent commented on August 19, 2024

Just confirming I can communicate with my current Smoothie1 over serial so at least i can work that out :)

from smoothie2-old.

chrisbrent avatar chrisbrent commented on August 19, 2024

Fixed! Two issues. One is that the SerialConsole constructor has the pins labeled as rx,tx ie:
SerialConsole::SerialConsole( PinName rx_pin, PinName tx_pin, int baud_rate ){
this->serial = new mbed::Serial( rx_pin, tx_pin );
this->serial->baud(baud_rate);
}
The mBed Serial class constructor is:
Serial (PinName tx, PinName rx, const char * name = NULL )
The Bambino was freaking out when they were around the wrong way, which is what happens in the code above. This is why the Led were flashing.
Secondly I couldn't see the ON_MAIN_LOOP firing, after a lot of searching(led debugging and then adding serial printf's to the Kernel etc) I noticed that I couldn't log anything after the SerialConsole module loaded. In it's on_module_loaded it does:
THEKERNEL->streams->append_stream(this);
but the StreamOutputPool wasn't called in the Kernel until much later. I moved the stream initialization to before the SerialConsole and I'm now getting G code responses! Yay!
screenshot 2016-06-27 12 42 23
I'll send pull requests for the fixes once I take out my hacky debugging.

from smoothie2-old.

arthurwolf avatar arthurwolf commented on August 19, 2024

Great \o/

On Mon, Jun 27, 2016 at 9:43 PM, chrisbrent [email protected]
wrote:

Fixed! Two issues. One is that the SerialConsole constructor has the pins
labeled as rx,tx ie:
SerialConsole::SerialConsole( PinName rx_pin, PinName tx_pin, int
baud_rate ){
this->serial = new mbed::Serial( rx_pin, tx_pin );
this->serial->baud(baud_rate);
}
The mBed Serial class constructor is:
Serial (PinName tx, PinName rx, const char * name = NULL )
The Bambino was freaking out when they were around the wrong way, which is
what happens in the code above. This is why the Led were flashing.
Secondly I couldn't see the ON_MAIN_LOOP firing, after a lot of
searching(led debugging and then adding serial printf's to the Kernel etc)
I noticed that I couldn't log anything after the SerialConsole module
loaded. In it's on_module_loaded it does:
THEKERNEL->streams->append_stream(this);
but the StreamOutputPool wasn't called in the Kernel until much later. I
moved the stream initialization to before the SerialConsole and I'm now
getting G code responses! Yay!
[image: screenshot 2016-06-27 12 42 23]
https://cloud.githubusercontent.com/assets/565562/16393208/af1ec02a-3c64-11e6-91e4-65decbd40040.png
I'll send pull requests for the fixes once I take out my hacky debugging.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#13 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAGpFQ5M7gSGufaumRiPQCMdVe_ZUHOMks5qQCfigaJpZM4I6WxX
.

Courage et bonne humeur.

from smoothie2-old.

adamgreen avatar adamgreen commented on August 19, 2024

@chrisbrent Excellent!

If you have working serial ports now, you could probably stop using one from within Smoothie and use it for the MRI debug monitor instead so that you could connect GDB for future debugging.

from smoothie2-old.

arthurwolf avatar arthurwolf commented on August 19, 2024

Wait what we have MRI on the M4 chips ?

On Mon, Jun 27, 2016 at 10:45 PM, Adam Green [email protected]
wrote:

@chrisbrent https://github.com/chrisbrent Excellent!

If you have working serial ports now, you could probably stop using one
from within Smoothie and use it for the MRI debug monitor instead so that
you could connect GDB for future debugging.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#13 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAGpFbLYgH3NPmgfZ97o7jDRf9NhV_yOks5qQDZegaJpZM4I6WxX
.

Courage et bonne humeur.

from smoothie2-old.

adamgreen avatar adamgreen commented on August 19, 2024

@arthurwolf Yeah, that is why I got the Bambino210E in the first place. So that I could port it to the LPC43xx. :)

Edit: I looked back at my MRI history and it was added in February 2015.

from smoothie2-old.

arthurwolf avatar arthurwolf commented on August 19, 2024

I didn't realize. I thought that was still a todo. Maybe the JTAG clouded
my vision. That's sooo cool.

On Mon, Jun 27, 2016 at 10:52 PM, Adam Green [email protected]
wrote:

@arthurwolf https://github.com/arthurwolf Yeah, that is why I got the
Bambino210E in the first place. So that I could port it to the LPC43xx. :)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#13 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAGpFUJJpSr7hjxo5sGZOl1c_Y-DyP37ks5qQDgEgaJpZM4I6WxX
.

Courage et bonne humeur.

from smoothie2-old.

adamgreen avatar adamgreen commented on August 19, 2024

@chrisbrent I have updated the makefile to allow the Smoothie firmware to startup and run on the Bambino boards as well. I used the changes from your commit to create the Bambino200E customizations and I tested the Bambino210E ones on my board. By default the makefile still builds a binary suitable for running on Smoothie2 boards but you can modify one line in the makefile to switch it to the Bambino200E. I documented the selection that you can select in the makefile here.

from smoothie2-old.

adamgreen avatar adamgreen commented on August 19, 2024

@chrisbrent Can we close this bug now? Does the combination of your PR and my PR resolve this issue?

from smoothie2-old.

adamgreen avatar adamgreen commented on August 19, 2024

Closing as @chrisbent has submitted PR #14 to fix the initial issues that he was hitting with the Bambino200E.

from smoothie2-old.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.