This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Enabling STM32f4 discovery with CC2564MODNEM: no com port

Hi

I've been trying to follow the steps described in the document "Enable_STM32_Discovery.pdf" that comes with the TI stack installation. I followed the exact steps described there and, after re-compiling and flashing the code, I have no blinking LED, and no COM port. However, the Bluetooth device is discoverable, although you cannot interact with it.

The differences between the documentation and what I am doing are the following:

-  I am working with Keil, but I am using the GNU GCC compiler and not the MDK one provided by Keil due to the code size limit.

- I am using the STM32 ST-Link Utility for flashing the code.

Has anyone encountered this issue before? Is there something I'm missing out on? 

Thank you in advance,

Mihaela

  • Hi Mihaela,

    Where did you connect the COM port to? Note that the sample apps do not use the USB interface.

    Regards,
    Miguel
  • I didn't explicitly connect it anywhere. As I was looking through the code, I did notice that there is no usb reference. Is this interfacing described somewhere or maybe an example?

    Thanks,
    Mihaela
  • Mihaela,

    The sample apps use a UART interface on the STM32 which is available thru the pin connectors. A UART-to-USB or UART-to-RS232 converter is required to connect to a PC/laptop.

    Regards,
    ~Miguel
  • Hi

    So, if I want to connect, a TTL-232 cable would be ok?

    Also, if I want to use an USB interface for the mini-usb port on the STM, what should I do? Changing the macro declaration in the Main function would be a first step, right?

    //HCI_DRIVER_SET_COMM_INFORMATION(&HCI_DriverInformation, 4, VENDOR_BAUD_RATE, cpHCILL_RTS_CTS);
    HCI_DRIVER_SET_USB_INFORMATION(&HCI_DriverInformation);

    But then I still don't have a usb interface on. Do you have any suggestions?

    thanks,

    mihaela

  • Hi Mihaela,

    The TTL-232 cable should work. Just make sure the cable is compatible with the UART IO voltage.

    Regarding the USB interface, I was referring to the User/Console UART and not the CC256x UART. For CC256x, you should keep using a UART interface. For the User/Console UART, you would need to modify that part of the sample app accordingly.

    ~Miguel
  • Hi,

    I have encountered this issue before.

    Firstly, you should see the "HALCFG.h" where the HALTX\RX define. Because these are the COM ports.

    Secondly, you must have a tool of USB-SERIAL as there is no COM driver in the STM32-DISCO board.

    My soulution is : Use the tool of USB-SERIAL CH340, and connect the HALTX\RX\GND 3 pins (in the STM32 board) to the RX\TX\GND (in the CH340).

    Then you will find the COM of CH340 in you computer after you insert the USB of CH340. (The STLINK also insert into the computer)

    Finally, open the COM of CH340 using PUTTY or TERA TERM and push the ENTER button, you will see it is successful.

    THANK YOU!

  • Hi Miguel,

    So, I connected a TTL-232 cable that works with 3.3V logic and I can read with a number of terminal variants/emulations (tried on windows with putty, tried on linux with multiple variants from gtkterm to minocom and screen). The problem is that I cannot write anything. No matter what terminal I use, I get a hang after I try to write and no further responses. I configured them to run at 115200 baud rate, xonxoff None, 8 bits, no parity, 1 control bit and setting the "echo" to on. Still can't write.

    Mihaela
  • Mihaela,

    I have not experienced that problem before. Perhaps you want to double check that the UART TX line is connected correctly.

    Regards,
    Miguel
  • Hi

    So, double-checking:

    In HALCFG.h I have the following defines:
    #define CONSOLE_UART 2

    #define CONSOLE_TXD_PORT A
    #define CONSOLE_TXD_PIN 2

    #define CONSOLE_RXD_PORT A
    #define CONSOLE_RXD_PIN 3

    So I an connecting my TTL-232 TX to A3 and the RX to A2. So, from Putty, I am transmitting onto the RX pin A3. Right?

    Mihaela
  • Yes, that should work.

    ~Miguel
  • And yet it doesn't, that's the problem :( I was hoping that maybe I missed something out, but this is the environment in which it's not working.

    Mihaela