Page 1 of 1

Connecting Stepduino to different compiler

Posted: Mon Apr 13, 2020 6:12 am
by reagan
Hi guys,

I am attempted to upload sketches through another compiler. I am using Flip, I have recently just used it on another ATmega328P and it worked fine, however Flip cannot find the Stepduino. I was thinking the issue may be the drivers, as the other ATmega used Flip's USB drivers whereas the Stepduino has its own drivers. I have code already written as C files and don't really want to write them up as Arduino files.

Kind regards,
Reagan

Re: Connecting Stepduino to different compiler

Posted: Mon Apr 13, 2020 6:37 am
by Brissieboy
Tried compiling then downloading the resulting hex file via the ISP?

Re: Connecting Stepduino to different compiler

Posted: Mon Apr 13, 2020 6:46 am
by reagan
I tried XLoader and it said it uploaded, however it isn't functioning. The sketch I'm uploading isn't using serial at all, it is a mock controller for a Nintendo Switch.

Re: Connecting Stepduino to different compiler

Posted: Mon Apr 13, 2020 7:06 am
by Brissieboy
Not familiar with either Flip or XLoader so can't offer much help.
If it says it programmed the target correctly (and I assume also verified it), then maybe you need to look at your sketch. Or start with a simple test sketch to do something very basic on the stepduino just to verify the process.

Re: Connecting Stepduino to different compiler

Posted: Mon Apr 13, 2020 7:55 am
by reagan
I have already compiled this code to another ATmega (Duinotech Uno R3) and it operated completely fine.

Re: Connecting Stepduino to different compiler

Posted: Mon Apr 13, 2020 9:29 am
by reagan
Is it possible to force the board into Bootloader mode? That may be the reason why the device can't be found?

Re: Connecting Stepduino to different compiler

Posted: Mon Apr 13, 2020 9:48 am
by Brissieboy
The stepduino is Uno compatible so you should be able to install the bootloader in the same way as the Uno. The Arduino IDE makes that easy, but you do need a programmer of some sort. Plenty of info available on that.

Re: Connecting Stepduino to different compiler

Posted: Tue Apr 14, 2020 9:04 pm
by reagan
Could you point me towards some of these resources?

Re: Connecting Stepduino to different compiler

Posted: Tue Apr 14, 2020 10:38 pm
by Brissieboy
Just do a web search for 'Arduino burn bootloader' or something similar and you will get heaps of responses with plenty of options.
Just another point: if you are powering the stepduino from the USB port make sure that it has the full 5V available at the board, or else power it externally. I'm not sure what the current draw is for the stepduino, but many USB ports have very limited current capability.