Skip to content

Troubles getting Pro Micro to run #4891

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

Open
JuLi0n21 opened this issue May 10, 2025 · 2 comments
Open

Troubles getting Pro Micro to run #4891

JuLi0n21 opened this issue May 10, 2025 · 2 comments

Comments

@JuLi0n21
Copy link

Hello TinyGo team,

Im currently struggling getting this Pro Micro to run. (datasheet)

I managed to flash to the mcu using the arduino-leonardo configuration but it seems to be doing nothing at all.

i started with a blinky script migrated from code written in arduino IDE, which also detects the board as arduino-leonardo.

i saw and experienced the same issue described in this issue

tinygo code:

package main

import (
	"machine"
	"time"
)

func main() {
	rxLed := machine.Pin(17)
	txLed := machine.Pin(30)

	rxLed.Configure(machine.PinConfig{Mode: machine.PinOutput})
	txLed.Configure(machine.PinConfig{Mode: machine.PinOutput})

	for {
		rxLed.High()
		txLed.Low()
		time.Sleep(300 * time.Millisecond)

		rxLed.Low()
		txLed.High()
		time.Sleep(300 * time.Millisecond)
	}
}

original arduino code:

int RXLED = 17; 
int TXLED = 30; 

void setup() {
  
  pinMode(RXLED, OUTPUT);
  pinMode(TXLED, OUTPUT);
}

void loop() {
  digitalWrite(RXLED, HIGH);
  digitalWrite(TXLED, LOW);
  delay(300);
  digitalWrite(RXLED, LOW);
  digitalWrite(TXLED, HIGH);
  delay(300);
}

flash command:
tinygo flash -target arduino-leonardo -no-debug main.go

i would be willing to create the missing pieces but i honestly dont even know where to start

@sago35
Copy link
Member

sago35 commented May 11, 2025

@jespino
How was this part when you were developing it? It seems that writing to the atmega32u4 on an arduino-leonardo removes the USBCDC, making recovery difficult.

@JuLi0n21
Copy link
Author

JuLi0n21 commented May 12, 2025

I also found this where some more differences are noted, cant confirm its the actual same board since their seems to be many different version of the board

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