Search found 7 matches

by Hawhill
Thu Mar 02, 2017 11:20 am
Forum: STM32 Support
Topic: i2c returning i2c_timeout
Replies: 10
Views: 6269

Re: i2c returning i2c_timeout

I found one correction, board.h file was bit incorrect. I have corrected but no luck. Still audio/tone is not hearing.
Why not start with something simpler to test, like reading some config setting or status bit?

I'm not sure the CS43L22 is supposed to utter a thing (not even the beeps) without ...
by Hawhill
Tue Nov 22, 2016 11:56 am
Forum: STM32 Support
Topic: STM32F103C8T6 delay not precise
Replies: 17
Views: 11082

Re: STM32F103C8T6 delay not precise

You can of course also use them for delay purposes. The GPT abstraction will give you a callback that is triggered as soon as the timer is done counting up to what you programmed it to count up to (among some other things a timer can do).
by Hawhill
Tue Nov 22, 2016 10:55 am
Forum: STM32 Support
Topic: STM32F103C8T6 delay not precise
Replies: 17
Views: 11082

Re: STM32F103C8T6 delay not precise

Depends on what you want to do with them.
So.... What do you want to do with those "delays"? What function do they solve?


Most probably you don't need the extended stuff TIM1 provides, so you can use one of the others. But this doesn't matter right now, as you need to learn about using timers ...
by Hawhill
Tue Nov 01, 2016 9:39 pm
Forum: Bug Reports
Topic: STM32F407 (plus probably others): lockup on CDC-ACM via OTG, triggered by SUSPEND
Replies: 10
Views: 7574

Re: STM32F407 (plus probably others): lockup on CDC-ACM via OTG, triggered by SUSPEND

Just fyi: The suggested quick fix does indeed work - as expected. I just tested on a F407.
by Hawhill
Mon Oct 31, 2016 1:24 pm
Forum: Bug Reports
Topic: STM32F407 (plus probably others): lockup on CDC-ACM via OTG, triggered by SUSPEND
Replies: 10
Views: 7574

Re: STM32F407 (plus probably others): lockup on CDC-ACM via OTG, triggered by SUSPEND

I will test soon and give feedback then.

Unfortunately, I think this might clog the queue for situations when there is a "half-transmitted" package in the queue (but not yet sent) and the device disables USB for proper reasons - e.g. remote end is gone. There will be no TX ack in those cases, so it ...
by Hawhill
Fri Oct 28, 2016 9:23 am
Forum: STM32 Support
Topic: shell
Replies: 7
Views: 4469

Re: shell

Depending on your setup (including host OS), you might want to patch usbcfg.c (for now) in your project to do nothing on a SUSPEND event. See viewtopic.php?f=35&t=3629
by Hawhill
Fri Oct 21, 2016 5:35 pm
Forum: Bug Reports
Topic: STM32F407 (plus probably others): lockup on CDC-ACM via OTG, triggered by SUSPEND
Replies: 10
Views: 7574

STM32F407 (plus probably others): lockup on CDC-ACM via OTG, triggered by SUSPEND

Hi,

I've been hunting down a bug that bit me for a few days now. I just couldn't get USB CDC-ACM to work - however, sometimes (especially in debugging situations), it did. I think I have it all sorted out now.

Example code:
m
(note this includes a custom board config that has *not* been generated ...