KimCard - KIM-1 6502 Single Board Computer Emulator

A place to document your own projects.

Re: KimCard - KIM-1 6502 Single Board Computer Emulator

Postby petersieg » Tue Nov 27, 2012 11:13 am

@simpleavr: Thanks! I don't want to register again with a new 43oh forum whatsoever.. so I am afraid have to wait until you have setup the information/source/pcb on your space (whatever is accessable without registering).

Peter
petersieg
Newbie
Newbie
 
Posts: 12
Joined: Sat Nov 10, 2012 1:27 pm

Re: KimCard - KIM-1 6502 Single Board Computer Emulator

Postby petersieg » Wed Nov 28, 2012 12:23 pm

Just downloaded newest code and try to build in Atmel Studio 6:
Warning 1
#warning "Compiler optimizations disabled; functions from <util/delay.h> won't work as designed" [-Wcpp]
c:\programme\atmel\atmel studio 6.0\extensions\atmel\avrgcc\3.4.0.65\avrtoolchain\bin\../lib/gcc/avr/4.6.2
/../../../../avr/include/util/delay.h 95 3 KimCard

Error 1
Program Memory Usage : 15856 bytes 43,0 % Full
Data Memory Usage : 4487 bytes 109,5 % Full (Memory Overflow)
EEPROM Memory Usage : 1024 bytes 100,0 % Full

??

Peter
petersieg
Newbie
Newbie
 
Posts: 12
Joined: Sat Nov 10, 2012 1:27 pm

Re: KimCard - KIM-1 6502 Single Board Computer Emulator

Postby matseng » Wed Nov 28, 2012 8:18 pm

Hm, that is strange.

The warning is ok because I've disabled optimizations in when compiled in Debug-modem.
But why would the data memory overflow? When I compile I get the following memory statistics:

Program Memory Usage : 13838 bytes 37.5 % Full
Data Memory Usage : 1415 bytes 34.5 % Full
EEPROM Memory Usage : 1024 bytes 100.0 % Full

The EEPROM should be full to 100% since I've put the KIM-1 ROM image there and copy it to xmega sram during initialization. That saves me 1K of flash which might come in handy once I change to a A4-cpu with usb.
User avatar
matseng
Hero Member
Hero Member
 
Posts: 876
Joined: Sat Oct 15, 2011 12:29 pm
Location: Kuala Lumpur, Malaysia

Re: KimCard - KIM-1 6502 Single Board Computer Emulator

Postby matseng » Thu Nov 29, 2012 12:07 am

I'm using Atmel Studio 6 (Version: 6.0.1996 - Service Pack 2)
Installed Packages: AVRAssembler - 2.1.51.64
Installed Packages: AVRGCC - 3.4.1.95

I downloaded the lastest zip from github to a new location and even tried to compile it for XMEGA32A4 and a XMEGA16 without getting any Memory Overflows.

I'll ask if someone at AvrFreak could try to compile the project and see what their results are...
User avatar
matseng
Hero Member
Hero Member
 
Posts: 876
Joined: Sat Oct 15, 2011 12:29 pm
Location: Kuala Lumpur, Malaysia

Re: KimCard - KIM-1 6502 Single Board Computer Emulator

Postby petersieg » Thu Nov 29, 2012 2:54 am

Yes. Interestingly, I have also downloaded the version 2-3 weeks ago. This one compiles without warning and errors!
I have changed the device to ATXmega32A4, since I have exactly this one. I could change it back to D4?

Also program and data memory footprint are different..?

Ohterwise I did not change anything.. just downloaded zip. I will try that again with a fresh and new download..

Peter
petersieg
Newbie
Newbie
 
Posts: 12
Joined: Sat Nov 10, 2012 1:27 pm

Re: KimCard - KIM-1 6502 Single Board Computer Emulator

Postby matseng » Thu Nov 29, 2012 3:01 am

Johan at AvrFreaks is getting the same sizes as me. http://www.avrfreaks.net/index.php?name ... c&t=127270

D4 or A4 doesn't make any difference for me.

Can you paste the full "build output" results here? And also the data from Help | About Atmel Studio so I can compare?
User avatar
matseng
Hero Member
Hero Member
 
Posts: 876
Joined: Sat Oct 15, 2011 12:29 pm
Location: Kuala Lumpur, Malaysia

Re: KimCard - KIM-1 6502 Single Board Computer Emulator

Postby matseng » Thu Nov 29, 2012 3:03 am

Btw... A r2 pcb with displays and the two small slide switches are slowly making its way to you. You should have them in like 12 days i think.
User avatar
matseng
Hero Member
Hero Member
 
Posts: 876
Joined: Sat Oct 15, 2011 12:29 pm
Location: Kuala Lumpur, Malaysia

Re: KimCard - KIM-1 6502 Single Board Computer Emulator

Postby petersieg » Thu Nov 29, 2012 2:25 pm

Many thanks for sending me one r2!!

Downloaded ZIP file with complete GIT filesystem again.
Did not changed anything. Just Build.
Build output:
------ Build started: Project: KimCard, Configuration: Debug AVR ------
Build started.
Project "KimCard.cproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Programme\Atmel\Atmel Studio 6.0\Vs\Compiler.targets" from project "C:\DATEN\projekte\kim1\KimCard-master\code\KimCard\KimCard\KimCard.cproj" (target "Build" depends on it):
Using "RunCompilerTask" task from assembly "C:\Programme\Atmel\Atmel Studio 6.0\Vs\Compiler.Task.dll".
Task "RunCompilerTask"
C:\Programme\Atmel\Atmel Studio 6.0\make\make.exe all
Building file: .././adc.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"adc.o" ".././adc.s"
Finished building: .././adc.s
Building file: .././branch.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"branch.o" ".././branch.s"
Finished building: .././branch.s
Building file: .././compare.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"compare.o" ".././compare.s"
Finished building: .././compare.s
Building file: .././flag.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"flag.o" ".././flag.s"
Finished building: .././flag.s
Building file: .././i2cmaster.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"i2cmaster.o" ".././i2cmaster.s"
Finished building: .././i2cmaster.s
Building file: .././incdec.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"incdec.o" ".././incdec.s"
Finished building: .././incdec.s
Building file: .././jumps.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"jumps.o" ".././jumps.s"
Finished building: .././jumps.s
Building file: .././emulator.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"emulator.o" ".././emulator.s"
Finished building: .././emulator.s
Building file: .././load.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"load.o" ".././load.s"
Finished building: .././load.s
Building file: .././logicals.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"logicals.o" ".././logicals.s"
Finished building: .././logicals.s
Building file: .././main.c
Invoking: AVR/GNU C Compiler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -funsigned-char -funsigned-bitfields -DDEBUG -O0 -fpack-struct -fshort-enums -g2 -Wall -c -std=gnu99 -MD -MP -MF "main.d" -MT"main.d" -MT"main.o" -mmcu=atxmega32d4 -o"main.o" ".././main.c"
In file included from .././main.c:11:0:
c:\programme\atmel\atmel studio 6.0\extensions\atmel\avrgcc\3.4.0.65\avrtoolchain\bin\../lib/gcc/avr/4.6.2/../../../../avr/include/util/delay.h(95,3): #warning "Compiler optimizations disabled; functions from <util/delay.h> won't work as designed" [-Wcpp]
Finished building: .././main.c
Building file: .././sbc.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"sbc.o" ".././sbc.s"
Finished building: .././sbc.s
Building file: .././shifts.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"shifts.o" ".././shifts.s"
Finished building: .././shifts.s
Building file: .././stack.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"stack.o" ".././stack.s"
Finished building: .././stack.s
Building file: .././store.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"store.o" ".././store.s"
Finished building: .././store.s
Building file: .././transfer.s
Invoking: AVR32/GNU Assembler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -DDEBUG -I "." -I "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.46\avrassembler\include" -Wa,-g -mmcu=atxmega32d4 -o"transfer.o" ".././transfer.s"
Finished building: .././transfer.s
Building target: KimCard.elf
Invoking: AVR/GNU Linker : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -o KimCard.elf adc.o branch.o compare.o flag.o i2cmaster.o incdec.o jumps.o emulator.o load.o logicals.o main.o sbc.o shifts.o stack.o store.o transfer.o -Wl,-Map="KimCard.map" -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--defsym=__stack=0x2BFF -Wl,-section-start=.Kim1Ram=0x802000 -Wl,-section-start=.Kim1Rom=0x802c00 -Wl,-section-start=.data=0x802400 -DDEBUG -mmcu=atxmega32d4
Finished building target: KimCard.elf
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-objcopy.exe" -O ihex -R .eeprom -R .fuse -R .lock -R .signature "KimCard.elf" "KimCard.hex"
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-objcopy.exe" -j .eeprom --set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex "KimCard.elf" "KimCard.eep" || exit 0
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-objdump.exe" -h -S "KimCard.elf" > "KimCard.lss"
"C:\Programme\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-size.exe" "KimCard.elf"
text data bss dec hex filename
12400 4480 7 16887 41f7 KimCard.elf
Done executing task "RunCompilerTask".
Using "RunOutputFileVerifyTask" task from assembly "C:\Programme\Atmel\Atmel Studio 6.0\Vs\Compiler.Task.dll".
Task "RunOutputFileVerifyTask"
KimCard(0,0): Program Memory Usage : 15856 bytes 43,0 % Full
Data Memory Usage : 4487 bytes 109,5 % Full (Memory Overflow)
EEPROM Memory Usage : 1024 bytes 100,0 % Full
Done executing task "RunOutputFileVerifyTask" -- FAILED.
Done building target "CoreBuild" in project "KimCard.cproj" -- FAILED.
Done building project "KimCard.cproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

Atmel-Help-About:

Atmel Studio 6 (Version: 6.0.1843 - )
© 2011 Atmel Corp.
All rights reserved.


OS Version: Microsoft Windows NT 5.1.2600 Service Pack 3
Platform: Win32NT


Installed Packages: ARMGCC - 3.3.1.83
ARM Toolchain
Version: 1.0.0.30 - GCC 4.6.1
Package GUID: b55b919b-ef5f-4608-97eb-ddf473177814
Company: Atmel
HelpUrl:

CMSIS
Version: 1.1.0.71
Package GUID: b55b919b-ef5f-4608-97eb-ddf473177814
Company: Atmel
HelpUrl:



Installed Packages: Atmel Software Framework - 3.1.3.114
ASF
Version: 3.1.3
Package GUID: 519cc26f-02f6-4ace-8bf7-30c1cdea1f02
Company: Atmel
HelpUrl: http://asf.atmel.com/3.1.3

ASF
Version: 3.0.1
Package GUID: 519cc26f-02f6-4ace-8bf7-30c1cdea1f02
Company: Atmel
HelpUrl: http://asf.atmel.com/3.0.1

ASF
Version: 2.11.1
Package GUID: 519cc26f-02f6-4ace-8bf7-30c1cdea1f02
Company: Atmel
HelpUrl: http://asf.atmel.com/2.11.1

ASF
Version: 2.10.0
Package GUID: 519cc26f-02f6-4ace-8bf7-30c1cdea1f02
Company: Atmel
HelpUrl: http://asf.atmel.com/2.10.0

ASF
Version: 2.9.0
Package GUID: 519cc26f-02f6-4ace-8bf7-30c1cdea1f02
Company: Atmel
HelpUrl: http://asf.atmel.com/2.9.0



Installed Packages: Atmel Studio Extension Manager - 1.0
Atmel Studio Extension Manager
Version: 1.0
Package GUID: AtmelStudioExtensionManager
Company: Atmel


Installed Packages: AVRAssembler - 2.1.51.46
AVR Assembler
Version: 2.1.39.227
Package GUID: 4ef81ed0-2355-4ec8-98b8-f72b79ee5d72
Company: Atmel
HelpUrl:



