Commit 7f900c3e authored by Paul Molloy's avatar Paul Molloy

Have code necessary for EP0 initialization. Things aren't working though.

Currently USB ISR just sets the yellow LED on discovery board.
Not getting a CTRM interrupt to the first setup packet isn't transferring
correctly.
I am getting error, suspend, reset, eof, & esof interrupts though.
Also PC is detecting that something is connected but fails device
descriptor request.
There is a problem with usb buffer pointers though based on response I
got: http://a3f.at/articles/register-syntax-sugar#comment-3418319877
So going to try that fix and see what happens.
parent b48ec4d6
......@@ -50,7 +50,13 @@ LFLAGS=$(USE_NANO) $(USE_NOHOST) $(LDSCRIPTS) $(GC) $(MAP)
DEFINE+=\
-DSTM32F072xB \
-DF_CPU=8000000
-DF_CPU=16000000
#128KB version of all packages (LQFP-48,64,100)
# -DSTM32F072x8 \ #64KB version of all packages (LQFP-48,64,100)
# -DSTM32F070xB \ #128KB version of both packages (LQFP-48,64)
# -DSTM32F070x6 \ #32KB version of both packages (TSSOP-20,LQFP-48)
# -DF_CPU=8000000
INCLUDE=-I ./include
CFLAGS+= $(DEFINE) $(INCLUDE)
......@@ -82,7 +88,7 @@ size: $(BUILD)/$(PROJ).elf
$(SIZE) -t $^
disassm:
arm-none-eabi-objdump build\baremetal.elf -d -g
arm-none-eabi-objdump $(BUILD)\$(PROJ).elf -d -g
clean:
rm -rf $(BUILD)
......
This diff is collapsed.
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