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

WeActStudio support is very inadequate, almost non-existent #47

Open
rizacelik opened this issue Jan 14, 2024 · 6 comments
Open

WeActStudio support is very inadequate, almost non-existent #47

rizacelik opened this issue Jan 14, 2024 · 6 comments

Comments

@rizacelik
Copy link

WeActStudio produces great cards, but it's far from user-friendly help that I can see. Ignoring the questions and problems here will earn you minus points.
ArduinoCore-AT32F4 library works well with Arduino. After the code is loaded, there is no support for sending it to the screen from the Serial interface. Serial COM PORT support is missing or we don't know. We are waiting for an explanation on this matter.

@ShaggyDog18
Copy link

ShaggyDog18 commented Mar 3, 2024

Serial is supported for sure: there are 6 serial ports!
you need to include Hardware Serial where Serials are defined:
#include <HardwareSerial.h>
Then use them as Serial, Serial2, Serial3, ... Serial6.
For TX-RX pins refer to the AT32 chip datasheet.
And be sure to use the current set of files (version 0.0.8) rather than v0.0.1 release.
The current set resolves some issues related to Serial: I opened several cases (you may find them in the history) and my cases were resolved; this is how the v0.0.8 appeared :-)

@rizacelik
Copy link
Author

Thank you very much for your reply. Where can I download version 0.0.8? Here we have version 0.0.1.

@ShaggyDog18
Copy link

ShaggyDog18 commented Mar 4, 2024

Current files in the repository is v0.0.8. Use green Code button to download all files as a zip. Then copy-past files from the zip over the existing v0.0.1 on your hard drive.

@rizacelik
Copy link
Author

rizacelik commented Mar 5, 2024

v0.0.8 installed. USB COM PORT is not active. So I can't use Serial Monitor.
I'm waiting for your help on this matter. What settings should I make?

image

Example code:

#include <HardwareSerial.h>

HardwareSerial Serial1(USART1);

// the setup function runs once when you press reset or power the board
void setup() {
  Serial1.begin(9600);
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);  // turn the LED on (HIGH is the voltage level)
  Serial1.println("LED");
  delay(500);                      // wait for a second
  digitalWrite(LED_BUILTIN, LOW);   // turn the LED off by making the voltage LOW
  delay(500);                      // wait for a second
}

@ShaggyDog18
Copy link

ShaggyDog18 commented Mar 5, 2024

  1. you do not need the second line. all UARTS are already mapped in HardwareSerial.h
    USART1 is pre-assigned to Serial. so you refer to it as, for example:
void setup() {
  Serial.begin(9600);
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}
  1. Serial is not mapped to USB. UART1 is on pins TX PA9-RX PA10 (similar to STM32).
    So, you have to connect UART-USB adaptor to pins in order to communicate with your PC.

@rizacelik
Copy link
Author

Thank you. I will try.

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