Installed Packages: AVRGCC - 3.4.0.65
AVR Toolchain 8 Bit
Version: 3.4.0.663 - GCC 4.6.2
Package GUID: a3796ad3-98fe-4e60-bd15-57100d343560
Company: Atmel
HelpUrl:

AVR Toolchain 32 Bit
Version: 3.4.0.332 - GCC 4.4.3
Package GUID: a3796ad3-98fe-4e60-bd15-57100d343560
Company: Atmel
HelpUrl:



Installed Packages: Visual Assist X for Atmel Studio - 10.7.1904.0
Visual Assist X for Atmel Studio
Version: 10.7.1904.0
Package GUID: 7997A33C-B154-4b75-B2AC658CD58C9510
Company: Whole Tomato Software

---
Peter
petersieg
Newbie
Newbie
 
Posts: 12
Joined: Sat Nov 10, 2012 1:27 pm

Re: KimCard - KIM-1 6502 Single Board Computer Emulator

Postby petersieg » Sat Dec 01, 2012 8:54 am

Hi. I donwloaded exactly your version of Atmel Studio 6 with SP2.
Made a build clean & build again.
Now all is ok and build is successful!

Peter
petersieg
Newbie
Newbie
 
Posts: 12
Joined: Sat Nov 10, 2012 1:27 pm

Re: KimCard - KIM-1 6502 Single Board Computer Emulator

Postby matseng » Sat Dec 01, 2012 1:05 pm

Ah, that's good... At least one problem solved..... ^_^
User avatar
matseng
Hero Member
Hero Member
 
Posts: 876
Joined: Sat Oct 15, 2011 12:29 pm
Location: Kuala Lumpur, Malaysia

Re: KimCard - KIM-1 6502 Single Board Computer Emulator

Postby petersieg » Tue Dec 11, 2012 10:44 am

Hi. pcb has arrived! Many thanks!

I want to start step by step..

1. Solder atxmega with caps c2, c5, c6 and PDI to flash just firmware. Also X1 and c8+c9 needed? X1 = 12MHz? c8+9 = 27pf?

PDI 4 pin connector seems to look like:

+---------------
|corner
--+-- GND
--+-- CK
--+-- DA
--+-- +VCC 3.3V
|

2. If I supply 3.3V into VCC, I can skip VREG+LIPO stuff for the time being? If I go with 3.3 vreg, J3 Pin 2 is say 5V input? J2 is USB?

3. If I could flash atxmega. next I would solder 7-segm. displays, r1-r8 (68 ohm), q1-q6 (BC857BW), R13-R18 (2k2) and the tactile switches. That should give me some display and I should be able to operate similiar to KIM-1 via switches - right?

Many thanks, Peter
petersieg
Newbie
Newbie
 
Posts: 12
Joined: Sat Nov 10, 2012 1:27 pm

Re: KimCard - KIM-1 6502 Single Board Computer Emulator

Postby matseng » Tue Dec 11, 2012 10:24 pm

1. The 100n caps and the xmega should be enough I think. Since the xmega32d4 I've got on my board doesn't support usb I'm currently just using the internal 32MHz oscillator. When doing USB a crystal is needed, probably a 12 or 16 MHz would be fine.

Your pinout for the connector seems right. I've connected them to Gnd/Res/Miso/Vtg of my AVC Dragon. The dragon can actually power the board that way via the vtg/mosi lines. It'd probably be better to give the board a proper 3.3 volt instead...

2. Yup. J2 is an micro USB connector, unfortunately the pinout is reversed to the connectors I actually had home, so a just patched in a usb mini to the board for +5 supplying.

If you give the board external 3.3 at the PDI-connector you don't need any of the LDO vreg or lipo-charger parts. It should be ok without them.

3. Mmmm, that should be enough to get it up & running.
User avatar
matseng
Hero Member
Hero Member
 
Posts: 876
Joined: Sat Oct 15, 2011 12:29 pm
Location: Kuala Lumpur, Malaysia

Previous

Return to Project logs