Customization beyond Configuration.h #66
-
I have an older MPMD, and had to change the baud rate to 115200. This was easy; I found the setting in Configuration.h. Now, I want to change to the 5A power supply as I think I read somewhere that 10A was the default. I am not very familiar with the Linux/makefile system of building, as almost everything I've done like this has been done in the Arduino IDE on a Windows box. I see this in Configuration.h but do not see where you set the var "ONLY_ONE_HEATER_AT_A_TIME" I guess I could flip the 5Alimit and the 10Alimit but it seems there is some other way I don't know about. Command line possibly ?? #if ONLY_ONE_HEATER_AT_A_TIME Thanks !! Bill |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I'm a big proponent of explicitly documenting the build process for projects, especially embedded software. A "Makefile" is a relatively simple way to capture all of the details about how to compile, assemble, link and otherwise process the source code files. I've not tried to build the firmware with the Arduino tools, but under the hood, Arduino uses the same cross compiler tool chain, so I imagine that it is possible. First though, the baudrate setting has no bearing on the firmware. The USB port always operates at its fastest possible speed -- the baudrate is passed between the printer and the host more or less as a "faux" setting to appear like a "COMM" style serial port. I think the host computer ignores the speed setting as well when creating a virtual comm port via USB. Here are a few things to keep in mind:
The file,
You may need to edit the makefile to adjust the path to where the build tools are located -- this is in the
Finally, if you're looking for a quick and easy way to build the firmware, you can build it directly on github by forking the project and using the provided github "action" to build a one-off version of the firmware. It is probably the easiest method. |
Beta Was this translation helpful? Give feedback.
-
Hmm, the USB CDC protocol really doesn't care about baudrates. I suspect that both sides need to agree on a baudrate (eventhough the baudrate doesn't really matter) in order to establish the connection. It's possible that the negotiation for the 250000bps baudrate is somehow thwarted in your setup. No worries, the USB connection will run as fast as it possibly can regardless of the baudrate setting. Glad to hear that you're using linux straight-away. I think that the Arduino IDE is overkill for this application. The simplest way to use the makefile: # make select='SM0000|SM0001|SM1110|SM1111 AC_FAN|PC_FAN L05AMP|L10AMP'
# will generate the appropriate -D options for the gcc compiler.
# e.g.
make select='SM0001 AC_FAN L10AMP' # hack-ish command to pull the build string out of the firmware image to confirm
grep -a -o 'mpmd[^)]*20..)' mpmd*.bin Alternatively, you can modify the test build targets, Excerpt from
|
Beta Was this translation helpful? Give feedback.
-
Agree on the wiki. It's probably time to overhaul the wiki and create a useful FAQs. |
Beta Was this translation helpful? Give feedback.
I'm a big proponent of explicitly documenting the build process for projects, especially embedded software. A "Makefile" is a relatively simple way to capture all of the details about how to compile, assemble, link and otherwise process the source code files.
I've not tried to build the firmware with the Arduino tools, but under the hood, Arduino uses the same cross compiler tool chain, so I imagine that it is possible.
First though, the baudrate setting has no bearing on the firmware. The USB port always operates at its fastest possible speed -- the baudrate is passed between the printer and the host more or less as a "faux" setting to appear like a "COMM" style serial port. I think the …