So, i created the ADC1 & PIOC13 blinker, bit it does me no good without knowing what the analog values are. But when i try to create an USB_CDC device, it complaints about:
ADC1:
partly disable conflit with
USB_FS_OTG: device mode only
Does it mean i can't use USB and ADC together?
By the way, how do i tell the IDE to keep it's hand off my codes?
It keeps whipping out my codes when changing configurations.
On 5/6/21 1:07 PM, Ed Lee wrote:
So, i created the ADC1 & PIOC13 blinker, bit it does me no good without knowing what the analog values are. But when i try to create an USB_CDC device, it complaints about:
ADC1:
partly disable conflit with
USB_FS_OTG: device mode only
Does it mean i can't use USB and ADC together?
By the way, how do i tell the IDE to keep it's hand off my codes?
It keeps whipping out my codes when changing configurations.
The ADC likely has a LOT of possible pins. Some of them will conflict
with other operations.
That sounds like if you want to use the ADC1 pin, you can't also use USB_FS_OTG. If you want that function, use a different ADC pin.
To avoid it wiping out your code, don't put it in the sections of the
file marked AUTO-GENERATED, DO NOT EDIT.
On Thursday, May 6, 2021 at 10:46:02 AM UTC-7, Richard Damon wrote:
On 5/6/21 1:07 PM, Ed Lee wrote:
So, i created the ADC1 & PIOC13 blinker, bit it does me no good without knowing what the analog values are. But when i try to create an USB_CDC device, it complaints about:
ADC1:
partly disable conflit with
USB_FS_OTG: device mode only
Does it mean i can't use USB and ADC together?
By the way, how do i tell the IDE to keep it's hand off my codes?
It keeps whipping out my codes when changing configurations.
The ADC likely has a LOT of possible pins. Some of them will conflict
with other operations.
That sounds like if you want to use the ADC1 pin, you can't also use USB_FS_OTG. If you want that function, use a different ADC pin.I tried all PA0 to PA7, nothing work.
To avoid it wiping out your code, don't put it in the sections of theI put my codes in USER init section of main.c. Cube still whip them out. Fortunately, i have backup to put them back after final configuration.
file marked AUTO-GENERATED, DO NOT EDIT.
On Thursday, May 6, 2021 at 11:10:39 AM UTC-7, Ed Lee wrote:
On Thursday, May 6, 2021 at 10:46:02 AM UTC-7, Richard Damon wrote:
On 5/6/21 1:07 PM, Ed Lee wrote:
So, i created the ADC1 & PIOC13 blinker, bit it does me no good without knowing what the analog values are. But when i try to create an USB_CDC device, it complaints about:
ADC1:
partly disable conflit with
USB_FS_OTG: device mode only
Does it mean i can't use USB and ADC together?
By the way, how do i tell the IDE to keep it's hand off my codes?
It keeps whipping out my codes when changing configurations.
The ADC likely has a LOT of possible pins. Some of them will conflict with other operations.
Just out of curiosity, I tried the code on F469. It allows some ADC1 pins and FS_OTG. So, there seems to be some limitations with the F411.That sounds like if you want to use the ADC1 pin, you can't also use USB_FS_OTG. If you want that function, use a different ADC pin.I tried all PA0 to PA7, nothing work.
To avoid it wiping out your code, don't put it in the sections of the file marked AUTO-GENERATED, DO NOT EDIT.I put my codes in USER init section of main.c. Cube still whip them out. Fortunately, i have backup to put them back after final configuration.
On 5/7/21 2:10 AM, Ed Lee wrote:
I put my codes in USER init section of main.c. Cube still whip them out.
Fortunately, i have backup to put them back after final configuration.
You must disable the garbage collector. ;-)
I put my codes in USER init section of main.c. Cube still whip them out. Fortunately, i have backup to put them back after final configuration.
On 5/7/21 2:10 AM, Ed Lee wrote:
I put my codes in USER init section of main.c. Cube still whip them out. Fortunately, i have backup to put them back after final configuration.You must disable the garbage collector. ;-)
Now i can read the analog signals, dump it to the server as USB CDC device, and blink the LED to make sure it's running.
The server will be on a remote location, but the techs can watch the LED.
Well, my trash is better than ST's trash.
On 5/7/2021 9:47 AM, Ed Lee wrote:
Now i can read the analog signals, dump it to the server as USB CDC device, and blink the LED to make sure it's running.Are you sure? Have you debugged the ST USB stack?
The server will be on a remote location, but the techs can watch the LED.Cheaper to use techs than parts with competent SW?
Well, my trash is better than ST's trash.Only if you rewrite all the drivers...
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 91:27:48 |
Calls: | 6,658 |
Files: | 12,203 |
Messages: | 5,334,161 |