hackaday3d / marlin_stm32 Goto Github PK
View Code? Open in Web Editor NEWstm32 for marlin 1.1.9
stm32 for marlin 1.1.9
Hello,
I made an adapter board for the BluePill to fit on the ramps 1.4.
I have some knowledge of micro controllers but i cannot figure out the pins values from your bord config:
#define X_MIN_PIN 0xDB//0xE5
#ifndef X_MAX_PIN
#define X_MAX_PIN 0xBE//0xE4
Blue pill pin-outs are noted as PA-15 PB0-15 and so on.
Where did you get thees values in hex a?
Also how flexible is your port?
Does it support hardware SPI and I2C?
My configuration is as follows:
-STM32F103C8(CB) <STM32F407VET6 - Future upgrade>
-Modified RAMPS
-TMC2130 (SPI mode)
-I2C Display (4x20) 2004
-SPI Card Reader module
-Single analog pin - 5 button Navigation keys
-esp8266(future add-on, for connection over WiFi)
Given that this is an older 1.1.9 release, I am not sure if I'll get any feedback but I thought it is worth a shot!
I am reviving an older machine running custom board and custom 1.1.8 firmware. I would like to recompile for 1.1.9 and
this repo shows the most potential! However part of their customization to their marlin is enabling TX_BUFFER_SIZE 128 instead of 0.
The printer heavily uses serial port communication with Marlin to issue commands. Once I made that change I could no longer compile the project. Thanks!
In file included from ../MarlinConfig.h:27:0,
from ../MarlinSerial.cpp:36:
../MarlinSerial.cpp: In function 'void _tx_udr_empty_irq()':
../macros.h:165:25: error: lvalue required as left operand of assignment
#define _BV(b) (1 << (b))
^
../macros.h:168:25: note: in expansion of macro '_BV'
#define CBI(n,b) (n &= ~_BV(b))
^~~
../MarlinSerial.cpp:352:9: note: in expansion of macro 'CBI'
CBI(M_UCSRxB, M_UDRIEx); // (Non-atomic, could be reenabled by the main program, but eventually this will succeed)
^~~
../MarlinSerial.cpp:359:16: error: lvalue required as left operand of assignment
M_UDRx = c;
^
In file included from ../MarlinConfig.h:27:0,
from ../MarlinSerial.cpp:36:
../macros.h:165:25: error: lvalue required as left operand of assignment
#define _BV(b) (1 << (b))
^
../macros.h:167:24: note: in expansion of macro '_BV'
#define SBI(n,b) (n |= _BV(b))
^~~
../MarlinSerial.cpp:364:7: note: in expansion of macro 'SBI'
SBI(M_UCSRxA, M_TXCx);
^~~
../macros.h:165:25: error: lvalue required as left operand of assignment
#define _BV(b) (1 << (b))
^
../macros.h:168:25: note: in expansion of macro '_BV'
#define CBI(n,b) (n &= ~_BV(b))
^~~
../MarlinSerial.cpp:367:19: note: in expansion of macro 'CBI'
if (h == t) CBI(M_UCSRxB, M_UDRIEx); // (Non-atomic, could be reenabled by the main program, but eventually this will succeed)
^~~
../MarlinSerial.cpp: At global scope:
../MarlinSerial.cpp:371:10: error: expected constructor, destructor, or type conversion before '(' token
ISR(M_USARTx_UDRE_vect) { _tx_udr_empty_irq(); }
^
../MarlinSerial.cpp: In static member function 'static void MarlinSerial::begin(long int)':
../MarlinSerial.cpp:384:14: warning: unused variable 'baud_setting' [-Wunused-variable]
uint16_t baud_setting;
^~~~~~~~~~~~
../MarlinSerial.cpp:385:10: warning: unused variable 'useU2X' [-Wunused-variable]
bool useU2X = true;
^~~~~~
../MarlinSerial.cpp: In static member function 'static void MarlinSerial::write(uint8_t)':
../MarlinSerial.cpp:519:18: error: lvalue required as left operand of assignment
M_UDRx = c;
^
In file included from ../MarlinConfig.h:27:0,
from ../MarlinSerial.cpp:36:
../macros.h:165:25: error: lvalue required as left operand of assignment
#define _BV(b) (1 << (b))
^
../macros.h:167:24: note: in expansion of macro '_BV'
#define SBI(n,b) (n |= _BV(b))
^~~
../MarlinSerial.cpp:524:9: note: in expansion of macro 'SBI'
SBI(M_UCSRxA, M_TXCx);
^~~
../macros.h:165:25: error: lvalue required as left operand of assignment
#define _BV(b) (1 << (b))
^
../macros.h:167:24: note: in expansion of macro '_BV'
#define SBI(n,b) (n |= _BV(b))
^~~
../MarlinSerial.cpp:553:7: note: in expansion of macro 'SBI'
SBI(M_UCSRxB, M_UDRIEx);
^~~
make: *** [MarlinSerial.o] Error 1
Hello I have an STM32F103 3D printer. I want to use the board for other porpuses. When I need to reprogram the board, I dont want to configure again. Can I just download the program in the board and just upload that program after I completed the other works? If it is how?
Thank you.
@hackaday3D Can I suggest that you port Marlin firmware to run the new STM32MP1 MPU series?
https://blog.st.com/stm32mp1-mpu-stm32mp157a-ev1-stm32mp157c-dk2/
I am only an end-user / technology enthusiast myself and I do not actually know if anyone else is already working on a 3D-printer controller board based on the new STM32MP1 MPU series or not, however, I read that STMicroelectronics claims STM32MP1 architecture enables developers to use the same software as STM32 MCU series, and theoretically, with the STM32MP1 MPU series you could run both Marlin and OctoPrint or similar Linux distrobution on the same board.
For technical specification summery checkout:
https://www.cnx-software.com/2019/02/21/stmicro-stm32mp1-cortex-a7-m4-mpu/
STM32MP157A-DK1 and STM32MP157C-DK2 Discovery kits are $99 with LCD or $69 without
https://www.st.com/en/evaluation-tools/stm32mp157a-dk1.html
https://www.st.com/en/evaluation-tools/stm32mp157c-dk2.html
STM32MP157A-EV1 Evaluation kit for PCB engineers does have a steeper price at $399
https://www.st.com/en/evaluation-tools/stm32mp157a-ev1.html
First read about this MCU/MPU in the release news about PanGu board from I2Som
https://www.cnx-software.com/2019/06/25/pangu-board-stm32mp1-sbc/
How do you set the BAUD rate?
I believe my board is set for 115200 not 250000
Thanks!
Currently I have a code version 1.1.9
I want to convert it to STM32F103RCT6 can I use your configuration program?
and i need pin mapping for RCT6 same as your VCT6
Can you help me convert it to RCT6?
Can I print via USB?
just test to compile marlin_stm32 with ARDUINO ide1.8.5 & stm32duino core support,but with some error in compile,so I want know which stm32core for arduino did you use?
download link:
https://www.dropbox.com/s/0ho4ip1gjpifcbr/Compile_Download_Tool.zip?dl=0
Excuse me, I Cannot open link, How to download Compile Tool? Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.