Search found 5542 matches

by RogerClark
Wed May 24, 2017 12:02 am
Forum: Off topic
Topic: Wur doomed... I tell you... aye... doomed...
Replies: 2
Views: 12

Re: Wur doomed... I tell you... aye... doomed...

I came across the original port to the F4 a few weeks ago



But it looks like it was ported 2 years ago.
by RogerClark
Tue May 23, 2017 11:37 pm
Forum: Generic STM32F103
Topic: USB Observations
Replies: 50
Views: 406

Re: USB Observations

I could reproduce the error with this modification. void setup() { delay(500); - Serial.begin(9600); + Serial.begin(); while (!Serial); Serial.println("Hello!"); You still didnt call Serial.end() before calling Serial.begin() again Also remember, Serial USB is not like hardware serial, th...
by RogerClark
Tue May 23, 2017 10:20 pm
Forum: Generic STM32F103
Topic: USB Observations
Replies: 50
Views: 406

Re: USB Observations

Why it cause problem when you call Serial.begin() twice with some delay() :| ? No idea... But calling Serial.begin() twice is incorrect in the first place. Feel free to spend you time analysing the USB bus and the host driver code etc to see why if you call it in quick succession it works for you. ...
by RogerClark
Tue May 23, 2017 9:53 pm
Forum: Generic STM32F103
Topic: USB Observations
Replies: 50
Views: 406

Re: USB Observations

if you need the perpetual bootloader for uploads to work on your system, there is a way system where a magic number is put into a BKP register ( NV RAM) just prior to the sketch when reboot for upload is requested via serial. From what I recall, I think I added the BKP register checking into the boo...
by RogerClark
Tue May 23, 2017 10:29 am
Forum: Generic STM32F103
Topic: USB Observations
Replies: 50
Views: 406

Re: USB Observations

Windows 7 sometimes has this problem The thing is... Serial.begin() is already called in boards_setup.cpp in board_setup_usb() which is called from boards.cpp in init(); So if I have void setup() { // put your setup code here, to run once: Serial.end(); delay(1000); Serial.begin(); } int c=0; void l...
by RogerClark
Tue May 23, 2017 1:55 am
Forum: General discussion
Topic: blue pill prototyping board with tft adapter
Replies: 11
Views: 186

Re: blue pill prototyping board with tft adapter

BTW. I found this adaptor for the Teensy on PJRC's site https://www.pjrc.com/store/display_ili9341.html https://www.pjrc.com/store/display_ili9341.jpg It seems to be a cute minimal implementation, albeit doesn't handle the SD card, or even the touch sensor. It should be fairly simple to design a boa...
by RogerClark
Tue May 23, 2017 12:02 am
Forum: Working / ported libraries
Topic: USB HID
Replies: 146
Views: 11949

Re: USB HID

the catch is probably that you need to enumerate as a different VID/PID e.g. 1eaf:0005 the host would then think that it is a new device and initiates that accordingly I've not checked what VID/PID are used, but I thought it was a generic code for the HID and keyboard and mini devices. Hence not an...
by RogerClark
Mon May 22, 2017 10:15 am
Forum: General discussion
Topic: blue pill prototyping board with tft adapter
Replies: 11
Views: 186

Re: blue pill prototyping board with tft adapter

I made something similar for my home projects, but using a Maple Mini instead of a BP as the CPU, and I only connect the pins on the display board for the display and touch screen and not the pins for the SD card. Initially I had the display on the same side of the PCB as the Maple mini, but I then ...
by RogerClark
Mon May 22, 2017 10:07 am
Forum: General discussion
Topic: Loading programs over wifi
Replies: 8
Views: 100

Re: Loading programs over wifi

Yes, I forgot about boot0, I will need to pull this high too. My bluepill doesn't break this out, so I guess it has to be done over the jumpers. Do you happen to know where can I find the python version? Fotis Boot0 is only on that header, and I cant remember the precise wiring, though you could lo...
by RogerClark
Mon May 22, 2017 10:05 am
Forum: Generic STM32F103
Topic: I2C on the STM32F103C8T6
Replies: 10
Views: 211

Re: I2C on the STM32F103C8T6

What data types are you using to store the initial X Y and Z values? The "int" data type on STM32 is 32 bits, but on AVR its only 16 bits So your maths that has the value 32768 will not work on the STM32 unless you change the data type of your X Y and Z struct values to be 16 bit ints rath...

Go to advanced search