bnewbold
6e5326e0dd
new QA testing modes
2010-06-15 22:19:10 -04:00
bnewbold
e9fc9d4e2a
helpful debug program
2010-06-11 13:17:07 -04:00
AJM
cb1a6fbc21
added getDTR and getRTS to usb.h, subtly modded how sendBytes checks for connection
...
flip flopped back and forth on how much work should be done here. For now its like 5 lines of changes
2010-06-11 13:03:09 -04:00
bnewbold
57662f99c4
osx reset script changes
2010-06-10 13:32:29 -04:00
bnewbold
d349b13258
new reset scheme, compatbile with old
2010-06-10 13:07:53 -04:00
AJM
8f039a4023
cosmetic change on usbsendbytes
...
minor
2010-06-10 12:00:18 -04:00
AJM
7783625ffc
new reset scheme now works
...
fixed some blocking issue on serial tx, improperly checking for connection.
2010-06-09 22:35:59 -04:00
AJM
be55939829
added a somewhat broken version of the reset magic number scheme.
...
current version gets stuck in the isr somewhere. not sure why or where. must debug.
2010-06-09 22:25:14 -04:00
AJM
8afc89be1d
first approach at modding the reset scheme
...
now we reset from recv bytes. After receiving the DTR/RTS toggle the next byte in from usb is parsed as the program_delay. For now, this just delays the reset for a period to close the serial port gracefully. Later, this delay will perhaps inform the bootloader of how long to live for...
2010-06-09 15:52:29 -04:00
AJM
a89cddd05e
removed the callback for send functional descriptor.
...
It wasnt used, and was causing a compiler warning to get thrown. It isnt needed, not sure why I added it in the first place
2010-06-09 14:23:14 -04:00
bnewbold
97cde2028e
exuberant ctags target
2010-06-09 12:27:15 -04:00
bnewbold
c8cee2368c
test session serial fix
2010-06-07 14:46:48 -04:00
bnewbold
1a9b0c0790
another fix for USB unheard print issue
2010-06-07 14:46:25 -04:00
Perry Hung
717060ef8c
USB Serial read() fix:
...
stupid, stupid mistake.
2010-06-05 22:35:43 -04:00
bnewbold
7ef5c1f749
fixed example
2010-06-05 21:57:56 -04:00
Perry Hung
e2b295651a
trivial: fixed incorrect comment on jtag scan chain in openocd scripts
2010-06-05 21:46:22 -04:00
bnewbold
767bf60238
example updates...
2010-06-04 20:01:34 -04:00
bnewbold
228611f0ea
updated README for new heir
2010-06-04 19:58:41 -04:00
bnewbold
7824df10c4
fixed copy-to-ide linker stuff
2010-06-04 19:58:36 -04:00
bnewbold
3b11433f36
updated TODO, copy-to-ide
2010-06-04 19:05:10 -04:00
bnewbold
220eaa0272
NEEDS REVIEW: fix for first usb write bug
...
aj wrote this and had comments saying fix this wouldn't work, but
it seems to...
2010-06-04 19:03:51 -04:00
Perry Hung
88d4b095e4
Preliminary wirish USBSerial implementation.
...
-updated examples
-removed HardwareUSB
-cleaned up a handful of includes
2010-06-04 00:43:21 -04:00
Perry Hung
1a908d88b8
fix botched merge from linker-refactor
2010-05-28 22:52:53 -04:00
Perry Hung
6434610803
Moved reset script to support directory
...
For kicks.
2010-05-28 05:24:21 -04:00
Perry Hung
484e13cdb5
Reset with /dev/maple instead of guessing ttys
...
Change reset to rely on udev to create a /dev/maple device node
and use that instead of guessing which tty it is.
2010-05-28 03:11:02 -04:00
Perry Hung
acf8b5476f
udev rule symlink
...
new udev rule, adds a symlink to /dev/maple
2010-05-28 03:08:36 -04:00
Perry Hung
5b9c5d9c93
libcs3 refactor merge
...
Removed dependency on libcs3.a because Codesourcery does not provide the
source for it.
We now link against a modified libcs3-lanchon-stm32.a built from parts
in public domain from Lanchon, and a start_c.c from Codesourcery that is
licensed under a permissive license.
Also removed all of the extra linker cruft from the stm32conf directory.
The linker files now live in support/ld
The openocd scripts now live in support/openocd
The udev rules and copy-to-ide scripts now live in support/scripts
The source lives in support/ld/libcs3-lanchon-stm32.tar.gz
2010-05-28 03:06:03 -04:00
bnewbold
cf068bc0ac
[for AJ] added new HardwareUsb implementation. hack.
2010-05-27 23:37:48 -04:00
bnewbold
c487a9f330
analogWrite is an alias for pwmWrite
2010-05-27 22:38:50 -04:00
bnewbold
dc8ecb7649
fastforward of master up the newboot, plus patch of math stuff
...
Conflicts: copy-to-ide, wirish/WProgram.h
2010-05-26 23:39:10 -04:00
bnewbold
c99212c5de
cleaned up commit process
2010-05-26 23:29:20 -04:00
AJM
974910aa4e
changed the id for the serial port to 1eaf:0004, to match up with the windows driver
2010-05-22 16:04:09 -04:00
AJM
4197727c10
minor mods to adjust the driver number and the vendor product id's (serial port now 1eaf:0004) and fixed a bug in reset.py,
...
added a no-delay usb serial loop to main.cpp as an example. has no problem at 115200 in minicom!
2010-05-21 20:02:22 -04:00
bnewbold
f30bc0ea86
get wirish_math stuff going (random, map, etc)
...
Perry, you might want to look this over... I only include the contents
of wirish_math.h when cpp? It's what arduino does and it works, so...
2010-05-21 16:14:00 -07:00
AJM
d44f856baf
Finalized the libmaple changes required by newboot. Added setupUSB() to wirish init
...
this involved some some changes to copy-to-ide, WProgram.h, and the makefile. Separated the reset.py from the wait.py so that the program closes the serial port correctly.
2010-05-21 19:09:35 -04:00
AJM
7ee6a800d9
removed another depricated reference to old usb shit
...
removed HardwareUsb usb in example main, as that class hasnt been defined yet
also modded the makefile to actually compile main.cpp
2010-05-20 23:47:29 -04:00
AJM
ceffba70eb
Adjusted the makefile and example main
...
for some odd reason the main file in the makefile was set to main.c not main.cpp corrected this as there is no main.c anywhere in this repo. Also removed references to HardwareUsb.h, since those files dont exist yet (the originals were depricated and removed)
2010-05-20 23:42:00 -04:00
AJM
7d09802153
modified the makefile to build the usb related files/removed all uintx_t to uintx
2010-05-20 23:36:46 -04:00
AJM
dcc4c457f0
moved the usb directory to its proper home in ./libmaple
...
also, removed some old usb file, bootVect.h, which setup the static table for the runtime usb lib that no longer exists and was provided by the bootloader rev 1
2010-05-20 22:47:59 -04:00
AJM
3d0c8c9b37
added reset.py to the makefile and the build dir
2010-05-20 22:09:16 -04:00
AJM
ba9ff3861b
added a delay to the resrt slide to allow enough time for graceul closures of the serial port
2010-05-20 22:09:16 -04:00
AJM
fc4b9b386a
fixed the receive 0 bytes bug, where full buffers block the usb port and never get re-enabled.
2010-05-20 22:09:16 -04:00
AJM
7b1e00bca8
added carraige feed to newline send on the test function usbSendHello
2010-05-20 22:09:16 -04:00
AJM
cd172b2d5e
fixed the FIFO bug, tx/rx now seems stable and ready for integration.
2010-05-20 22:09:15 -04:00
AJM
8d6602547b
theres still a remaining bug whereby fast consecutive read/writes to serial might crash the fifo, but other than that it seems to work. see usbSendHello for an example. include usb.h in your application, and call setupUSB() to turn everything on.
2010-05-20 22:09:15 -04:00
AJM
4dcbd96122
FINALLY figured out the tx/rx bugs, so the whole stack is officially working. for future reference its ESSENTIAL that you set the EPNUM flag of the global device struct appropriately regardless of whether or not you enable or configure more endpoints.
2010-05-20 22:09:15 -04:00
AJM
6ad3acd15e
finally got TX working without any delay, there is some weird timing involved in what happens when the line state is toggled (host port disconnected) and theres still data waiting to go out, this will hang any while(txCount != 0) calls. similarly, sending data without checking txCount != 0 will hard fault the chip. This is all handled now by usbSendBytes, which returns -1 for unconnected, and 0 for simply 'waiting to send'
2010-05-20 22:09:15 -04:00
AJM
a86ec7c81d
c++ ified all of the usb_core files, added the auto-reset feature to the virtual com port, got the descriptors in functional although not pretty order that can be fixed using the attribute packing
2010-05-20 22:09:15 -04:00
AJM
a082defb79
added virtual com port echoing as the test configuration for the usb serial code
2010-05-20 22:09:15 -04:00
AJM
bfb86b6c2a
finished the entire low level usb app for virtual com minus the precise handling of get/send data callbacks and toggle line state. completely undebugged for now.
2010-05-20 22:09:15 -04:00