Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

Open-source USB interface: Audio Widget
Open-source USB interface: Audio Widget
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 8th June 2017, 07:21 PM   #2361
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
Ok, I found the instructions I think I flashed successfully the latest fw:

C:\Program Files (x86)\Atmel\Flip 3.4.7\bin>batchisp.exe -device at32uc3a3256 -h
ardware usb -operation erase f memory flash blankcheck loadbuffer awx_20160323_v
olume_control_0dB.elf
Running batchisp 1.2.5 on Thu Jun 08 18:17:01 2017



AT32UC3A3256 - USB - USB/DFU


Device selection....................... PASS
Hardware selection..................... PASS
Opening port........................... PASS
Reading Bootloader version............. PASS 1.0.3
Erasing................................ PASS
Selecting FLASH........................ PASS
Blank checking......................... PASS 0x00000 0x3ffff
Parsing ELF file....................... PASS awx_20160323_volume_control_0dB.
elf

Summary: Total 8 Passed 8 Failed 0

C:\Program Files (x86)\Atmel\Flip 3.4.7\bin>

MCU is not showing under audio devices after reset, is that where it should appear? I can still see it under libusb-win32 devices as AT32UC3A3
__________________
Neb. [LDR Volume Control OLED firmware:]
https://drive.google.com/open?id=0B7...ENmRXNYUEtySVE

Last edited by zdr; 8th June 2017 at 07:49 PM.
  Reply With Quote
Old 9th June 2017, 08:28 AM   #2362
borges is offline borges  Norway
diyAudio Member
 
Join Date: Dec 2003
Location: Oslo, Norway
Hm,

you should download the Thesycon Descriptor Dumper to see which USB interfaces are actually present. The firmware you just downloaded makes the DAC identify itself as a Henry Audio device.

It sounds like it still boots into the bootloader and not the application. I'm not familiar enough with your programming method to say what may have gone wrong.

BÝrge
  Reply With Quote
Old 9th June 2017, 08:32 AM   #2363
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
Quote:
Originally Posted by borges View Post
Hm,

you should download the Thesycon Descriptor Dumper to see which USB interfaces are actually present. The firmware you just downloaded makes the DAC identify itself as a Henry Audio device.

It sounds like it still boots into the bootloader and not the application. I'm not familiar enough with your programming method to say what may have gone wrong.

BÝrge
Borge, I am now using your programming method with FLIP see my previous post. It does seem like it boots into bootloader every time. I tried another firmware and it behaves in the same way.
__________________
Neb. [LDR Volume Control OLED firmware:]
https://drive.google.com/open?id=0B7...ENmRXNYUEtySVE
  Reply With Quote
Old 9th June 2017, 08:36 AM   #2364
borges is offline borges  Norway
diyAudio Member
 
Join Date: Dec 2003
Location: Oslo, Norway
That is something I haven't seen before.

Honestly, I dislike the Flip method because of all the prerequisites. It's a big hassle to use, and I'd like to use something else. But it has to be stable first.

Have you reached out to avrfreaks about this?


BÝrge
  Reply With Quote
Old 9th June 2017, 08:38 AM   #2365
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
Quote:
Originally Posted by borges View Post
That is something I haven't seen before.

Honestly, I dislike the Flip method because of all the prerequisites. It's a big hassle to use, and I'd like to use something else. But it has to be stable first.

Have you reached out to avrfreaks about this?


BÝrge
Which method do you recommend? Is there a 3rd way to flash a firmware I am not aware of? I haven't reached to avrfreaks, whatever that is
__________________
Neb. [LDR Volume Control OLED firmware:]
https://drive.google.com/open?id=0B7...ENmRXNYUEtySVE
  Reply With Quote
Old 9th June 2017, 09:13 AM   #2366
borges is offline borges  Norway
diyAudio Member
 
Join Date: Dec 2003
Location: Oslo, Norway
This far I have only used flip. It is a hassle to install, but works for me once wrapped in a .bat file. dfu-programmer.exe is something I haven't used, but would like to try.

It sounds to me like the programming you did failed to change a flag (or something like that) which makes the bootloader go ahead and execute the application and not the DFU.

Once or twice I have been able to update the bootloader with JTAG, but that is a tricky job which requires pins to be put in and the right Atmel file to be located.

AVRfreaks is a large community for Atmel programmers. I hope you may find some answers there or among the developers of dfu-programmer.

