-
Notifications
You must be signed in to change notification settings - Fork 22
Trying to connect to serial port Bambino Bambino 200e #13
Comments
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. |
Hi Adam, |
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.
I would give more weight to Arthur's recommendation than mine :) |
Hi Adam, |
If/When you get it to work, it'd be great if you added "how" to the On Wed, Jun 22, 2016 at 10:15 PM, chrisbrent notifications@github.com
Courage et bonne humeur. |
Sure thing @arthurwolf That's also why I opened it as an issue, that way i can keep track of what I've tried :) |
@chrisbrent Let us know how you progress once you have the new USB to serial adapter. |
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. |
I have a JTAG debugger I could lend you ... On Thu, Jun 23, 2016 at 11:17 PM, chrisbrent notifications@github.com
Courage et bonne humeur. |
@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? |
I don't think the LEDs do much in the current firmware. I don't expect them On Thu, Jun 23, 2016 at 11:53 PM, Adam Green notifications@github.com
Courage et bonne humeur. |
Sending G1 X10 should answer "ok", I think it's the simplest test one can On Thu, Jun 23, 2016 at 11:55 PM, Arthur Wolf wolf.arthur@gmail.com wrote:
Courage et bonne humeur. |
@arthurwolf Thanks for the info |
Thanks guys. I'm trying this out whenever I have a spare ten minutes. I'll On Thu, Jun 23, 2016 at 2:56 PM, Adam Green notifications@github.com
|
Just confirming I can communicate with my current Smoothie1 over serial so at least i can work that out :) |
Great \o/ On Mon, Jun 27, 2016 at 9:43 PM, chrisbrent notifications@github.com
Courage et bonne humeur. |
@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. |
Wait what we have MRI on the M4 chips ? On Mon, Jun 27, 2016 at 10:45 PM, Adam Green notifications@github.com
Courage et bonne humeur. |
@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. |
I didn't realize. I thought that was still a todo. Maybe the JTAG clouded On Mon, Jun 27, 2016 at 10:52 PM, Adam Green notifications@github.com
Courage et bonne humeur. |
@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. |
@chrisbrent Can we close this bug now? Does the combination of your PR and my PR resolve this issue? |
Closing as @chrisbent has submitted PR #14 to fix the initial issues that he was hitting with the Bambino200E. |
Hi,
I have a Bambino 200E and am able to compile the current Smoothie2. When I look in the Kernel I see that it starts this->serial = new SerialConsole(P3_4, P3_5, 9600) I'm trying to work out where P3_4 and P3_5 end up on the Bambino. Looking at the Bambino pin aliases XLS here http://wiki.micromint.com/index.php/Bambino_Documentation I don't see these pins. I tried hooking up to UART0_RX and UART0_TX at 9600 but Pronterface just says "Connecting....." forever. I've tried looking at the schematic http://www.micromint.com/updates/bambino/SCH-BAM200-B.pdf I see the pins labeled P3_4 and P3_5 but I can't work out how these map to the gadgeteer ports.
I'm updating the bambino using:
boot_lpcscrypt
lpcscrypt program ./LPC4330_M4/Smoothie2.hex SPIFI
Should that be the bin file I flash? I get no leds after flashing either file. I can flash the demo blink file using lpcscrypt so that part seems to be working.
What should I try next?
The text was updated successfully, but these errors were encountered: