<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Configuring Marlin for a 328</title>
        <description> Everything so far has been relatively straight forward, until I got to re-defining the pin outs for my 328 set up. 

I use analog 2,3 as digital outs for my extruder step/dir, but I use digital 2,3 as my X step/dir. 

In the pins.h file, there does not appear to be a way to differentiate between the analog and digital pins. Am I missing something, or is there no way to use the analog pins as digital outs in this firmware?</description>
        <link>https://reprap.org/forum/read.php?147,99765,99765#msg-99765</link>
        <lastBuildDate>Mon, 12 Oct 2026 03:02:31 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,122208#msg-122208</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,122208#msg-122208</link>
            <description><![CDATA[ marlin is unique GRBL because it changes speed of e axis in relation to how fast the stepper is going. look at stepper.c file in both location of marlin firmware and grbl. i don't know why this link was so hard for me to find earlier but it is here [<a href="https://github.com/grbl/grbl" target="_blank"  rel="nofollow">github.com</a>] for grbl<br />
<br />
grbl on its own does nothing for compensation of e (the timer variable in stepper.c of merlin)<br />
<br />
on another note here is marlin that sort of fits into 328. it fits but the ram used is nearly everything. i can get it to init thru the serial com in arduino ide, but the pronterface host does not see it. Marlin does report free ram at start up so that should help troubleshooting. if anyone wants to play with the code it is here. [<a href="http://www.useablesoftware.com/testing/rte/my_documents/my_files/AZ4_marlin328.zip" target="_blank"  rel="nofollow">www.useablesoftware.com</a>]<br />
<br />
with all that said. the 328 version does not compensate for e either, it is disabled to allow it to fit without the eprom table,<br />
<br />
so that being said it is waiting for someone who can free up ram and give it a try. <br />
<br />
<br />
I'm off to do other things now...<br />
<br />
<br />
just to note the acceleration and path profile are located in planner.c planner.h in grbl and is called from stepper.c]]></description>
            <dc:creator>jamesdanielv</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Sun, 04 Mar 2012 09:19:07 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,122184#msg-122184</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,122184#msg-122184</link>
            <description><![CDATA[ Interesting indeed. In it's current state one wouldn't recognize the R2C2 firmware is derived from Teacup, but let's have a look how this looked earlier ...]]></description>
            <dc:creator>Traumflug</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Sun, 04 Mar 2012 07:05:16 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,122154#msg-122154</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,122154#msg-122154</link>
            <description><![CDATA[ Interesting.  I can't find the common branch point for the Teacup files in R2C2, though.  Looks like it'll need to be a manual merge, but both branches have lots of changes.]]></description>
            <dc:creator>phord</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Sat, 03 Mar 2012 23:14:39 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,122141#msg-122141</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,122141#msg-122141</link>
            <description><![CDATA[ Just came across the wiki page for r2c2 board and it says it uses a modified version of Teacup mixed with GRBL. I had a look at their github repo and what do you know it has Teacups Gcode processor and GRBL's look ahead plus a pile of stuff for Arm32. So maybe someone could strip the Arm32 parts and we could have Teacup with look ahead.<br />
<br />
[<a href="https://github.com/bitboxelectronics/R2C2_Firmware" target="_blank"  rel="nofollow">github.com</a>]]]></description>
            <dc:creator>Sublime</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Sat, 03 Mar 2012 20:16:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,121922#msg-121922</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,121922#msg-121922</link>
            <description><![CDATA[ You're getting closer and closer to Teacup. The tables can be calculated on the fly, see line 634 to 675 of this file: [<a href="https://github.com/triffid/Teacup_Firmware/blob/master/dda.c" target="_blank"  rel="nofollow">github.com</a>]]]></description>
            <dc:creator>Traumflug</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Fri, 02 Mar 2012 12:46:54 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,121896#msg-121896</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,121896#msg-121896</link>
            <description><![CDATA[ OK I've trimmed down the fat a bit, but left the code in place it is just disabled if motherboard ==4 is selected in configuration.h<br />
<br />
most mcodes above 115 except bed temp commands are not essential, so they are disabled with 328, also some strings that report at start up and the eeprom check when firmware initializes are disabled as well. eeprom is a separate memory, but the code is taxing to read  and write it.<br />
<br />
for example you wont be able to add a remote camera to take snap shots anymore if using 328... bummer. <br />
<br />
some of the cautionary temp controls such as max and min temps are disabled, but may be enabled carefully based upon flash space available.<br />
<br />
<br />
next is to find approximate but close fits for the acceleration tables that are in epprom, not using those tables along with the above, and some minor code changing allows the code now to take 30350 bytes. however i still need to create a simplified table, and continue finding ways to save space . also i have disabled pid, but will enable it if it fits when modifications are complete. with 8mhz arduino flash i have 30720 bytes to program with. also sd is disabled currently]]></description>
            <dc:creator>jamesdanielv</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Fri, 02 Mar 2012 10:49:07 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,121768#msg-121768</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,121768#msg-121768</link>
            <description><![CDATA[ I'll stick with trying to shrink marlin.. process_commands()  is like the steering wheel of the car, look-ahead is like changing out the engine block.]]></description>
            <dc:creator>jamesdanielv</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Thu, 01 Mar 2012 11:59:27 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,121606#msg-121606</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,121606#msg-121606</link>
            <description><![CDATA[ And while you're at it... port marlin's implementation of Matthew Roberts advance algorithm...<br />
<br />
lol!]]></description>
            <dc:creator>AphoticJezter</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Wed, 29 Feb 2012 15:58:47 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,121511#msg-121511</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,121511#msg-121511</link>
            <description><![CDATA[ May I suggest to pick Marlin's look-ahead and put this into Teacup? Teacup is already small, well tested and has a command queue.]]></description>
            <dc:creator>Traumflug</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Wed, 29 Feb 2012 06:21:00 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,121491#msg-121491</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,121491#msg-121491</link>
            <description><![CDATA[ process_command seems to take over 20k of code. this seems incredibly huge. also rather than compare each char as a string why not compare it as a byte. this alone i think will shrink the process_command to 5k or less.. but then again we will see. this will be a serious rewrite.. that is if it works... :)]]></description>
            <dc:creator>jamesdanielv</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Wed, 29 Feb 2012 04:35:30 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,121327#msg-121327</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,121327#msg-121327</link>
            <description><![CDATA[ I'm going to give it a try.arduino 1.0 has the ability to convert strings into flash memory rather than taking up ram space.. another thing i got working with sprinter was combining the dir pins into 1 dir pin. also running at 8mhz with internal clock frees up an additional 2 pins. digitalwritefast recognizes these additional pins.  one may ask why? it is easy to breadboard a 328 chip and to have room to add additional components for testing.<br />
<br />
if I don't do updates in two weeks with it working on 328, then consider it a failure. I will then go back to sprinter with sd support. but i would rather marlin work on 328, even nearly crippled for the prusa i'm building below.<br />
<br />
<div id="div_8e6a7559b04dd38b43ca678ec23d4151"
     class="mod_embed_images"
     >

  

    
      
    

    <div id="imagediv_8e6a7559b04dd38b43ca678ec23d4151" class="mod_embed_images_image"
         >

    
      

      

      

      

      

      

      <noscript>
      <div>
    

    <a href="http://www.useablesoftware.com/testing/rte/my_documents/my_pictures/A63_pic1.jpg">
        <img src="https://reprap.org/forum/addon.php?147,module=embed_images,url=http%3A%2F%2Fwww.useablesoftware.com%2Ftesting%2Frte%2Fmy_documents%2Fmy_pictures%2FA63_pic1.jpg"
             
             
             id="image_8e6a7559b04dd38b43ca678ec23d4151"
             alt="A63_pic1.jpg"
             title="A63_pic1.jpg"/>
    </a>

    
      </div>
      </noscript>
    

    </div>

    <div class="mod_embed_images_info " id="info_8e6a7559b04dd38b43ca678ec23d4151"
      >
      <a id="link_8e6a7559b04dd38b43ca678ec23d4151" href="http://www.useablesoftware.com/testing/rte/my_documents/my_pictures/A63_pic1.jpg">A63_pic1.jpg</a>
    </div>

  

 </div>


<script type="text/javascript">
mod_embed_images_loadimage('8e6a7559b04dd38b43ca678ec23d4151', 'https://reprap.org/forum/addon.php?147,module=embed_images,url=http%3A%2F%2Fwww.useablesoftware.com%2Ftesting%2Frte%2Fmy_documents%2Fmy_pictures%2FA63_pic1.jpg', 'http://www.useablesoftware.com/testing/rte/my_documents/my_pictures/A63_pic1.jpg', 'https://reprap.org/forum/addon.php?147,module=embed_images,check_scaling=1,url=http%3A%2F%2Fwww.useablesoftware.com%2Ftesting%2Frte%2Fmy_documents%2Fmy_pictures%2FA63_pic1.jpg', '', 121327, 800, 400, 'Loading image ...', false);
</script>
<br />
<div id="div_3c9b54be9e6fd5ded8dcac9ca4558a7f"
     class="mod_embed_images"
     >

  

    
      
    

    <div id="imagediv_3c9b54be9e6fd5ded8dcac9ca4558a7f" class="mod_embed_images_image"
         >

    
      

      

      

      

      

      

      <noscript>
      <div>
    

    <a href="http://www.useablesoftware.com/testing/rte/my_documents/my_pictures/423_DSCN8461.JPG">
        <img src="https://reprap.org/forum/addon.php?147,module=embed_images,url=http%3A%2F%2Fwww.useablesoftware.com%2Ftesting%2Frte%2Fmy_documents%2Fmy_pictures%2F423_DSCN8461.JPG"
             
             
             id="image_3c9b54be9e6fd5ded8dcac9ca4558a7f"
             alt="423_DSCN8461.JPG"
             title="423_DSCN8461.JPG"/>
    </a>

    
      </div>
      </noscript>
    

    </div>

    <div class="mod_embed_images_info " id="info_3c9b54be9e6fd5ded8dcac9ca4558a7f"
      >
      <a id="link_3c9b54be9e6fd5ded8dcac9ca4558a7f" href="http://www.useablesoftware.com/testing/rte/my_documents/my_pictures/423_DSCN8461.JPG">423_DSCN8461.JPG</a>
    </div>

  

 </div>


<script type="text/javascript">
mod_embed_images_loadimage('3c9b54be9e6fd5ded8dcac9ca4558a7f', 'https://reprap.org/forum/addon.php?147,module=embed_images,url=http%3A%2F%2Fwww.useablesoftware.com%2Ftesting%2Frte%2Fmy_documents%2Fmy_pictures%2F423_DSCN8461.JPG', 'http://www.useablesoftware.com/testing/rte/my_documents/my_pictures/423_DSCN8461.JPG', 'https://reprap.org/forum/addon.php?147,module=embed_images,check_scaling=1,url=http%3A%2F%2Fwww.useablesoftware.com%2Ftesting%2Frte%2Fmy_documents%2Fmy_pictures%2F423_DSCN8461.JPG', '', 121327, 800, 400, 'Loading image ...', false);
</script>
<br />
<br />
I have enough pins to also run lcd support, but i think marlin has that built in..<br/>]]></description>
            <dc:creator>jamesdanielv</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Tue, 28 Feb 2012 03:23:53 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,119817#msg-119817</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,119817#msg-119817</link>
            <description><![CDATA[ Nope. Never got it to work. Even if it did i don't think the buffer would have been big enough to be useful.]]></description>
            <dc:creator>Andrew Diehl</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Mon, 20 Feb 2012 01:01:22 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,119807#msg-119807</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,119807#msg-119807</link>
            <description><![CDATA[ I have had no luck getting Marlin to compile.  Lots of errors, and deep in the hardwareserial.cpp, etc.  :(]]></description>
            <dc:creator>Cosmic1953</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Sun, 19 Feb 2012 23:07:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,117259#msg-117259</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,117259#msg-117259</link>
            <description><![CDATA[ Did anyone ever get this to at least compile? <br />
I'm interested in getting Marlin working on a 328p, and am having a lot of issues.]]></description>
            <dc:creator>lincomatic2</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Sat, 04 Feb 2012 18:38:47 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,100160#msg-100160</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,100160#msg-100160</link>
            <description><![CDATA[ That's fair then.]]></description>
            <dc:creator>Andrew Diehl</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Wed, 05 Oct 2011 14:52:16 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,100158#msg-100158</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,100158#msg-100158</link>
            <description><![CDATA[ I never meant to imply that it was impossible to make Marlin work on a 328.  Just the current release will not work because the raw ram requirements, even with a minimal (ie useless) move buffer, are just too high.]]></description>
            <dc:creator>jv4779</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Wed, 05 Oct 2011 14:47:19 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,100068#msg-100068</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,100068#msg-100068</link>
            <description><![CDATA[ It's starting to work :)<br />
<br />
Erik has got it to the point where I can jog it through pronterface without issue. I've even run some files through it with some success. Yes, it does still freeze up after a bit, but I don't think it is all that far from working properly. <br />
<br />
JV4779, He's actually been moving parts of it into flash to free up more ram, so there may be more hope than you think]]></description>
            <dc:creator>Andrew Diehl</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Tue, 04 Oct 2011 21:33:19 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,99876#msg-99876</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,99876#msg-99876</link>
            <description><![CDATA[ You guys can believe what you want.  The grbl code isn't the issue.  Sprinter is very inefficient with ram.  The strings aren't even in flash.]]></description>
            <dc:creator>jv4779</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Mon, 03 Oct 2011 09:50:32 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,99837#msg-99837</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,99837#msg-99837</link>
            <description><![CDATA[ It should work on a 328 as GRBl is where the look ahead comes from and its made to work on 168's and 328's specifically. [<a href="http://dank.bengler.no/-/page/show/5470_grbl?ref=mst" target="_blank"  rel="nofollow">dank.bengler.no</a>]]]></description>
            <dc:creator>Sublime</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Mon, 03 Oct 2011 01:14:59 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,99822#msg-99822</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,99822#msg-99822</link>
            <description><![CDATA[ Erik seems to think he can make it work, and as he created Marlin i'm inclined to believe him.]]></description>
            <dc:creator>Andrew Diehl</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Sun, 02 Oct 2011 21:06:53 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,99818#msg-99818</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,99818#msg-99818</link>
            <description><![CDATA[ Marlin uses too much ram to be used on a 328.  Even with the move queue at 2.]]></description>
            <dc:creator>jv4779</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Sun, 02 Oct 2011 20:29:07 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,99792#msg-99792</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,99792#msg-99792</link>
            <description><![CDATA[ Ahh, thanks. Apparently there are some other issues as well, but Erik van der Zalm is sending me a modified version that might run alright.]]></description>
            <dc:creator>Andrew Diehl</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Sun, 02 Oct 2011 17:36:19 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,99770#msg-99770</guid>
            <title>Re: Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,99770#msg-99770</link>
            <description><![CDATA[ If you look at the pin map for the 168 in pin.h you will see that the A0 - A5 are also called D14 - D19 so all you need to do is use the D number instead.]]></description>
            <dc:creator>Sublime</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Sun, 02 Oct 2011 16:42:08 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?147,99765,99765#msg-99765</guid>
            <title>Configuring Marlin for a 328</title>
            <link>https://reprap.org/forum/read.php?147,99765,99765#msg-99765</link>
            <description><![CDATA[ Everything so far has been relatively straight forward, until I got to re-defining the pin outs for my 328 set up. <br />
<br />
I use analog 2,3 as digital outs for my extruder step/dir, but I use digital 2,3 as my X step/dir. <br />
<br />
In the pins.h file, there does not appear to be a way to differentiate between the analog and digital pins. Am I missing something, or is there no way to use the analog pins as digital outs in this firmware?]]></description>
            <dc:creator>Andrew Diehl</dc:creator>
            <category>Firmware - experimental, borrowed, and future</category>
            <pubDate>Sun, 02 Oct 2011 15:58:43 -0400</pubDate>
        </item>
    </channel>
</rss>
