Skip to content
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

lgt8fx nano style support? #28

Open
orabeidm opened this issue Nov 20, 2022 · 12 comments
Open

lgt8fx nano style support? #28

orabeidm opened this issue Nov 20, 2022 · 12 comments

Comments

@orabeidm
Copy link

photo_2022-11-20_14-26-21
photo_2022-11-20_14-26-27

bandicam.2022-11-20.14-00-58-157.mp4
@ShendoXT
Copy link
Owner

Looking at the video it looks like you haven't actually written compiled sketch to the device. It says missing bootloader at one point. Try writing a simple hello app which sends something to serial port and verify that it's working properly.

@orabeidm
Copy link
Author

when I record a blink or something like that, everything works. this is strange ... I assembled my copy on another version where I applied 5 volts to the contacts everywhere. but it is interesting what is not so specific with this)

@ShendoXT
Copy link
Owner

ShendoXT commented Nov 23, 2022

The way MemcardRex verifies Memcarduino is that it sends GETID (hex 0xA) which should get "MCDINO" ASCII response over serial. After that it asks for firmware version (0xA1). You can fake this simple exchange with a skeleton sketch and it will still verify as genuine Memcarduino. So something in serial communication is not working properly if you don't get anything.

You need to have a working serial connection at 38400 baud.

@orabeidm
Copy link
Author

image
It seems to be so ... I don’t know how else to check. I probably need more detailed instructions

@ShendoXT
Copy link
Owner

ShendoXT commented Nov 23, 2022

No, that's not what I meant.

Write this simple sketch and verify with serial monitor that it's all working correctly.
You should get "Hello World!" printed each second in the monitor.

void setup() {
Serial.begin(38400);
}

void loop() {
Serial.println("Hello World!");
delay(1000);
}

@orabeidm
Copy link
Author

I'm sorry, but I don't know what a serial monitor is, how it looks and works.

@ShendoXT
Copy link
Owner

@orabeidm
Copy link
Author

image

@orabeidm
Copy link
Author

orabeidm commented Nov 23, 2022

dbuezas/lgt8fx#21

this should help

@ShendoXT
Copy link
Owner

ShendoXT commented Nov 23, 2022

Try this simple skeleton sketch, see if it gets detected as Memcarduino with MemcardRex.

void setup() {
  Serial.begin(38400);
}

void loop() {
   if(Serial.available() > 0){
    switch(Serial.read()){
      default:
        Serial.write(0xE0);
        break;

      case 0xA0:
        Serial.write("MCDINO");
        break;

      case 0xA1:
        Serial.write(0x99);
        break;
      }
    }
}

@orabeidm
Copy link
Author

image

@ShendoXT
Copy link
Owner

I'm sorry but this looks like it's hardware quirk of some some sort. Maybe bootloader takes more than 2 seconds to run the application in which case detection timeouts.

If you can burn the sketch using ISP without bootloader to start directly or find a way to shorten bootloader wait time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants