Search found 14 matches

by erwinkendo
Tue Mar 19, 2013 4:28 pm
Forum: STM32 Support
Topic: Serial Driver Input for Events Error
Replies: 2
Views: 3347

Re: Serial Driver Input for Events Error

All code working now in all the UART devices. Checked several times, as it is usual, some pin confusion.

This events information is very usefull but it was really a pain to find it, it would be nice to have an example like this documented somewhere else, but for the mean time this will do.

Thanks :)
by erwinkendo
Tue Mar 19, 2013 1:36 am
Forum: STM32 Support
Topic: Serial Driver Input for Events Error
Replies: 2
Views: 3347

Serial Driver Input for Events Error

Hello Giovany and other forum members

Today I come here because I used event for SERIAL Driver input a long time and now with the new functions I was testing its functionality as seen in this post: http://forum.chibios.org/phpbb/viewtopic.php?f=2&t=872 .

This method is working fine ...
by erwinkendo
Wed Oct 24, 2012 9:33 pm
Forum: General Support
Topic: STM32F4 I2C reading EagleTree Sensor problem
Replies: 6
Views: 6220

Re: STM32F4 I2C reading EagleTree Sensor problem

Hi everyone!! Sorry for the late answer.

Giovanni: My CPU doesn't get stuck anywhere, the execution is run normally.
barthess: The function successfully returns and status==RDY_OK and errors==0. Indeed it returns 0, but instead other data should be returned. Is weird that the eagletree page is ...
by erwinkendo
Mon Oct 22, 2012 5:59 am
Forum: General Support
Topic: STM32F4 I2C reading EagleTree Sensor problem
Replies: 6
Views: 6220

STM32F4 I2C reading EagleTree Sensor problem

Greetings

With a little shame I come here asking for assistance. I was trying to read Altimeter V3 and Airspeed V3[1] sensors from Eagletree, which have a I2C bus to acquire its raw data. Eagletree provides information on how to use this sensors, the I2C addresses and pseudocode to access it[2 ...
by erwinkendo
Fri May 25, 2012 3:17 am
Forum: General Support
Topic: STM34F4 Discovery Board Multiple Serial Ports Problem
Replies: 14
Views: 12360

Re: STM34F4 Discovery Board Multiple Serial Ports Problem

Thank you for all the help.

It was indeed a DMA channels problem, I updated my trunk, changed I2C1 DMA channel and problem solved. Once I fixed it, I tried reading and writing to a BaseChannel in a SerialDrive, but for a high amount of iterations, it seems to create a system lock, so UART driver ...
by erwinkendo
Wed May 23, 2012 5:10 am
Forum: General Support
Topic: STM34F4 Discovery Board Multiple Serial Ports Problem
Replies: 14
Views: 12360

Re: STM34F4 Discovery Board Multiple Serial Ports Problem

Ok, found the posible DMA ids in the hal_lld.h file, but when changing STM32_I2C1_TX_DMA_MSK from (STM32_DMA_STREAM_ID_MSK(1, 6)) to STM32_DMA_STREAM_ID_MSK(1, 7)), the system stops working (I tried this in the discovery F4 demo).

Could this be a DMA related issue? the debugging hasn't been ...
by erwinkendo
Tue May 22, 2012 10:52 pm
Forum: General Support
Topic: STM34F4 Discovery Board Multiple Serial Ports Problem
Replies: 14
Views: 12360

Re: STM34F4 Discovery Board Multiple Serial Ports Problem

Thank you again.

But trying to fix this in the mcuconf.h file, an error occurred:

../../os/hal/platforms/STM32/uart_lld.h:239:2: error: #error "invalid DMA stream associated to USART2 TX"


Does this mean I have to change the DMA stream definition in both ...
by erwinkendo
Tue May 22, 2012 10:14 pm
Forum: General Support
Topic: STM34F4 Discovery Board Multiple Serial Ports Problem
Replies: 14
Views: 12360

Re: STM34F4 Discovery Board Multiple Serial Ports Problem

Giovanny, as always thank you.

A little explanation about the DMA channels please, what part of the configuration shows this?

This is my mcuconf.h file:

/*
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
2011,2012 Giovanni Di Sirio.

This file is part of ChibiOS/RT.

ChibiOS/RT ...
by erwinkendo
Tue May 22, 2012 9:52 pm
Forum: General Support
Topic: STM34F4 Discovery Board Multiple Serial Ports Problem
Replies: 14
Views: 12360

Re: STM34F4 Discovery Board Multiple Serial Ports Problem

I enabled all the debugging options in this page: http://www.chibios.org/dokuwiki/doku.php?id=chibios:guides:debug_guide
In compilation time, no errors occurred.

I will try and use st-link and gdb to debugg. Do you recommend me using eclipse for this?
by erwinkendo
Tue May 22, 2012 9:06 pm
Forum: General Support
Topic: STM34F4 Discovery Board Multiple Serial Ports Problem
Replies: 14
Views: 12360

STM34F4 Discovery Board Multiple Serial Ports Problem

Greetings, I am using various available serial protocols in stm32f4 discovery board. I am using the USART driver and Serial Driver.

When I use SD4 in pins PINA1 and PINA0 with USART3 in pins PINB10 and PINB11, everything works fine, but when I add Serial Port 2 (with Serial Driver or USART driver ...