Commit da3c3a73 by Paul Molloy

Mostly handling first request from the host to get device descriptor.

Couldn't figure out why the second IN packet wasn't getting sent.
The host requests 16KBytes worth of data when it makes it's first get
device descriptor request.  HOWEVER, it sends a STATUS packet immediately
after receiving the first IN stage.  The stm32 ref manual recommends
STALLing all xfrs in the opposite direction of current transfer.  But that
breaks things preventing the host from telling the device to stop talking.
So still need to add that fix but everything looks good for the first data
stage when using logic analyzer.

Current build added support for devices which require external xtals for
USB via define statements.  Also setting flash/sram size to 32KB/6KB to
support smaller devices.  Adding include files for other devices, guess
030 is pretty worthless considering it doesn't have USB...

Added "make program" support to make file.  ST-LINK_CLI.exe must be in
path variable, only works on windows for now..
parent 7b5b5411
......@@ -49,7 +49,7 @@ LDSCRIPTS=-L. -L$(BASE)/ldscripts -T nokeep.ld
LFLAGS=$(USE_NANO) $(USE_NOHOST) $(LDSCRIPTS) $(GC) $(MAP)
DEFINE+=\
-DSTM32F072xB \
-DSTM32F070xB \
-DF_CPU=16000000
#128KB version of all packages (LQFP-48,64,100)
......@@ -87,8 +87,11 @@ dir:
size: $(BUILD)/$(PROJ).elf
$(SIZE) -t $^
disassm:
arm-none-eabi-objdump $(BUILD)\$(PROJ).elf -d -g
program: all
ST-LINK_CLI.exe -c -P $(BUILD)\$(PROJ).hex 0x08000000 -Rst
disassm: all
arm-none-eabi-objdump $(BUILD)\$(PROJ).elf -d -g
clean:
rm -rf $(BUILD)
......
No preview for this file type
No preview for this file type
:020000040800F2
:1000000000400020C1000008FD0000085D0200085B
:1000000000180020C1000008FD0000085904000885
:1000100000000000000000000000000000000000E0
:10002000000000000000000000000000FD000008CB
:100030000000000000000000FD000008FD000008B6
......@@ -10,33 +10,66 @@
:10008000FD000008FD000008FD000008FD0000085C
:10009000FD000008FD000008FD000008FD0000084C
:1000A000FD000008FD000008FD000008FD0000083C
:1000B000FD000008FD000008FD00000849020008DE
:1000B000FD000008FD000008FD0000085D030008C9
:1000C00009490A4A0A4B9B1A03DD043BC858D05021
:1000D000FBDC0849084A0020521A02DD043A885025
:1000E000FCDC00F00DF800006802000800000020B1
:1000F000000000200000002000000020FEE7C046B5
:10010000404B41495A6830B51140802212030A43DE
:100110005A608022196852040A431A6080229204AD
:1001200019681142FCD0022259680A430C215A6016
:100130005A680A40082AFBD18022D96912050A436D
:10014000DA618022D96912040A43DA6162B6A02218
:10015000596912030A43AA215A612C4A9024106853
:10016000C9020143012011601168E4051160E168D2
:100170000143E16080215C698902214302245961C5
:10018000234BD98FA143D987D98F224C8143D9875B
:1001900000212148C1872148018020202049088072
:1001A00020490430088080201F49C0000880C820F2
:1001B0001E498001088080201D49088080201D493B
:1001C00000060860D020D98F00020143D9871A4960
:1001D0001A4B198040235169194351610021184D70
:1001E0000131A94203D1506998435061F8E7A14217
:1001F000F6D1516913481943516151690140516168
:10020000ECE7C04600100240FFFFC3FF00080048B3
:10021000025C004001093D00065C0040505C00406B
:1002200000600040086000400C600040005C00403E
:100230004C5C004000E100E00080FFFF585C0040A3
:1002400080841E00FFFEFFFF8023034A5B0051698C
:100250000B4353617047C04600080048FEE70000AA
:08026000F8B5C046F8B5C04630
:1000E000FCDC00F089F80000780400080000002023
:1000F00000000020000000200C000020FEE7C046A9
:10010000324B33491A880988F0B58A4236D03148D3
:10011000314F8446D01D314E314D324C88422EDA5B
:10012000396852085200525A32801A88023292B20A
:100130001A8052085200525A2A801A88023292B209
:100140001A8052085200525A22801A88023292B201
:100150001A8052085200525A23490A801A880232E1
:100160001A800823624613802049214B0A881343D2
:10017000204A1A40102313439BB20B80F0BD8A1A09
:10018000614692B20A801A88396852085200525A5F
:1001900032801A88023292B21A8052085200525AA1
:1001A0002A801A88023292B21A8052085200525A99
:1001B00022801A88023292B252085200525A0A49D8
:1001C0000A80034A12881A80CEE7C0460600002043
:1001D0000400002002600040080000204060004051
:1001E000426000404460004046600040005C0040C7
:1001F0008080FFFF8F8FFFFF9022474B120319680B
:1002000030B50A431A608022920219681142FCD06C
:10021000012259680A435A600C2259681140082982
:1002200072D01A683D490A401A6080229204196807
:100230001142FCD18022596852020A435A6080223E
:100240005968D2020A435A608022196852040A434C
:100250001A608022920419681142FCD080211A6B26
:100260000A431A638022D86912041043D86180209F
:100270005C6900032043586180205C69C002204310
:1002800058618020264CC0042568284320608020C7
:10029000244C400225682843206080205C6980024D
:1002A000204358611869402502431A611A691E48A3
:1002B0001E4C024002201A611D4BDA8F8243DA87FE
:1002C000DA8F01388243DA8700221A48C2872280F7
:1002D000194C2580194C083525808025184C6D0156
:1002E0002580184C2180C2871749184A1180802127
:1002F000174A090611608022D98FD2000A43DA8793
:10030000144A154B1A80FEE703205968814359604F
:1003100059681142FCD184E700100240FFFFFFFE44
:100320000008004800040048FFFF7FFF505C0040C9
:10033000025C0040065C0040006000400460004039
:10034000066000404C5C004020320000005C004031
:1003500000E100E00080FFFF585C004010B52D4C2C
:1003600023881BB2002B46DA23882B4A1A408023AD
:100370001343238023881B0521D50021274B198097
:10038000274B1B785AB28A4219DA60221340254A59
:10039000202B2ED0402B2CD08B422AD1224B23490C
:1003A0001960122313802288214B1343214A1A40DB
:1003B000C0239B0113439BB22380FFF7A1FE802241
:1003C0001D4B520059690A435A615A691B490A4038
:1003D0005A611B4BDA8F52050AD58021194A1180C8
:1003E0000022DA87184A19492280DA8F0A40DA8710
:1003F00010BD1180D7E723881B06EAD5144A13687D
:1004000001331360134A23881340802212021343DE
:10041000D2E7C046005C00408F0F000006000020BD
:100420004860004004000020080000206404000828
:100430008080FFFF8F8FFFFF00040048FFFEFFFF5B
:10044000065C00404C5C004020320000FFFBFFFFD8
:10045000000000200F8FFFFFFEE70000F8B5C04648
:10046000F8B5C04612010002FF000008C016DC0506
:0604700000020102000180
:04000005080000C12E
:00000001FF
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment