Code Monkey home page Code Monkey logo

mks-tft28's People

Contributors

darkspr1te avatar delwinbest avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

mks-tft28's Issues

Working marlin LCD menu

So I sat down and ported the bigtreetech LCD Marlin control system from
https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware
to
https://github.com/darkspr1te/MKSTFT_Marlin_Touch

Uarts are problem still,
to switch serial port (Wifi TXD,RXD,RX,TX or AUX1 TX,RX)
UART1 WIFI: TXD,RXD
UART2 AUX1: TX,RX
UART3 WIFI: TX,RX
in variants.h
#define SERIAL_PORT _USART1 (line #125)

connecting TXD/RXD from wifi connector to the TX/RX of the Ramps cable , open a terminal on the ramps board and you should see commands echoed back,

After flashing , copy MKS folder to SDCARD , create blank file reset.txt (this triggers touch calib)
reset MKSTFT , fonts should update right away.
Enjoy, feel free to Fork ,

N.B
USB Host hangs, CPU / XTal speed is incorrect but close enough for 115200 baud to work , will loose uart sync sometimes,
using UART2 as main uart(via AUX1 TX/RX) not working, AUX1 TX/RX is 5v, low is 2.56 - need to test on another board
speaker works but disabled for normal use
switch board type from #define STM32F10X_CL (#79 variants.h file )
to
#define STM32F10X_HD

will still function abliet slower, must port those _CL changes to other lib(arduino one)
as is now show's it's correct speed loading data from spi (test difference you will see)
only issue is under _CL the math is off for uart, errors occur.

i2c eeprom untested,
built usin CMSIS libs/STDPeriph
SDDeinit(); causes hang
see boot.c for SPI EEprom & sdcard updating code

Re implement LCD Init and libraries

The LCD only works when using MKS bootloader, this implies there is missing init code in main software. Need to refactor and create feature parity between the two.

Relates to #1

overhaul of tft-alt-fw

So i've overhauled /variant enough so out of the box UTFT/URTOUCH(calibrated)/SD Card, EEPROM-SPI/I2CPROM/All uarts 1/2/3 (HW) , External SD/SPI , RTC/PWM workings using most default demos, and i've dome some examples on top, i cannot get platformio to output a file with vectors for 0x8000000 only 0x8007000 despite my io additions, DM me at igeekcrg at gmail.com if you want to pull req the new changes as i wont be pushing them for while.
darkspr1te

Create multiple build environments

As a developer I'd like to select a build environment which will build either a bootloader compatible hex file (VECT offset 0x7000) , or flash the FW directly on the target board (no VECT offset).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.