Black Pill with adafruit ST7789

Post here first, or if you can't find a relevant section!
heretop
Posts: 39
Joined: Sun Jun 20, 2021 2:09 pm

Re: Black Pill with adafruit ST7789

Post by heretop »

fpiSTM wrote: Mon Jul 05, 2021 6:58 pm Print both values is a good idea.
Could you also share a full log of the build, please? Think to enable all the verbose in the preference.
Here is the full log of the build for PAXX style https://gist.github.com/ht93/39b1477879 ... 0ed65c9365, and for PA_XX style https://gist.github.com/ht93/c3ed1d80ec ... ca6129ba15. I don't find big difference between these two.

I haven't used serial monitor since I got blackpill (my first stm32), and it does not working correctly with st link as I tried today. So I used the tft to print PA5 and PA_5 as shown here:

Code: Select all

  tft.setCursor(10, 75);
  tft.println(PA5);
  tft.setCursor(10, 125);
  tft.println(PA_5);
The output for PA5 is "197", the output for PA_5 is "5".
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Black Pill with adafruit ST7789

Post by fpiSTM »

Thanks.
I see no issue.
PA5 is 197 (0xC5) where 0xC0 is for analog base then it is converted to index 5. So this is OK.
The only thing different is:
- you built with debug but I've tested and had no issue.
- Arduino IDE version is the same but not installed the same way. I use ZIP one and you probably used the MSI one installed in program files (X86), but don't think it is the issue :D

Maybe a cache issue....
Thank you for all the tests but I have no more clue why you got this issue. Maybe removed all and reinstalled... up to you.
The fact Serial does not work, don't know the link with STLink? you want use the one from the Nucleo F411RE ? If tru then simply connect the TX pin of the blackpill to the Rx pin of the STLink.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Black Pill with adafruit ST7789

Post by fpiSTM »

I've found the issue, see: viewtopic.php?p=8212#p8212
heretop
Posts: 39
Joined: Sun Jun 20, 2021 2:09 pm

Re: Black Pill with adafruit ST7789

Post by heretop »

fpiSTM wrote: Thu Aug 26, 2021 5:00 pm I've found the issue, see: viewtopic.php?p=8212#p8212
Great that hear it works! I recently get back to stm32duino project with lvgl. Glad this got fixed.
Post Reply

Return to “General discussion”