-
Notifications
You must be signed in to change notification settings - Fork 12
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
DFU download bugchecks on linux after upgrade to ver 0.0.7 #32
Comments
What code did you compile? |
I'm seeing the same issue. Seems like possibly a bug in I'm running latest Arch Linux and have not tested other Linux distros to determine if it could possibly be an issue with bleeding edge libraries or something. Code:
Stack trace:
Note:
|
After more investigation it seems to be a problem with any of the formatting functions.
Same problem, won't flash because ISP Console crashes. When I get time I'll look at the generated hex file to see if I can determine what might be pulled in there that causes the crash. It seems like it might be some sort of parsing bug in ISP Console. Edit: |
I can't find any particular thing that is causing this. I don't think it's the format function or strtok in particular. It seems to be unrelated to that but those large code inclusions do seem to make it worse. It's somewhat random in nature. On some machines it crashes every time and on others sometimes it works and sometimes it crashes. This seems more and more likely there is some sort of buffer overrun or other memory corruption in the ISP Console or one of the libraries it uses. See attached file for the list of possible corruption problems. |
I experience same issue as described it the case above, I guess, after the attempt of using P.S. de-installation of AT32 environment in Arduino IDE and re-install resolves the issue... (until the next use of printf() )... |
same problem with 0.0.8 |
Here is an example hex file that crashes or at least creates a bunch of memory errors in valgrind: Is there any way to report this to Artery? New versions come out but this is still buggy. |
Still the , same problem. Some more hints: When plugging the AT32F403A black pill into USB it becomes impossible to access the serial loader. To be able to program this device, I need to power it from a power pack, since if the bootloader senses USB, a DFU device is created. However, the Artery DFU bootloader crashes when used. The only way to program is to unplug the pill from USB, connect it with serial, plug into power bank while pressing boot0, and then serially program. To test, the reverse procedure must be used, Gullik |
Global variables use 2616 bytes of dynamic memory.
/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!
The text was updated successfully, but these errors were encountered: