Commit Graph

124 Commits

Author SHA1 Message Date
Paul Molloy 3779afe88d Successfully building avr & stm core with one set of files.
Two different Makefiles, specify which with -f file flag:
make -f Make_avr clean program
make -f Make_stm clean program

made release dir to put released .hex firmware files
Need to make separate avr build folder
Need to make one master Makefile that calls one of the other makefiles as
instructed.

Currently device is recognized by PC but does nothing else other than
being recognized by app during connection process:

arm-none-eabi-size -t build_stm/inlretro_stm.elf
text    data     bss     dec     hex filename
1332       0      20    1352     548 build_stm/inlretro_stm.elf
1332       0      20    1352     548 (TOTALS)

avr-size avr_kazzo.elf
text    data     bss     dec     hex filename
1496       2      43    1541     605 avr_kazzo.elf
2017-07-22 17:03:23 -05:00
Paul Molloy 895bd6a737 Completely trimmed avr build down to bare bones, only completing
enumeration with host, no vendor/class requests handled.
move avr builds into avr_release dir
move original source files into source/old for future reference.

avr-size avr_kazzo.elf
text    data     bss     dec     hex filename
1496       2      43    1541     605 avr_kazzo.elf
2017-07-22 14:30:03 -05:00
Paul Molloy 1ec74eaf68 Starting to separate AVR build so STM can be build alongside in same dir
Modified Makefile to include project name, moved usbdrv to usbdrv_Vusb
renamed project avr_kazzo instead of main
added .swp files to gitignore
2017-07-22 14:01:07 -05:00
Paul Molloy 464598be21 setting device current to threshold without requesting more 200/2= 100mA. 2017-07-22 13:30:41 -05:00
Paul Molloy a8124e8983 Resolved issue where final buffer wasn't getting fully flashed.
Added check to ensure buff1 is done before quitting and resetting buffers.
Currently have a hacked load_oper_info_elements_chr function to test
CHR-ROM flashing.
NROM PRG & CHR flashing and dumping tested and working on black ASUS
win10 machine.
Firmware still doesn't implement previously added feature for oper_info
rd/wr_func pointer.  flash/dump.c simply overrides by providing the
function pointer based on memory type.

A bit frustrated with how complicated everything is currently...
Feel like there's a lack of standard for function definition and calls.
Would like majority of host program flow to be determined solely by
script calls.  Firmware is getting more generic and versatile at the cost
of being SLOW!!!  Perhaps that's okay though as it's not terribly slow in
comparision to comparable AVR kazzo firmware builds.  And with current
target to migrate to STM32 device this generic setup is much cleaner and
easier to work with.  However complexity was added to the firmware code in
order to help make it faster.  Not sure the goal of faster should take
priority over speed.  Obsessing over speed will cause issues with race
conditions, and complicate code to the point where I won't reach my goal.

With the long break since I've been working on this project it's making me
more willing to scrap some previous work for a cleaner solution more
aligned with my end goal.  I had to write some of this code to get a
better idea of my what my end goal will look like anyway.  Going to make a
couple builds for UIROM, and action53 as they're urgently needed.  But
beyond that I need to start working on script features, and STM32 support!
2017-06-04 20:13:58 -05:00
Paul Molloy 748c474ddb Flashing operations working, cleaning up a few items.
usb_Func_write updates buffer status if bytes remaining is zero.
Not the best solution as a buffer could be over/under run, define
MAKECHECKS to have buffer mark itself if full.
This method is faster and we always have transfer sizes match buffer sizes
anyway.
2017-02-20 01:45:22 -06:00
Paul Molloy pinkASUS 52a1b306c9 Flash NROM PRG-ROM operations are pretty well up to snuff now.
Had to add check to get cur_buff status and wait to send payload until
it's empty.  Still need to add timeout check as it'll spin forever if
there is a problem and it's never empty...

device should be able to handle buffer sizes smaller than usb transfer
but this probably isn't true if the first two bytes are stuffed into setup
packet.  Currently relies on end of (upto) 8 byte transfer to fill buffer.
MAKECHECKS would verify we don't overflow buffer..  Still kind of a half
thought out idea unfortunately.
2017-02-13 23:51:51 -06:00
Paul Molloy pinkASUS fe04496cfb Flashing NROM PRG-ROM working but unstable.
Not sure how I thought flash operations were previously working as there
were many bugs I had to correct to support flash operations properly.
Operations module appears to be working so far, still need to pass
functions to operation module.
Flash operations verify PRG-ROM 32KB writes working with file comparison.
Currently dependent on extra buffer status reads to delay next buffer.
I think the write operation is taking longer than the usb load operation.
Potentially due to slow code of operation module, but also possible I
had only been testing with slow eeepc linux machine previously.  Perhaps
combination of both.

Still need to correct issue so added buff status delays aren't needed.
buffer manager should be able to key off of status==USB_FULL but that
doesn't seem to work.  When trying I don't always get the same number of
buffers to get flashed so appear to have a race condition or something
not properly intialized..?

Need sort out sending of USB STALL if buffer isn't ready to be loaded yet.

This commit is mainly for documentation/reference purposes as things are
kind of working, but buggy/unstable.

AVR Memory Usage
----------------
Device: atmega164a

Program:    6486 bytes (39.6% Full)
(.text + .data + .bootloader)

Data:        679 bytes (66.3% Full)
(.data + .bss + .noinit)
2017-02-13 11:49:57 -06:00
Paul Molloy 56ea22f750 fixing some typo bugs to permit compiling. Updating test.c to perform
some dual port board tests.
2017-02-10 08:51:12 -06:00
paul eeepc d1aacecd6c Committing some edits made awhile ago that look legit.
Need to get things rolling again with this project!!!
2017-01-29 17:47:29 -06:00
paul eeepc 4b0c340eb1 Creations of operation module and dictionary.
Things appear to be working with some early testing.  Assumption that oper_info elements
are aligned in SRAM linearly appears to hold true.  Researching this I found it probably
was true, but can't be certain esp if gets changed in the future to not be purely 8byte
sized elements.
Still need to provide means to decode function numbers info function pointers.
2016-12-25 13:48:30 -06:00
paul eeepc de9b5d67a4 Basic flashing operatoins working. Still need to do some tests and erasing before flashing.
Need to verify page programmed successfully as it currently just continues even if unable to
flash proper data.  Need to make write page utilize variables for bank address based on mapper
and/or memory as currently doesn't flash CHR-ROM due to $5555 $2AAA being above address space
of CHR-ROM
2016-12-18 01:26:51 -06:00
Paul Molloy 876b526e8c Some timing tests on windows machine. Double buffering was pretty
successful only 1KBps speed drop when actually dumping real cart data.
2016-12-12 22:31:46 -06:00
paul eeepc a7eaf970b2 CHR-ROM dumping working for NROM checksum appears to be off need to compare files. 2016-12-12 10:56:53 -06:00
paul eeepc e483406c01 firmware main.hex commit from last time along with versions of other kazzos
AVR Memory Usage
----------------
Device: atmega164a

Program:    5486 bytes (33.5% Full)  ***final design last commit***
(.text + .data + .bootloader)

