HELLO WORLD HELP!!

Post here first, or if you can't find a relevant section!
Post Reply
dannis
Posts: 3
Joined: Thu Feb 04, 2021 12:44 am

HELLO WORLD HELP!!

Post by dannis »

I am a new & not speak Engilsh guy, so sorry my stupid Engilsh.
I had 3 STM32F030 Demo board , I try to use Examples blink to test it's success.
but I try Serial.println("HELLO WOELD"), I can't see any message in ArduinoIDE monitor box, I don't know why.
I had change baud to 9600 in monitor box , and change demo board , usb to rs232 adapter, it all fail , please help me , thank you .

my code

Code: Select all

#define pinLED PA4

void setup() {
  Serial.begin(9600);
  pinMode(pinLED, OUTPUT);
}

void loop() {
  digitalWrite(pinLED, HIGH);
  delay(1000);
  digitalWrite(pinLED, LOW);
  delay(1000);
  Serial.println("Hello World");
}
my setup
1.jpg
1.jpg (71.13 KiB) Viewed 3615 times
by fpiSTM » Thu Feb 04, 2021 6:21 am
You wired your ftdi on PA3 and PA2?
Go to full post
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: HELLO WORLD HELP!!

Post by ag123 »

this board seem to have a 8mhz crystal on board, try using "DEMO_F030F4 board" instead of "DEMO_F030F4_16M board".
normally stm32 can do higher serial speeds like Serial.begin(115200)

this mcu has only FLASH 16KiB SRAM 4KiB, be wary of those limitations. but your sketch seem to download ok
a more popular pill boards is those stm32f103c8 pill boards and stm32f401ccu pill boards which has more memory and flash
you can also try original STM Nucleo boards such as a STM32F401 Nucleo, check the list of supported boards
https://github.com/stm32duino/Arduino_Core_STM32

it seemed you are using linux? check dmesg command and lsusb command to see where the usb-uart dongle is connected.
you'd need to choose the correct port/dev for serial monitor to connect
check serial monitor uart speeds as well, the host uart speed has to match your sketch.
dannis
Posts: 3
Joined: Thu Feb 04, 2021 12:44 am

Re: HELLO WORLD HELP!!

Post by dannis »

THANK YOU ag123 .
I try to change board to "DEMO_F030F4 board" still fail . buad 9600~115200. but LED blink is good.
yes I'm use linux , and I'm sure usb-uart work fine , because I have esp8266 in same env working good.
and I try STM32F4 series "Generic F401CB", "Generic F401CC", "Generic F401CD", "Generic F401CE", all fail and blink fail too.

at the same time with "DEMO_F030F4 board" , I also tested Adafruit Neopixel Examples "simple" , ws2812b led working fine ...
so , It seems only COM port error !! I don't know how to fix it..
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: HELLO WORLD HELP!!

Post by fpiSTM »

You wired your ftdi on PA3 and PA2?
dannis
Posts: 3
Joined: Thu Feb 04, 2021 12:44 am

Re: HELLO WORLD HELP!!

Post by dannis »

Hi fpiSTM
thanks for your reply.
I change wire to PA2, PA3
yes , I got message !!
THANK AGAIN..
Post Reply

Return to “General discussion”