2024-10-14 08:06 AM
Hello,
I am using STM32CubeIDE to implement an application under FreeRTOS on a STM32F107 chip installed on an Olimex board.
I also need a USB communication with a PC computer to exchange commands and data between our software on both sides (application specific)
- I installed (validated) the USB module via STM32CubeIDE Middelware.
- In "Connectivity" for "USB_OTG_FS" selected "Device_Only"
- In "Middleware - USB_Device", signal "Class For FS IP", I selected "Custom Human Interface Device Class (HID)"
- That's it
Then, I downloaded the whole thing (including FreeRTOS and a small LED blinking app) into the chip but it does not work :
- The PC does not beep when connecting the STM32F107 chip card via USB
- The LED is not blinking
So I still have no proof that something is running or if the CPU is stalled ?
I have an ST-Link cable. Is it possible to check what is running or not through debug ? If yes, how ?
Please note, the cable, the connection and the chip work since I use this channel to download the program (successfully)
Question:
- What exact procedure should I follow to install this USB functionality?
- Isn't it necessary to install/configure/start something in FreeRTOS for the USB to work?
- ...
Thanks for your help.
--
Mde / Belgium
Solved! Go to Solution.
2024-10-15 03:29 AM
What do you mean by:
@MDe wrote:
Now the issue is that this JTAG <-> USB cable powers up the board
Check the power of your board and if possible to power it with an external source.
2024-10-14 08:44 AM
Hello,
@MDe wrote:
I have an ST-Link cable. Is it possible to check what is running or not through debug ? If yes, how ?
ST-LINK cable or STLINK probe?
You need an STLINK probe and that "OLIMEX" board need to have an STLINK connector (Serial Wire Debug).
2024-10-14 09:03 AM
I have an ARM-USB-OCD-H device.
Here : https://www.olimex.com/Products/ARM/JTAG/ARM-USB-OCD-H/
I hope it's a probe ?
2024-10-14 07:36 PM
Up.
An answer please ?
Do you mean a "JTag probe" ?
2024-10-15 01:41 AM
This is what I'm talking about STLINK:
V2: https://www.st.com/en/development-tools/st-link-v2.html
or
V3: https://www.st.com/en/development-tools/stlink-v3set.html
Since you are using STM32CubeIDE, I don't know about the probe you are sharing and if CubeIDE supports it.
And the board needs to have JTAG connector with Serial Wire Debug (SWD) support.
This is the 20 pin connector you need on your board:
Otherwise you need to get the signals by wires.
2024-10-15 03:15 AM
Hello Soflit,
Thanks for your reply.
Yes, this is almost what I have for the JTAG. Even some more signals :
But I think it will work. The manufacturer, Olimex, claims it is compatible with STM32CubeIDE.
Now the issue is that this JTAG <-> USB cable powers up the board for a few seconds then shuts it down slowly (the RED Led which should be blinking goes down slowly)
I am now reading the user's manual of this cable from first phrase to last phrase trying to understand what's happend ?
2024-10-15 03:29 AM
What do you mean by:
@MDe wrote:
Now the issue is that this JTAG <-> USB cable powers up the board
Check the power of your board and if possible to power it with an external source.