Data:        653 bytes (63.8% Full)
(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega164a

Program:    5498 bytes (33.6% Full)  ***early purple design***
(.text + .data + .bootloader)

Data:        653 bytes (63.8% Full)
(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega164a

Program:    5764 bytes (35.2% Full)  ***prototype green design***
(.text + .data + .bootloader)

Data:        655 bytes (64.0% Full)
(.data + .bss + .noinit)
2016-12-12 00:54:07 -06:00
paul eeepc c2359e67a5 Dumps offically working for PRG-ROM on NROM!!!
Found bug with setting map_n_part due to >/< instead of >=/<= for setting called_buff...
Was also setting mem_type and part backwards in dump.c
The had issues with usb timing out for more than 1 buffer read back
Problem was due to lack of usbPoll while dumping during double buffering
Adding usbPoll to page read to correct issue

Appears to be issue with dumping first byte of this choplifter cart I'm testing with.
Not so certain it's my bug though..  No matter what I do the first byte reads
back 0x78 and copy I downloaded has 0x00.  Setting my first byte to 0x00 also
creates proper CRC32 according to bootgod's database.  So need to look into this more
to figure out what's going on.
2016-12-12 00:38:01 -06:00
paul eeepc 49ec51e767 Much of dumping code for PRG-ROM completed but have some bugs with setting buff elements working on debugging... 2016-12-11 20:34:43 -06:00
paul eeepc 4db2929c3b Big overdue commit of past few days effort..
Detecting mirroring code working and tested
Started working on buffer operations from host
Current code compiles but not yet at point where can start testing
Adding cpu page read to nes.c to have faster dumping operations.
moving enums to shared as gets used quite a bit communicating between device and host.
2016-12-11 01:06:41 -06:00
paul eeepc dff396a1c2 Successful detection of UNROM512 mapper30 PRG-ROM flash
Processing input args to create rom file when dumping
Adding create_rom function in file.c working but need to add check if file already exists
Listing out number of mappers which planning to support
2016-12-09 01:58:34 -06:00
paul eeepc a89caf2454 Detecting some flash carts including NROM and UNROM.
Using CHR-RAM sensing, and flash manf/prod ID based on PRG-ROM banking

fixing bug in firmware for ppu writes was ANDing in /A13 instead of ORing..

adding datasheets to hardware folder for 5v PLCC and 3v TSOP flash used on all flash boards
2016-12-08 21:52:47 -06:00
paul eeepc 66635b15e7 Making progress on main program flow with detection in preparation for dumping/writing operations.
Prepended DICT_ to dictionary names to prevent using those defines for something else accidentally
"NES/SNES" etc could be used in a lot of places, don't want to use wrong enum/define in wrong place.

created enums.h to list out all enums/defines for cartridge and memory elements in one location.

separate file.c/h file for getting data in/out of a files, and opening/closing them.

adding test roms to roms folder so they can be used for various testing.
2016-12-07 18:08:31 -06:00
paul eeepc 497e53378b Basic cartridge detection working. NES detected with CIRAM /CE and PPU /A13N jumper. Famicom detected with audio in/out connection. SNES detected by enabling control signals and reading reset vector looking for non 0xff data. Still need to add check that would pass with blank flash cart though reading flash ID's perhaps.
Removing bad logic where TRUE == 0x00 as that's 'false' in C so that was causing more confusions than solutions.
2016-12-04 03:16:40 -06:00
Paul Molloy 2f8823053e making some changes to dictionary call for print options. 2016-12-01 23:15:58 -06:00
paul eeepc a24d728cea flashing page working, verified by reading back again.
currently instruct buffer to dump/flash by setting its function accordingly
2016-12-01 00:45:10 -06:00
Paul Molloy 937435220a Some early dumping functionality working.
buffer opcode updates to transfer payloads
including stuffing two bytes of write transfers in setup packet.
Calling specific buffers with miscdata or opcode.

new dump and flash modules for firmware.

new buffer function update_buffers called during main to monitor and
manage buffer objects when not being loaded/unloaded from USB.
2016-11-30 22:52:43 -06:00
paul eeepc 8cdeecdd77 adding some error checks to usbFunctionWrite.
Trying to prevent transfer from exceeding buffer size.
Also verifying buffer's status is properly set to enforce upholding of the status.
Giving usbFunctionWrite a means to communicate it's error/success back to host with USB 'dictionary'.
2016-11-30 12:53:06 -06:00
paul eeepc b6164aa3a6 adding buffer element getter and setters to dict and firmware.
Need to add to host support and test operation.
2016-11-30 02:04:07 -06:00
Paul Molloy 3326c2fb34 payload buffers working with some early testing.
Had a good lesson on what static means... :/
everything working now as previously designed
speed testing on windows10 PC yeilded ~21KBps when transferring 128-512KB
payloads and 128Byte transfer size.  Going to bump to 256 and see how that
does after 128KB speed tests on linux machine.

created host test.c/.h file for general testing of new features.
that way I can start working on erase/write.h files and just use test.c as
scratch code space for tinkering and still call with -t flag on command
line.

modified dictionary calls to include pointers to data and lengths.
2016-11-29 18:27:54 -06:00
paul eeepc cb0941e86c usbFunctionWrite support loading incoming write/OUT data to buffer objects.
Still untested, need to write some host code to test things out.
2016-11-29 15:27:31 -06:00
Paul Molloy fe1b0e0ba5 AVR Memory Usage
----------------
Device: atmega164a

Program:    4092 bytes (25.0% Full)
(.text + .data + .bootloader)

Data:        445 bytes (43.5% Full)
(.data + .bss + .noinit)

upgraded windows machine to avr-gcc (GCC) 6.1.1 20160627
dropped .hex down to within 2 bytes of linux machine running 4.8.2

changed main to remove avr-gcc 6.1.1 warnings
2016-11-28 22:53:12 -06:00
Paul Molloy 80943f7f62 firmware buffer.c reorganization and some intitial testing complete.
moved all buffer operations out of usb.c with new bridge function between
the two files.  Lots of pointing going on and lessons learned..
Thankfully everything seems to be working if you actually call the
functions as I designed them..  Gotta love trouble shooting bugs that
don't exist..  Helped updating allocate output to get returned as error
back to the host.

Moved typedef structs to firmware type.h file as seemed to cause
compilation issues being contained in the files .h file when other .c
files needed those types.

Fixed casting warnings with usbMsgPtr ended up looking at usbdrv.c figured
out how close I got, just shouldn't have been putting the * in there..
2016-11-28 22:16:35 -06:00
Paul Molloy 52ef11c7e3 AVR Memory Usage
----------------
Device: atmega164a

Program:    4186 bytes (25.5% Full)
(.text + .data + .bootloader)

Data:        445 bytes (43.5% Full)
(.data + .bss + .noinit)

buffer allocation basic operations tested and working great.
Still need to update windows machine avr-gcc..
implemented with 8 buffers and 256 raw buffer
2016-11-28 20:45:46 -06:00
Paul Molloy c36313135e Initial firmware implementation of buffer objects and raw sram allocation
complete.  should be able to allocate buffers from host, but haven't got
to testing it yet.  Compiling on firmware though..
Currently have 256 bytes of raw_buffer, and 8 buffer objects/structs
each with ~16 bytes per object.  So could trim things down, but still have
decent amount of SRAM left.  Could have another 256 byte buffer at this
rate..  but might not leave enough SRAM for temporary routines.

Possible that raw buffer space could be dynamically allocated
as either buffer space or temporary routine space...

AVR Memory Usage
----------------
Device: atmega164a

Program:    4094 bytes (25.0% Full)
(.text + .data + .bootloader)

Data:        573 bytes (56.0% Full)
(.data + .bss + .noinit)
2016-11-28 02:01:14 -06:00
paul eeepc 931222cf17 new buffer.h/.c firmware files. Mostly just comments and struct defn for now 2016-11-27 21:18:54 -06:00
Paul Molloy c6a68c679f Adding EXP0_PULLUP_TEST should probably verify pullup on EXP0 provides
logic 1 if relying on it.  Seems to work fine on NES discrete and
INLXO-ROM boards where planning to utilize it.  SNES can't pull up due to
pulldown and original famicom cart can't either perhaps because of
EXP6 EXP FF output being too much of a load..?
2016-11-27 17:47:40 -06:00
paul eeepc cd6378b8c5 SNES dictionary creation, addition of NES cpu/ppu read/writes
cleaned up firmware pinport.h used PURPLE/GREEN KAZZO for all #ifdef's

AVR Memory Usage
----------------
Device: atmega164a

Program:    3404 bytes (20.8% Full)
(.text + .data + .bootloader)

Data:         53 bytes (5.2% Full)
(.data + .bss + .noinit)

final kazzo design hex commited as comparable build to the past two commits of green/purple.
So this .hex commit is apples to apples with recently commited purple/green .hex commits.
2016-11-27 15:32:36 -06:00
paul eeepc 3aca4c863e AVR Memory Usage
----------------
Device: atmega164a

Program:    3416 bytes (20.8% Full)
(.text + .data + .bootloader)

Data:         53 bytes (5.2% Full)
(.data + .bss + .noinit)

First commit of purple kazzo specific firmware.
Currently just 12bytes larger than final design v1.2b-v1.4
This will probably expand as more updates twiddle with EXP FF
2016-11-27 15:10:16 -06:00
paul eeepc 6c8ece5fa8 AVR Memory Usage
----------------
Device: atmega164a

Program:    3692 bytes (22.5% Full)
(.text + .data + .bootloader)

Data:         55 bytes (5.4% Full)
(.data + .bss + .noinit)

committing green v1.2 firmware for first time.  code uses decent amount more rom
3692 green - 3404 final = 288 bytes
2016-11-27 13:37:18 -06:00
paul eeepc bfff2b0fdd AVR Memory Usage
----------------
Device: atmega164a

Program:    3404 bytes (20.8% Full)
(.text + .data + .bootloader)

Data:         53 bytes (5.2% Full)
(.data + .bss + .noinit)

moving main.hex to include pcb version number.

hex includes snes read/write dictionary additions, but still untested.
code updates for this .hex are in commit to follow shortly.

Noticed avr-gcc version 4.8.2 on linux pc is compiling significantly smaller than
avr-gcc version 4.3.3 on windows PC.  Need to update so hopefully getting
identical builds on both of my machines.
2016-11-27 13:28:24 -06:00
Paul Molloy 7d00145431 Big step in confirmation of pin manipulations working on kazzo.
Able to read PRG-ROM flash chip's manf and device ID from commandline.

New dictionaries io and nes along with firmware files to support.
now have io_reset, nes_init, and snes_init io.c functions
nes.c functions including discrete_exp0_prgrom_wr and emulate_nes_cpu_rd.

New dictionary.c/.h for host to make dictionary calls easier including
setting proper return data lengths based on opcode.

adding nop command to pinport.h

AVR Memory Usage
----------------
Device: atmega164a

Program:    2960 bytes (18.1% Full)
(.text + .data + .bootloader)

Data:         53 bytes (5.2% Full)
(.data + .bss + .noinit)
2016-11-27 00:18:46 -06:00
paul eeepc 94ea3fd474 modified: host/source/inlprog.c
new file:   host/source/erase.c
new file:   host/source/erase.h
	creating erase files called from main with e_flag

modified:   firmware/source/usb.c
	introducing switch statement with range of values of opcode type detection.

modified:   host/source/usb_operations.h
	turning off debug

modified:   shared/shared_errors.h
	renumbering some error codes
	thinking I'll have codes which can come from avr set to 128+
2016-11-26 14:17:34 -06:00
paul eeepc 14eddd74ab committing source code changes for main.hex commit that was just made axing usbFunctionRead 2016-11-25 19:59:07 -06:00
paul eeepc 7aab299b66 removing usbFunctionRead because I'm not planning to utilize it.
Expecting it to be simpler and potentially faster to send dump commands and simply provide pointer to ram buffer within usbFunctionSetup.  Saves about 70Bytes of code, so not huge, but whatevs..

AVR Memory Usage
----------------
Device: atmega164a

Program:    2594 bytes (15.8% Full)
(.text + .data + .bootloader)

Data:         53 bytes (5.2% Full)
(.data + .bss + .noinit)
2016-11-25 19:55:42 -06:00
paul eeepc dae63f73b0 Tons of edits...
rearranged some of the .h files, created dictionary file to list all dictionaries of opcodes.
        moved error codes to shared file so host can interpret firmware error codes.
        created firmware usb.c/h to handle usb operations (didn't move as git seems to think..)
	cleaned up fw main function and file.
	host usb_operations, created USBrequest struct type to more easily handle all transfer info.

Currently able to send pinport commands and read back return values from retro prog.
Just need to start writting functions to send opcodes and start actually preforming some cartridge operations.
2016-11-25 19:50:43 -06:00
paul eeepc 53578116f1 committing main.hex with upcoming commit's code changes complete.
this commit has usbFunctionRead enabled, next commit will have it cut for comparison.
AVR Memory Usage
----------------
Device: atmega164a

Program:    2632 bytes (16.1% Full)
(.text + .data + .bootloader)

Data:         53 bytes (5.2% Full)
(.data + .bss + .noinit)
2016-11-25 19:40:13 -06:00
paul eeepc fdf88f7256 removing shared files from source dir when making clean. 2016-11-24 11:39:05 -06:00
Paul Molloy 47545169ee modified: source/pinport.c
modified:   source/pinport.h
	-fixing bunch of compile errors and stupid mistakes.
	go to sleep and stop writing bad code...
2016-11-24 07:24:12 -06:00
Paul Molloy ce2a5aecca modified: logic.h
modified:   pinport.c
modified:   pinport.h
	-completing implementation of remaining shared_pinport opcodes
modified:   ../../shared/shared_pinport.h
	-few opcodes deleted because I decided they were stupid when got
	around to implementing them.  Set user up for errors and not
	useful generally.
2016-11-24 07:14:15 -06:00
paul eeepc 0af7bb3b16 modified: logic.h
modified:   pinport.c
	-started working on 16bit operand function
2016-11-24 05:33:02 -06:00
paul eeepc c984f15f01 modified: source/pinport.h
modified:   source/logic.h
	-adding IP and OP definitions to use on DDR registers
	-ERROR codes denote what function errored out

modified:   ../shared/shared_pinport.h
	-changing some opcode names for clarity and lowercasing non-recommended ones

modified:   source/pinport.c
	-fix bug that recreated cur_AHL_addr and cur_AXL_addr
	-create opcode with 8bit operand function
2016-11-24 03:06:34 -06:00
paul eeepc a6a6369226 untested main.hex commit for logging rom/ram use
pinport has opcode only and opcode with 8bit operand complete:
14% used of 87.5% available

avr-size -C --mcu=atmega164a main.elf
AVR Memory Usage
----------------
Device: atmega164a

Program:    2300 bytes (14.0% Full)
(.text + .data + .bootloader)

Data:         45 bytes (4.4% Full)
(.data + .bss + .noinit)
2016-11-24 03:04:00 -06:00
Paul Molloy 31678bacfe renamed: host/source/pinport.h -> shared/shared_pinport.h
modified:   firmware/source/pinport.c
modified:   firmware/source/pinport.h
	-creating shared_pinport.h which is effectively a dictionary for
	pinport opcodes
	-file gets copied to host and firmware source dirs when compilied.
	-hardware macros had to be renamed to include underscore to
	differentiate opcode name from hardware macro.
	-pinport.c now is a nice clean switch between opcode name and
	macro with all literal numbers removed.
	-now don't have to manually track/update opcode numbers between
	multiple locations.

modified:   firmware/source/io.c
modified:   firmware/source/main.c
	-updates to add underscore pre-fix to hardware macros.
2016-11-23 18:12:50 -06:00
Paul Molloy aca6bb8960 modified: source/pinport.c
modified:   source/pinport.h
	-adding some compatibility between boards.
	-purple and green should work under final version commands.
	-making some commands lower case which aren't recommended.
2016-11-23 02:23:17 -06:00
Paul Molloy b1ba1c4432 modified: logic.h
-defining SUCCESS & ERROR_CODES
new file:   pinport.c
	-Creation of file with giant switch to decode byte value into
	macro call.
	-software AXL and AHL clocking of for green boards.
modified:   pinport.h
	-removed #ifdef for signals, should only be based on board when
	possible.
	-created macro for AXL/AHL_CLK to call software function
deleted:    macro.h
	-don't want this old guy around any more...
2016-11-23 01:19:14 -06:00
paul eeepc b43b3c0756 modified: Makefile
-modified to caluclate ROM/RAM usage of atmega164a

new file:   source/io.h
new file:   source/logic.h
	-created files

modified:   source/io.c
modified:   source/main.c
	-created io_pullup going to make separate io inits based on cartridge inserted
	-modifing for io.h

modified:   source/pinport.h
	-File mostly complete with all possible pin manipulations
2016-11-22 20:27:52 -06:00
paul eeepc f973d990cd Initial add of firmware hex.
Base line rom/ram usage.
usb read/write functions are enabled, but long transfers are not.
host support only for LED on/off.
2KB of 16KB (12.5%) of program memory are not available due to bootloader.

AVR Memory Usage
----------------
Device: atmega164a

Program:    1620 bytes (9.9% Full)	87.5% is MAX due to bootloader
(.text + .data + .bootloader)

Data:         45 bytes (4.4% Full)
(.data + .bss + .noinit)
2016-11-22 20:20:30 -06:00
Paul Molloy ab52b30d8d lowercasing soldermask color denotations for signals. 2016-11-22 00:30:03 -06:00
Paul Molloy 42e8339600 Updating pinport.h with PCB version history and more i/o definitions and
macros
2016-11-22 00:23:22 -06:00
paul eeepc 5620b34a9e new file: io.c
-creation of io file
modified:   main.c
	-moving io setup to io.c
new file:   pinport.h
	-creation of pinport file, intended to be avr specific code from macro.h
2016-11-21 17:54:29 -06:00
Paul Molloy b8be4b768a new file: shared/usb_commands.h
-shared .h files used in both firmware and host app
modified:   firmware/Makefile
modified:   host/Makefile
	-added shared dependency to copy shared files to source prior to
	building
modified:   host/source/usb_operations.h
modified:   firmware/source/main.c
	-removing usb commands (now in shared)
modified:   host/include/dbg.h
	-adding SUCCESS defintion
modified:   host/source/inlprog.c
	-calling write file if write arg sent
new file:   host/source/write_operations.c
new file:   host/source/write_operations.h
	-creation of write operations files
	-opens file and reads header
	-some skeleton comments
	-lots of work left to do here
new file:   roms/nrom_v_test.nes
	-adding NROM test rom file
2016-11-20 23:57:09 -06:00
Paul Molloy 6a370d3893 Moving source code to source folder
Modifing Makefile to support
2016-11-20 20:11:05 -06:00
paul eeepc c7f01a4429 Initial commit for firmware main.c
-basic fuctionality in place.
	-currently only using setup packet for LED on/off with request field.
	-Read and Write functions created but empty for now.
2016-11-19 01:50:26 -06:00
paul eeepc 65e38e8e77 Modifing firmware makefile to work with INL retro-prog 2016-11-18 23:46:02 -06:00
paul eeepc cd0fc116da Adding avr makefile for firmware
As downloaded from V-USB example custom-class device
2016-11-18 22:32:18 -06:00
paul eeepc ffe4634210 Initial commit for:
firmware/macro.h
	host/include
	host/libusb-1.0.dll
	host/winlib
2016-11-18 03:15:02 -06:00
paul eeepc 315ce9c083 Readme.txt adding more build notes mostly for linux.
bootloader Makefile: correcting bootloader lock fuses.
firmware/usbdrv/usbconfig.h making small note about file origin.
2016-11-18 00:35:10 -06:00
Paul Molloy 4b8c80876c moving bootloadHID out of firmware folder as it doesn't make sense there.
Also renaming to bootloadHID-master as that's it's "name" when downloaded from:
https://github.com/ajd4096/bootloadHID

May be adding obdev's original bootloader as well so I can tinker with
both versions and make final choice later on.
2016-11-17 22:28:43 -06:00
Paul Molloy 60eb00bec2 commiting built bootloader files 2016-11-11 21:20:03 -06:00
Paul Molloy 38e51a91c5 bootloadHID/firmware/Makefile modified to atmega164a
bootloadHID/firmware/bootloader.h modified to use BL/RUN switch to detect
bootload mode.
2016-11-11 21:17:02 -06:00
Paul Molloy 1be25c4434 rename bootloadHID-master dir to bootloadHID 2016-11-11 21:16:15 -06:00
Paul Molloy 3538801e8f adding note to V-USB usbdrv Readme.txt to include download location. 2016-11-11 14:33:12 -06:00
Paul Molloy f0c3fb5ad6 Adding bootloadHID as downloaded from:
https://github.com/ajd4096/bootloadHID
2016-11-11 14:31:00 -06:00
Paul Molloy 9054a41137 creation of usbconfig.h
Set POWER to 300mA, while typically less than 100mA it depends on
		cartridge inserted and number of cartridges.
	Set impementations of read and write functions to true.
	Set device version to v2.0 for this rebuild of INL Retro-Prog
	Set vendor and device name InfiniteNesLives.com INL Retro-Prog
2016-11-11 13:53:44 -06:00
Paul Molloy 93be432c14 adding usbdrv directory as downloaded from:
https://www.obdev.at/products/vusb/download.html

no changes made, as-is released from obdev.
2016-11-11 13:28:54 -06:00