-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MKS ROBIN2 V1.0 + TFT35V1.0 Compiling files #185
Comments
You would need to identify your LCD model to see if yours is supported.
There might be three model that is accepted by Marlin.
Also, you would need to select the coordinate set up depending on your LCD
model ( chipset)
Good luck
…On Thu, Aug 27, 2020 at 05:53 LordsWars ***@***.***> wrote:
Hello, I downloaded your files from GitHub for Robin 2 and compiled it as
it is - got a bunch of errors, figured it out and added it to the
platformio.ini file -> [env: mks_robin2]
platform = ***@***.*** got the Robin2.bin code. I noticed that the code
is 99 kilobytes when the original is 412510 bytes. I poured it into the
board via a flash card and as a result I got the inscription "Booting ..."
on the screen and that's it ... the board doesn't work further ... what
needs to be changed to load the normal version of Marlin 2.0 ???
I bought this board to create a printer that can drill, cut with a laser
and print with plastic, and in the current configuration it can only print
from two heads, which is not good ...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#185>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFYWWXPPDKNOE6ORM7JSPEDSCZCLDANCNFSM4QM4Z47A>
.
|
I suggest you use Robin2's own firmware for now, marlin does not currently support F4 FSMC. |
That is, I am offered to throw out the purchased board due to the fact that it is not supported by Marlin 2.0 or to use it as it is ... getting rid of the G-code to get what I need ... but this is not the right decision .. The code that is uploaded to the MK is protected, there are no source codes, but what is on the site does not correspond to the validity ... when compiled, it is not working. I have a second profession - a programmer and I work with small tasks on microcontrollers - and I am ready to spend some of my time to figure out and run this microcontroller in the mode I need, a 3-in-1 3D printer ... but I just need to understand whether I will be Can I help the manufacturers of this controller with the source code of this controller or do I still have to understand the structure of Marlin 2.0? |
You can determine the type of screen controller ... this is not a big problem ... I worked with many screens and I wrote init for different screens from scratch using only a datasheet .... since there is a pinout of the loop and you need to make a temporary adapter board to determine the screen controller ... |
If you are familiar to code, then it would be beneficial to the community
of Marlin that if you are able to bring the screen you have to life.
The screen ini codes are located in features, I think.
Also, Robin uses SPI2 to communicate with the LCD screen And you would need
to change manually the code in platformio as well.
Try to find the past issues in Marlin’s GitHub from google “ Robin LCD not
working” you will most likely to find the post from the past who worked on
different LCD’s MCU.
My LCD was V1.0 and was not supported due to its particular initialization.
And a coder from Russia coded and submitted his portion of code and now is
part of Marlin. And nownI have a working Touch LCD ( emulating Marlin’s
menus)
Another coder has made a small FW just to allow the screen to report its
MCU model. Same coder also made a boot loader ( I think) as well.
Wish you luck.
…On Thu, Aug 27, 2020 at 23:03 LordsWars ***@***.***> wrote:
You would need to identify your LCD model to see if yours is supported.
There might be three model that is accepted by Marlin. Also, you would need
to select the coordinate set up depending on your LCD model ( chipset) Good
luck
[…]
You can determine the type of screen controller ... this is not a big
problem ... I worked with many screens and I wrote init for different
screens from scratch using only a datasheet .... since there is a pinout of
the loop and you need to make a temporary adapter board to determine the
screen controller ...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#185 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFYWWXMYX6VIHPS6URMHRWTSC43DXANCNFSM4QM4Z47A>
.
|
Well, since "makerbase-mks" are silent, then no one will provide the original source. It is sad.
|
Use the Marlin’s site
And use bug fixes
…On Fri, Aug 28, 2020 at 20:45 LordsWars ***@***.***> wrote:
Well, since "makerbase-mks" are silent, then no one will provide the
original source. It is sad.
We need to deal with Marlene.
2 questions arise:
1. Which version of Marlin should I use? the one here or from the
original Marlene site?
2. Why is the downloaded version from the manufacturer not loaded? is
it incorrect compilation or conversion inside the elf-> bin program ??
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#185 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFYWWXJL4XYIOTP64VPEBKLSDBTWNANCNFSM4QM4Z47A>
.
|
If you really want to code, I gonna save you couple hours trying to find
where to start.
Marlin\SRC\LCD\dogm\ug8_dev_tft_320X240_upscale_from......
In there are the ini for different TFT MCU:
ili9328
St7789v
Ili9341
Good luck
…On Fri, Aug 28, 2020 at 21:45 LordsWars ***@***.***> wrote:
[image: tft35_v1]
<https://user-images.githubusercontent.com/59338344/91627764-fd048000-e9e3-11ea-8e81-9b84abd85afc.png>
On the way, everything is standard and everything is connected via FSMC
and SPI1.
We will download Marlin 2.0 and compile for a start ...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#185 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFYWWXKT2UOTUWSSSCQRM73SDB2UXANCNFSM4QM4Z47A>
.
|
Thank you, I have already found these inits. I need to figure out the place of inclusion - which of the defaults is responsible for this ... reverse engineering of the program from inits to default. how to turn on FSMC correctly with this init ... in general, dig and dig :) |
Well, here's a little digging, the file tft_io.h was found in which there is a check for the HAS_FSMC_TFT definition, which in turn sends us to tft_fsmc.h where the FSMC pin definitions are registered.
it remains to check on the correspondence of pins and addresses for STM32F407Zxx which is not enough to add :) sorry for my english - google translator ... |
Continued ..... mks_robin2_407Z[env: MKS_ROBIN2] then change the version of common_stm32.platform from 6.1.0 to 5.3.0 HAL / STM32 Base Environment values[common_stm32] then copy then we try to compile :) |
Error solution: |
Something I hurried ... there were even more mistakes ... |
An attempt to compile any project with a 407 processor leads to errors ... most of the errors are configuration files BUT even substituting the necessary files, other errors arise ... the question arises, is it working in general ??? ok let's try 103 with FSMC ... |
Hello, I have a question about the pins in the datasheet on the board there are BUSY and INT signals, and there are no connection of these pins from the screen to the microcontroller .... where are these pins connected ???? I tried to physically ring out - these pins do not reach the display connector ... |
Hello, the original version is no longer there, because I tried to integrate work with a USB flash drive into the system and, as a result, abandoned this business ... the printer prints normally both in 3D printer mode and in laser and milling Configuration.zip |
HI, i downloaded the marlin2.zip and compiled but Robin2.bin file is not generating . Please see the image |
I had bunch of warrings errors like this Not even to complete the compilation |
Hello, everything is correct, I use an external STM32 ST-LINK Utility bootloader, it needs a * .BIN file, which in your case means the firmware.bin file after compilation. I did not configure it to rename this file to Robin2.bin, but used everything by default :) |
ROBIN2.zip |
@LordsWars First of all, thanks your your help. I've successfully compiled the firmware. But I have the new problem. BTW, have you ever try to compile the code with latest Marlin-bugfix-2.0.x branch? Sorry, one more question. |
The whole point is who is flashing the MK, if you use the firmware via an SD card, you need to recode with shifts, and when flashing through ST-LINK 2.0, no encoding is required :) I paid attention to the fact that in the original files there is a recoding for writing through a SD card but I did not use it ... I did the firmware directly through ST-LINK 2.0 |
So what you've done is pressing the Upload button in PlatfomIO to update firmware to the robin2? |
after compiling the program, I close the visual studio, run the program from the ST-LINK 2.0 programmer, then load the * .bin into the program and program the MC through the ST-LINK 2.0 programmer |
Thanks, I got it. If fail or something happened, can I flash back to factory firmware? |
[email protected] |
ST-LINK 2.0 programmer is easy enough with a blue board https://stm32-base.org/boards/STM32F103C8T6-Blue-Pill |
Cool, I got it. |
Hello, I am trying to compile version 2.0.9.2, I have made good progress but I cannot find the solution to this compilation error when I activate #define SDSUPPORT. thx in advance `Marlin\src\HAL\STM32\msc_sd.cpp:30:10: fatal error: USB.h: No such file or directory
30 | #include <USB.h> |
everything compiles easily. download the latest Marlin-2.0.9.3 version 30 min of settings and you have *.ELF ready - another half a day and you find how to convert the elf-bin and you have a ready-made file that you need to upload with an external programmer :) it's difficult only the first time :) then that's it it's simple :) and if you don't follow the path of settings, you won't understand how it works :) it takes time, patience and internet, and everything is solved here is the finished bin file, but my screen is turned 180 degrees, the boundary temperature of the table and the extruder is shifted upwards, the measurement accuracy is + -10 degrees, everything else is as written above |
@LordsWars — A contributor is now attempting to add a build environment for this board to Marlin over at MarlinFirmware/Marlin#25782. Can you confirm that the environment and board variant are correct in that PR? |
Hello, I downloaded your files from GitHub for Robin 2 and compiled it as it is - got a bunch of errors, figured it out and added it to the platformio.ini file -> [env: mks_robin2]
platform = [email protected] got the Robin2.bin code. I noticed that the code is 99 kilobytes when the original is 412510 bytes. I poured it into the board via a flash card and as a result I got the inscription "Booting ..." on the screen and that's it ... the board doesn't work further ... what needs to be changed to load the normal version of Marlin 2.0 ???
I bought this board to create a printer that can drill, cut with a laser and print with plastic, and in the current configuration it can only print from two heads, which is not good ...
The text was updated successfully, but these errors were encountered: