Search found 12 matches

by aicastell
Thu Nov 29, 2018 10:18 am
Forum: ChibiOS/HAL
Topic: USB-HID working with IIO but now with hidraw subsystem
Replies: 5
Views: 4390

Re: USB-HID working with IIO but now with hidraw subsystem

The firmware is implemented as a composite USB-device with diferent configurations, and in some configurations we use the CDC serial driver. But the active configuration we are talking about doesn't use Serial_USB driver, just HID sensors. Using wireshark to check the traffic through the USB, we can...
by aicastell
Thu Nov 29, 2018 8:44 am
Forum: ChibiOS/HAL
Topic: USB-HID working with IIO but now with hidraw subsystem
Replies: 5
Views: 4390

USB-HID working with IIO but now with hidraw subsystem

Hello forum. My uC is connected to a Linux kernel through a USB interface. It is running Chibios 16.1.0 firmware to send data collected from HID sensors to the Linux kernel. Running on a Linux kernel 4.x, the application can receive data through Industrial I/O subsystem (IIO) and consume them. That ...
by aicastell
Mon Sep 24, 2018 7:28 am
Forum: STM32 Support
Topic: JLINK EDU segger JTAG to debug STM32 microcontrollers
Replies: 5
Views: 3607

Re: JLINK EDU segger JTAG to debug STM32 microcontrollers

Thanks a lot for your advice, that's a good point. I didn't fall into that detail but you are right, that could be the problem. I have checked it now: The main Makefile of my project includes this line: # Compiler options here. ifeq ($(USE_OPT),) USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-func...
by aicastell
Fri Sep 21, 2018 11:40 am
Forum: STM32 Support
Topic: JLINK EDU segger JTAG to debug STM32 microcontrollers
Replies: 5
Views: 3607

Re: JLINK EDU segger JTAG to debug STM32 microcontrollers

Hi all. The openocd setup file attached previosly has this line: transport select swd I assumed that option enables SWD as expected, but probably I am missing something else, the setup of that tool is more complex than expected (>_<), I just wanted to check the content of a variable [...] I have tes...
by aicastell
Thu Sep 20, 2018 3:24 pm
Forum: STM32 Support
Topic: JLINK EDU segger JTAG to debug STM32 microcontrollers
Replies: 5
Views: 3607

JLINK EDU segger JTAG to debug STM32 microcontrollers

I have a j-link EDU SEGGER J-TAG available, and would like to use it to debug a Chibios application developed using a STM32F072B microcontroller. Packages openocd and arm-none-eabi-gdb are properly installed in my Ubuntu development host. The content of myboard.conf openocd configuration file is thi...
by aicastell
Thu Sep 20, 2018 10:35 am
Forum: ChibiOS/HAL
Topic: Baudrate configuration in USB CDC firmware
Replies: 5
Views: 3190

Re: Baudrate configuration in USB CDC firmware

First of all, thank you for your fast and valuable feedback. What should be the most convenient way to manage that inside ISR context? Defining a callback for the fourth usbSetupTransfer parameter (currently set as NULL)? Or publishing an event inside ISR and managing it in the main loop? CH_DBG_SYS...
by aicastell
Wed Sep 19, 2018 4:15 pm
Forum: ChibiOS/HAL
Topic: Baudrate configuration in USB CDC firmware
Replies: 5
Views: 3190

Re: Baudrate configuration in USB CDC firmware

Thanks for your fast answer :) This is the whole code of my setLineCoding function: void setLineCoding(cdc_linecoding_t* lcp) { SD1_cfg.speed = (uint32_t)lcp->dwDTERate; // DEBUG if (SD1_cfg.speed == 115200) { led_on(LED_A); } if (SD1.state != SD_UNINIT) return; while(SD1.state != SD_READY) chThdSle...
by aicastell
Wed Sep 19, 2018 3:52 pm
Forum: ChibiOS/HAL
Topic: Baudrate configuration in USB CDC firmware
Replies: 5
Views: 3190

Baudrate configuration in USB CDC firmware

I have a problem setting up the baudrate of my USB CDC serial port. This is my initial SerialDriver configuration: // 9600, 8N1 SerialConfig SD1_cfg = { 9600, 0, USART_CR2_STOP1_BITS, 0 }; The SerialDriver is initialized in this way: sdObjectInit(&SD1, NULL, NULL); sdStart(&SD1, &SD1_cfg...
by aicastell
Mon Sep 10, 2018 2:50 pm
Forum: ChibiOS/HAL
Topic: Issue developing a USB device with two config descriptors
Replies: 4
Views: 3034

Re: Issue developing a USB device with two config descriptors

I come back with my initial issue, providing all internal details for a better understanding. My USB-device is composed of three different functional blocks: * HID sensors * HID inputs * CDC ttyACM The inputs and ttyACM pins are shared. The purpose is developing a Chibios driver to separate all the ...
by aicastell
Fri Sep 07, 2018 12:45 pm
Forum: ChibiOS/HAL
Topic: Issue developing a USB device with two config descriptors
Replies: 4
Views: 3034

Re: Issue developing a USB device with two config descriptors

Continuing with this issue, I have another question related. On the usb_event_cb callback (first callback defined on the USBConfig variable), when the USB_EVENT_CONFIGURED event is handled, the endpoints specified in the configuration must be enabled. But I my particular case, I have two configurati...

Go to advanced search