-
Notifications
You must be signed in to change notification settings - Fork 91
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
32 u4 support #26
base: 32U4_support
Are you sure you want to change the base?
32 u4 support #26
Conversation
Modified JICE_io and jtag2updi to compile for 32U4. Failed to transfer files though. USB port shows up, HEX reply to command as expected, but couldn't program, yet.
Support for Arduino devices using HW_SERIAL for communication with PC, UART used for UPDI.
Separated UPDI for type1 (bitbang) and type3 (UART). Changed to more 'relaxed' timings for using UPDI.
Separated files for UPDI using bitbang/UART. Forgot to add changed Jtag2.cpp.
32U4 support only working using Linux right now due to a bug in windows not allowing the 32U4 to send a reply to avrdude.
I think you messed up the latest commit to your repository, there are lots of duplicate files in the root directory that should be in the source directory. |
messed up commit: wrong directory
messed up commit: wrong directory
messed up commit: wrong directory
messed up commit: wrong directory
messed up commit: wrong directory
messed up commit: wrong directory
messed up commit: wrong directory
messed up commit: wrong directory
Added support for AVR 32U4. Due to an issue how COM (with 32U4) is handled in windows, not allowing the Arduino to send feedback while trying to program, it's only working using Linux. Arduino libraries are being used for init of USB and also for some LED flashing added for finding where the sketch stops working using windows.
Sorry, hope I got that fixed now. I had to manual merge some files. Please check if something went wrong there with the changes done due to the tiny0/1 adds. |
The code cannot have unconditional dependencies on Arduino libraries, It must compile on systems that don't have the Arduino libraries installed (that is, for targets other than the mega32U4). edit: for example wrap the blocks with
|
I created a branch to work on the code, since even after you address the issue from the previous comment, there will probably be more things to change before merging with main. |
I can wrap the dependencies, no prob. But what happens with those files from |
And is it a good idea to keep the 'LED_blink' in? I added it only for that windows usb issue, as the ardino-ide has no debugger. But I could change that to setting LED on/off by setting the registers directly as you did (SYS::setLED, SYS::clearLED) - or put that in with an optional compile switch. |
No, what I want is not to break compatibility with things that work in the current version, like building by running the makefiles on a system without Arduino. edit: yes, regarding the LED, please use Arduino libraries only when absolutely needed. I'll be reviewing their use later, anyway. |
Hi, might be a bad place to post this, there are no issues available on @haweiler fork. `
EDIT: Verbose
` |
Hi,code is on working condition, still.It was quite some time now since I did the last commit. Code is working as it is (using Linux), ElTangas wanted me to kick out the dependencies to Arduino where not needed to have the non 32U4 part independend from Arduino. Work is done but not committed, yet. I had some changes as well turning more than one LED on/off to get a hint where the program got stuck. Didn't find an easy solution without Arduino there, therefor didn't commit.
Den tisdag 12 maj 2020 08:39:18 CEST, rneurink <notifications@github.com> skrev:
Hi, might be a bad place to post this, there are no issues available on @haweiler fork.
Is this code currently in working condition? I haven't had any luck so far with an arduino micro.
Any writeup how to get this working with the atmega32u4 would be highly appreciated
`avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\xxxxx\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\1.1.5/avrdude.conf"
Using Port : COM10
Using Programmer : jtag2updi
avrdude: ser_recv(): read error: The I/O operation has been aborted because of either a thread exit or an application request.
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: ser_send(): write error: sorry no info avail
avrdude: jtagmkII_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The device does not recognize the command.`
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Added support for AVR 32U4 using Arduino IDE. Library from Arduino IDE is used for initializing USB mainly. As there's a bug in Win not allowing the Arduino to send replies back it only works using Linux. For finding out where the sketch can't continue I added some LED flashing stuff also using Arduino library.