h3oCharles
New member
oh hi,
i have a Teensy 4.1 that does not give me anything in the Serial Monitor
- the Teensy 4.1 has been purchased on 17.03.2023 from a 3rd party retailer
- nothing is wired in currently
- OS is Windows 10 Pro 22H2
what i have done:
1. i plugged the microcontroller, the blink program was running correctly
2. tapping the built-in button stopped the blink program
3. downloaded and installed Arduino IDE 2.0.4
4. gave the Additional board manager URL and let it install as instructed in https://www.pjrc.com/teensy/td_download.html
5. set the USB Type to Serial
6. uploaded the hello world code in https://www.pjrc.com/teensy/td_serial.html , being:
7. the ouput only displays memory usage stuff:
8. opening the IDE's Serial Monitor displays nothing, it is set to 9600 baud, here's a screenshot, tho I'm sure if it will help
what have i done wrong? did i not install the teensyduino addon correctly? how can i check that?
if needed, i can make screenshots and videos of whatever that's needed
also:
- i rebooted the pc once and tried hello world code, and still nothing outputs
- i have two java installs, is that bad? the main one is the newer one, here's "java -version" written in cmd:
interestingly, when I set the USB Type to Keyboard and run this code, everything runs as intended:
i have a Teensy 4.1 that does not give me anything in the Serial Monitor
- the Teensy 4.1 has been purchased on 17.03.2023 from a 3rd party retailer
- nothing is wired in currently
- OS is Windows 10 Pro 22H2
what i have done:
1. i plugged the microcontroller, the blink program was running correctly
2. tapping the built-in button stopped the blink program
3. downloaded and installed Arduino IDE 2.0.4
4. gave the Additional board manager URL and let it install as instructed in https://www.pjrc.com/teensy/td_download.html
5. set the USB Type to Serial
6. uploaded the hello world code in https://www.pjrc.com/teensy/td_serial.html , being:
Code:
void setup() {
Serial.begin(9600); // USB is always 12 or 480 Mbit/sec
}
void loop() {
Serial.println("Hello World...");
delay(1000); // do not print too fast!
}
Code:
Memory Usage on Teensy 4.1:
FLASH: code:10700, data:2968, headers:8856 free for files:8103940
RAM1: variables:3488, code:8032, padding:24736 free for local variables:488032
RAM2: variables:12384 free for malloc/new:511904
what have i done wrong? did i not install the teensyduino addon correctly? how can i check that?
if needed, i can make screenshots and videos of whatever that's needed
also:
- i rebooted the pc once and tried hello world code, and still nothing outputs
- i have two java installs, is that bad? the main one is the newer one, here's "java -version" written in cmd:
Code:
java -version
java version "17.0.1" 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)
interestingly, when I set the USB Type to Keyboard and run this code, everything runs as intended:
Code:
void setup() {
// put your setup code here, to run once:
#include <print.h>
#include <usb_keyboard.h>
#include <keyboard.h>
Serial.begin(9600);
// Bit numbers for each led - used to make it easier later to know what you were actually testing for...
#define USB_LED_NUM_LOCK 0
#define USB_LED_CAPS_LOCK 1
#define USB_LED_SCROLL_LOCK 2
#define USB_LED_COMPOSE 3
#define USB_LED_KANA 4
}
void loop() {
// put your main code here, to run repeatedly:
// This part should go inside your code where you want to test the state of the caps lock led
if (keyboard_leds & (1<<USB_LED_CAPS_LOCK)) // checks that the caps lock bit is set
{
// CapsLock is ON - put your "on" code here
Keyboard.println("CapsLock is ON");
}
else
{
// CapsLock is OFF - put your "off" code here
Keyboard.println("CapsLock is OFF");
}
delay(1000);
}