Git Product home page Git Product logo

arduinocore-at32f4's People

Contributors

alberiolima avatar c--- avatar weactstudio avatar yxzhu avatar zyq-feiyue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

arduinocore-at32f4's Issues

DFU download bugchecks on linux after upgrade to ver 0.0.7

Global variables use 2616 bytes of dynamic memory.

  • WeAct Studio Official Link
  • taobao: weactstudio.taobao.com
  • aliexpress: weactstudio.aliexpress.com
  • blog: www.weact-tc.cn
    /home/webjorn/.arduino15/packages/WeActStudio/tools/Artery_ISP_Console/0.0.1

Artery ISP Programmer V3.0.01
Support USART and DFU

DFU Connect......
Device: AT32F403ACGU7 Flash: 1024 KB
PID: 70050347 BID: 4703 Version: 3.2
Device connected Successfully

/home/webjorn/.arduino15/packages/WeActStudio/tools/Artery_ISP_Console/0.0.1/DFU_download.sh: line 12: 135907 Segmentation fault (core dumped) $(dirname $0)/AT32_ISP_Console -dfu -d --fn "$1" --v --o -r
Upload Quit.
Have a good day!

Availability of all six/seven Serials (UARTs) in HardwareSerial

Please, deploy all 6 Serials (UART) to HardwareSerial soon.
I need five (5) Serial interfaces for my project; however, reviewing HardwareSerial files I have discovered that Seial1, 2 and 3 are deployed so far. Please, include Serial 4 and 5 soon.
Ideally, if you make all 6/7 Serials available.
Thank you!

DFU upload stopped working on release 003.

The DFU upload stopped working after installing release 003. Arduino console supplied...below

  • WeAct Studio Official Link
  • taobao: weactstudio.taobao.com
  • aliexpress: weactstudio.aliexpress.com
  • blog: www.weact-tc.cn
    /home/webjorn/.arduino15/packages/WeActStudio/tools/Artery_ISP_Console/0.0.1

Artery ISP Programmer V3.0.01
Support USART and DFU

DFU Connect......
Device: AT32F403ACGU7 Flash: 1024 KB
PID: 70050347 BID: 4703 Version: 3.2
Device connected Successfully

/home/webjorn/.arduino15/packages/WeActStudio/tools/Artery_ISP_Console/0.0.1/DFU_download.sh: line 12: 2803 Segmentation fault (core dumped) $(dirname $0)/AT32_ISP_Console -dfu -d --fn "$1" --v --o -r
Upload Quit.
Have a good day!

USB CDC support when building

Currently, there is no support for USB in the built sketch. It would be extremely useful to be able to select that and get the appropriate
software included, and get a /dev/ttyACM0 device for Serial.

PWM does not work for multiple pins

PWM is configured for 25kHz, 50% duty cycle (see the code below). Tested PWM for several pins.
PWM works for pins: PB14, PB0, PB1, PB6, PA7, PA8
PWM does not work for: PB2, PB12, PB13, PB15, PA15, PA12
I interested in PA15 because it is already traced at PCB. Did not test other pins. The test code is simple:

#define PWM_PIN  PA15      //works for: PB14, PB0, PB1, PB6, PA7, PA8

void setup() {
  PWM_Init( PWM_PIN, 100, 25000UL );
  PWM_Write( PWM_PIN, 50 );
}
 
void loop() {
}

WeActStudio support is very inadequate, almost non-existent

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.

Issue with use of Serial.printf() function

if there is a Serial.printf() function in the code, it is compiled without any error;
However, the code is not uploaded into MCU and does not show any error message.
The compile and upload result looks like below, no error reported, just Upload Quit.Still the code is not actually uploaded to the MCU:

Artery ISP Programmer V3.0.01
Support USART and DFU
------------------------------------------------------------

DFU Connect......
Device:  AT32F403ACGU7    Flash:  1024 KB
PID:  70050347      BID:  4703    Version:  3.2
Device connected Successfully

Upload Quit.
Have a good day!

How to read cpu frequency?

F_CPU is a literal, defined in boards.txt. It could probably be calculated from the menu if there was an external clock entry
since all the dividers are setup correctly, making running @ 240 Mhz OK.

I cannot find any reference to SystemCoreClock, which should be a variable set when clock is configured or reconfigured.

Right now my board always reports a speed of 80 Mhz, and other variables controlled by F_CPU scale on that.
A manual edit of boards.txt of course fixes it.

Build error: (.text._sbrk_r+0xc): undefined reference to `'_sbrk' in function `'_sbrk_r'

Compiler/builder in Arduino IDE 2.0.0-rc9.2 ends up with the following error every even time I build the image:

c:/users/xyz/appdata/local/arduino15/packages/weactstudio/tools/xpack-arm-none-eabi-gcc/11.2.1-1.2/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/bin/ld.exe: 
c:/users/xyz/appdata/local/arduino15/packages/weactstudio/tools/xpack-arm-none-eabi-gcc/11.2.1-1.2/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp\libg_nano.a(lib_a-sbrkr.o): in function `_sbrk_r':
(.text._sbrk_r+0xc): undefined reference to `_sbrk'
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

The error appears every second time I run the compile/build process for the code that usually compiles without errors.

How about adding libraries?

It looks to me that there are board libraries fir the AT32F403A starter board. Could these be added to the distribution? This is different from the ST series of CPUs where adding the board also includes the libraries...

Gullik

Adding a section to the json file, board installs but does not work...

Modifying the json, and adding a section for X86_64_Linux and removing references to Artery_ISP_Console for which I could not find any suitable archive, and putting the json file on a local webserver, the board installs OK (as reported)

However, compiling results in the following:
fork/exec /home/webjorn/.arduino15/packages/WeAct Studio/tools/xpack-arm-none-eabi-gcc/11.2.1-1.2\bin\arm-none-eabi-g++: no such file or directory
But:
.arduino15/packages/WeAct Studio/tools/xpack-arm-none-eabi-gcc/11.2.1-1.2/bin/arm-none-eabi-g++
is present in the file system....
Note the directory spec with \ insted of /....

Change to json file below.....

  "tools": [^M
    {^M
      "name": "xpack-arm-none-eabi-gcc",^M
      "version": "11.2.1-1.2",^M
      "systems": [^M
        {^M
          "host": "i686-mingw32",^M
          "url": "https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v11.2.1-1.2/xpack-arm-none-eabi-gcc-11.2.1-1.2-win32-x64.zip",^M
          "archiveFileName": "xpack-arm-none-eabi-gcc-11.2.1-1.2-win32-x64.zip",^M
          "checksum": "SHA-256:4a45e1df1c621f0a97a2bcb63977a3745ffcff7afc0e31ad2f3d5cc1272acf4b",^M
          "size": "247612940"^M
        },^M
        {
          "host": "x86_64-pc-linux-gnu",
          "url": "https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v11.2.1-1.2/xpack-arm-none-eabi-gcc-11.2.1-1.2-linux-x64.tar.gz",
          "archiveFileName": "xpack-arm-none-eabi-gcc-11.2.1-1.2-linux-x64.tar.gz",
          "checksum": "SHA-256:7479becc1ea98fbceecadf1f036ddaba8dc39c9cce5cb45f0a7a36e923d33c9a",
          "size": "235243515"
        }

EXINT does not work hanging up/crashing MCU

I use External Interrupts at pins PA4, PA5, PA8 and PA15, falling edge.
They all hanging up the MCU even with empty ISR callback function.
Each of the above pins configured for EXINT is crashing MCU at the moment interrupt happens. I did not test other pins, however, I guess, the outcome would be the same since the issue is somewhere in NVIC config.

I attach EXINT by attachInterrupt function:

attachInterrupt( TIMING_PIN, Timing_ISR_1, FALLING );

Timing_ISR_1 is either very simple or even empty like:

void Timing_1_ISR(void){
   //timing_1_flag = true;
}

Please, check it up and fix ASAP.
Thank you!

Test code: press onboard key to crash the MCU

#define KEY_PIN  PA0

void Timing_1_ISR(void);

void setup() {
  pinMode( LED_BUILTIN, OUTPUT );
  pinMode( KEY_PIN, INPUT ); 

  attachInterrupt( KEY_PIN, Timing_1_ISR, FALLING ); 
}
 
void loop() {
  static uint32_t blinkTimer = 0;
  uint32_t now = millis();

  if( now - blinkTimer >= 500 ) {
    blinkTimer = now;
    togglePin(LED_BUILTIN);
  }
}

void Timing_1_ISR(void){
 //togglePin(LED_BUILTIN);
}

Incorrect output at UART with PARITY_EVEN (SERIAL_8E2) configuration

I experience an incorrect data output at USART3, though it might be at all UARTs.
The output: sequence of bytes at baud rate 115200, SERIAL_8E2 (also tried a custom 100000: the baud rate does not influence on the issue). The output bytes are not correct. However, the UART works fine for Parity NONE configuration (SERIAL_8N2).
Transfer data by serial.write( uint8_t *byte, nBytes ) method. Also tried serial.write( uint8_t byte) method with the same issue.
Here is the sequence of bytes: the line L1 is the output sequence; the line L2 is the actual output caught at the TX. I marked by * the bytes that are not matching (at the end of the incorrect byte pairs) .

L1: 00001111  11101010*  01010011  10011111  11111010  11010100  10100111*  00111110*  10001011  01011000*  01000100  01111101  10110011*  10110110*  10001000  01000101*  11010100  00000111* 
L2: 00001111  01101010*  01010011  10011111  11111010  11010100  00100111*  10111110*  10001011  11011000*  01000100  01111101  00110011*  00110110*  10001000  11000101*  11010100  10000111*

As you can see, the difference has appeared in the first leading bit of transferred bytes, sometimes bytes are correct (no *), sometimes '0' is swapped by '1' and wise versa. I have not spotted the regularity.

Please, take a look at how EVEN parity is processed during data transfer (TX) and fix.
Thank you!
P.S. I spent almost 3 weeks identifying the possible cause of the incorrect data output! Please, need your help to fix. Thank you.

Support request: Serial upload.

Hello, i was interested in this boards package, but there is no serial upload support. I can not program this board without being able to use a FTDI adapter as the usb boot loader your company uses seems to never give a valid port on Windows regardless of if i have a driver or not. If you could be able to add this support i will gladly use the board. Thank you for your help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.