Please keep us posted. I'd like to be able to bypass flip and its cumbersome installation process. But it has to be with something which is stable.


BÝrge
  Reply With Quote
Old 9th June 2017, 09:21 AM   #2367
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
Quote:
Originally Posted by borges View Post
This far I have only used flip. It is a hassle to install, but works for me once wrapped in a .bat file. dfu-programmer.exe is something I haven't used, but would like to try.

It sounds to me like the programming you did failed to change a flag (or something like that) which makes the bootloader go ahead and execute the application and not the DFU.

Once or twice I have been able to update the bootloader with JTAG, but that is a tricky job which requires pins to be put in and the right Atmel file to be located.

AVRfreaks is a large community for Atmel programmers. I hope you may find some answers there or among the developers of dfu-programmer.

Please keep us posted. I'd like to be able to bypass flip and its cumbersome installation process. But it has to be with something which is stable.


BÝrge
Thanks for the useful info. Now that I know what to expect, I can devise next steps.

1) Dfu programmer did a good job in flashing, but I don't know how to flash .elf files with it. It seems to expect hex files.
2) Flip was able to flash .elf, but it's booting in bootloader every time.

I will play with both variants and see where they get me.
__________________
Neb. [LDR Volume Control OLED firmware:]
https://drive.google.com/open?id=0B7...ENmRXNYUEtySVE
  Reply With Quote
Old 9th June 2017, 09:27 AM   #2368
borges is offline borges  Norway
diyAudio Member
 
Join Date: Dec 2003
Location: Oslo, Norway
OK, good luck!

Wild speculation makes me guess that the application was written to the wrong place in memory compared to what the bootloader expects, or that some flag bit wasn't properly modified.

Sorry that I can only offer you guesswork here..

BÝrge
  Reply With Quote
Old 12th June 2017, 03:05 PM   #2369
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
It was a mix of hardware (cold solder) and incomplete instructions for batchisp?? Program command was missing. This is now working:

C:\Program Files (x86)\Atmel\Flip 3.4.7\bin>batchisp.exe -device at32uc3a3256 -h
ardware usb -operation erase f memory flash blankcheck loadbuffer awx_20140918_m
kII_RC03.elf program
Running batchisp 1.2.5 on Mon Jun 12 17:02:03 2017



AT32UC3A3256 - USB - USB/DFU


Device selection....................... PASS
Hardware selection..................... PASS
Opening port........................... PASS
Reading Bootloader version............. PASS 1.0.3
Erasing................................ PASS
Selecting FLASH........................ PASS
Blank checking......................... PASS 0x00000 0x3ffff
Parsing ELF file....................... PASS awx_20140918_mkII_RC03.elf
WARNING: The user program and the bootloader overlap!
Programming memory..................... PASS 0x00000 0x1c987


Summary: Total 9 Passed 9 Failed 0

After this, I did a reset from dfu-programmer:

C:\dfu-programmer-win-0.7.2>dfu-programmer at32uc3a3256 reset --debug 4
target: at32uc3a3256
chip_id: 0x2ff1
vendor_id: 0x03eb
command: reset
quiet: false
debug: 4
device_type: AVR32
------ command specific below ------

It now shows under audio widget devices? Audio interface and Control Interface??
__________________
Neb. [LDR Volume Control OLED firmware:]
https://drive.google.com/open?id=0B7...ENmRXNYUEtySVE
  Reply With Quote
Old 12th June 2017, 03:18 PM   #2370
borges is offline borges  Norway
diyAudio Member
 
Join Date: Dec 2003
Location: Oslo, Norway
Great that you got it to work again!

BÝrge
  Reply With Quote

Reply


Open-source USB interface: Audio WidgetHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Async 192Khz USB - the SDR-Widget collaborative project SunRa PC Based 5 26th April 2011 06:38 PM
usb audio interface david12 Equipment & Tools 14 10th October 2010 02:58 AM
Cheap Audio Interface (USB?) to PC agm2003 Instruments and Amps 11 16th September 2007 07:48 AM
Open call for suggestions on Open Source DIY Audio Design gfergy Everything Else 1 15th April 2007 07:33 AM
USB Interface Perfect?- Computer Audio fmak Digital Source 3 4th December 2004 10:24 PM


New To Site? Need Help?

All times are GMT. The time now is 01:24 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 14.29%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki