Username:     
Password:     
            Register  

Forum
  • Index
  •  » circleOS
  •  » I2C1 external connector use with Circle OS

# 26   2009-09-05 07:53:40 I2C1 external connector use with Circle OS

RazorConcepts
New member
Registered: 2009-08-26
Posts: 3

Re: I2C1 external connector use with Circle OS

Hi, could you send the application to me also. Thanks!

Offline

 

# 27   2009-09-07 08:47:18 I2C1 external connector use with Circle OS

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 517
Website

Re: I2C1 external connector use with Circle OS

Done

Offline

 

# 28   2009-09-10 17:42:12 I2C1 external connector use with Circle OS

pascalfromst
Member
Registered: 2009-01-28
Posts: 16

Re: I2C1 external connector use with Circle OS

Hello, could you send me the application too ?
Thanks a lot,
Best regards,
Pascal

Offline

 

# 29   2009-09-11 09:15:59 I2C1 external connector use with Circle OS

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 517
Website

Re: I2C1 external connector use with Circle OS

Done

Offline

 

# 30   2009-09-11 14:23:50 I2C1 external connector use with Circle OS

forsaken
New member
Registered: 2009-09-06
Posts: 2

Re: I2C1 external connector use with Circle OS

Francis wrote:

We will send you by email the application we wrote. It just reads the contents of an serial (I2C) EEPROM through I2C1.

could u send me application too please.
alihimmetyuce@gmail.com

Offline

 

# 31   2009-09-12 18:35:43 I2C1 external connector use with Circle OS

smuraski
New member
Registered: 2008-04-14
Posts: 2

Re: I2C1 external connector use with Circle OS

I have read several messages regarding this issue both on this forum and the STM32 forum.

Am I correct that as long as the FSMC is operating in Non-Muxed NOR mode, the nADV signal is not used by the FSMC and therefore should not interfere with the I2C.SDA signal?

I am new to the STM32 and the Primer2 with Circle OS. I am still trying to find where the FSMC is initialized to see where the registers get written to determine the mode used by Circle OS.

I looked at the schematics and it does not seem like it would need to be in Muxed-Mode...there are only D[0..7], nCS, nWR, nRD, RS and nRST signals...no address latch signal, so there does not seem to be a need to operate in Muxed Mode???

Does anyone know if the FSMC mode is operating in Muxed Mode in Circle OS?

Offline

 

# 32   2009-09-12 18:56:06 I2C1 external connector use with Circle OS

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: I2C1 external connector use with Circle OS

As soon as the FSMC is used (whatever the number of signals/addresses used), all the pins potentially connected to the FSMC (all those that are declared in the datasheet with an alternate function regarding the FSMC) are not anymore useable for any other alternate function. It's why CAN/USB are not useable as long as the FSMC is running (clocked). The workaround consists in stopping the clock of the FSMC during these operations.

Offline

 

# 33   2009-09-12 19:02:57 I2C1 external connector use with Circle OS

smuraski
New member
Registered: 2008-04-14
Posts: 2

Re: I2C1 external connector use with Circle OS

If I understand this correctly...if the FSMC is being clocked, then any peripherals which share the pin are disconnected from the pins used by the FSMC and therefore any external events occurring will be missed by the peripherals???

I understand from reading other forum messages that there is an LCD.c solution which controls the LCD without using the FSMC. Is this file posted somewhere? if so, please advise where it is located or can you send it to me? Thanks.

Last edited by smuraski (2009-09-13 19:56:54)

Offline

 

# 34   2009-09-30 07:29:31 I2C1 external connector use with Circle OS

armaniake
Member
From: USA, Texas
Registered: 2007-08-22
Posts: 38

Re: I2C1 external connector use with Circle OS

Hi,

Any chance I could get a copy of the I2C1 EEPROM read application too?

Thanks

Offline

 

# 35   2009-09-30 09:17:08 I2C1 external connector use with Circle OS

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 517
Website

Re: I2C1 external connector use with Circle OS

The example of LCD without FSMC is available on our FTP :
FTP link : "ftp://www.raisonance.com/pub/CircleOS/lcd_without_fsmc.c"

Note : you need to define the macro "P2C_107".

The I2C1 application is available as a circle project  "TestI2C1" (see "Projects" page).

Last edited by yrt (2009-09-30 09:29:42)

Offline

 

# 36   2009-09-30 17:44:30 I2C1 external connector use with Circle OS

armaniake
Member
From: USA, Texas
Registered: 2007-08-22
Posts: 38

Re: I2C1 external connector use with Circle OS

Thanks.

Looking into the code for I2C1, I see in stm32f10x_conf.h inside the file set that this is defined:

#define HSE_Value    ((u32)8000000)

Should you not have defined it for the 12MHz crystal you use on the primer(s)?

Thanks

Offline

 

# 37   2009-10-01 08:49:09 I2C1 external connector use with Circle OS

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 517
Website

Re: I2C1 external connector use with Circle OS

Hi Armand,

The stm32f10_conf.h comes from the ST examples. But the projet is a circleOS application, and the clocks are configured by the OS, not by the application, so the #define in this .h file are not significant. (You can see that the "RCC_Configuration" function is not called).

Yves

Offline

 

# 38   2010-03-19 02:02:35 I2C1 external connector use with Circle OS

toalan
New member
Registered: 2009-02-22
Posts: 4

Re: I2C1 external connector use with Circle OS

Francis wrote:

We will send you by email the application we wrote. It just reads the contents of an serial (I2C) EEPROM through I2C1.

Can you also send the app to me?

Regards,

Alan To

Offline

 

# 39   2010-03-21 16:48:06 I2C1 external connector use with Circle OS

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Re: I2C1 external connector use with Circle OS

I'm getting a white screen problem with lcd_without_fsmc.c version.

It seems to be ralated to power regulator. If i turn my device in less than 10sec after i switched it off (or reset it from debugger) screen works as expected. Otherwise it fails to initialize and stays white.

The problem started to show itself more frequently after i optimized all input/output routines. Now it can run as fast as FSMC version if not fails to start.

Anyone has a solution?

Offline

 

# 40   2010-03-23 13:26:38 I2C1 external connector use with Circle OS

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Re: I2C1 external connector use with Circle OS

Argh! Forget it. My bad.

In file lcd.h one of defines need to be fixed in order to configure LCD_RESET pin

Code:

178:  #define LCD_CTRL_PINS (CtrlPin_RS|CtrlPin_RD|CtrlPin_WR|CtrlPin_RST)

Offline

 

# 41   2010-12-03 23:18:43 I2C1 external connector use with Circle OS

mikepo
Member
From: USA
Registered: 2010-12-03
Posts: 36

Re: I2C1 external connector use with Circle OS

I have ordered an EvoPrimer2, which seems to have the LCD ports changed compared to Primer2.

Will I2C work on the EvoPrimer without changes or do I need to make the same changes for the EvoPrimer?

Is this still an issue with CircleOS 4.1?

Offline

 

# 42   2010-12-06 08:25:02 I2C1 external connector use with Circle OS

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 517
Website

Re: I2C1 external connector use with Circle OS

I supposed you purchased an EvoPrimer with STM32E target board.

The LCD data bus has effectively changed, but the configuration of the FSMC is the same, and PB7 is always shared with FSMC, and I think that I2C will not work without change.
On the other side, CAN extension is no more shared with FSMC (PB8/PB9).

Offline

 

# 43   2010-12-20 16:41:31 I2C1 external connector use with Circle OS

sarkan
New member
Registered: 2010-11-29
Posts: 1

Re: I2C1 external connector use with Circle OS

could you please send me the application also.  I have the same problem...

Big thanks!!

Offline

 

# 44   2011-06-27 13:18:24 I2C1 external connector use with Circle OS

izunia111gda
New member
Registered: 2011-06-21
Posts: 1

Re: I2C1 external connector use with Circle OS

Can You send me also your apllication ? I have the same problem with I2C.
Thank you.

raulin.izabell@wp.pl

Last edited by izunia111gda (2011-06-27 13:18:42)

Offline

 

# 45   2011-06-28 09:56:05 I2C1 external connector use with Circle OS

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 517
Website

Re: I2C1 external connector use with Circle OS

The I2C example with external EEPROM is available here :
http://www.stm32circle.com/projects/project.php?id=102

The example of LCD without FSMC is available on our FTP :
FTP link : "ftp://www.raisonance.com/pub/CircleOS/lcd_without_fsmc.c"

Offline

 

# 46   2011-10-19 19:39:58 I2C1 external connector use with Circle OS

STPrime
Member
Registered: 2011-04-06
Posts: 35

Re: I2C1 external connector use with Circle OS

Hello,

Is there a working copy of the I2C for the EvoPrimer?  I have tried the testi2c and cannot get it to work.  The timer was changed to TIM4.  The timer does stop, however, when you look at the reset/Clock in debug, the TIM4EN is showing ENABLED.  The FSMC is halted I2C_DeInit(I2C1) has been invoked before configuring I2C1.

It just won't go into MASTER mode when the start function is called.  The TestI2CExt doesn't work with EvoPrimer.

If anyone has been able to get the I2C1 to work (with or without OSCircle), please share your code.

Thanks,

STPrime


It is all about coming up with new ways...to do the same old thing.

Offline

 

# 47   2011-10-24 21:17:12 I2C1 external connector use with Circle OS

STPrime
Member
Registered: 2011-04-06
Posts: 35

Re: I2C1 external connector use with Circle OS

A simple solution that may have been mentioned before would be to use the CAN_Rx and CAN_Tx leads on the STM32F103 Target board.   By soldering a jumper wire from the CAN_Rx/Tx to the CAN_H /L, the output of the I2C will now be available throught the 20 pin connector.

The resistor between the CAN_H/L has to be removed.  Don't remove it entirely, just have it sit on one pad or else if/when you decide on using CAN, you'll never find it.

The I2C for PB.8 and PB.9 will have to be configured using the remapping of the I2C1 port.

Unfortunately, I fried the Port B before I thought of doing it this way, so this method is untested.


It is all about coming up with new ways...to do the same old thing.

Offline

 

# 48   2012-03-14 19:39:37 I2C1 external connector use with Circle OS

ivocosta
New member
Registered: 2008-02-15
Posts: 2

Re: I2C1 external connector use with Circle OS

yrt wrote:

The I2C example with external EEPROM is available here :
http://www.stm32circle.com/projects/project.php?id=102

The example of LCD without FSMC is available on our FTP :
FTP link : "ftp://www.raisonance.com/pub/CircleOS/lcd_without_fsmc.c"

Hi yrt,

I try to use this demo but without success:(, i use you code to read range finder sensor and get stuck in this line   
"while(!I2C_CheckEvent(I2C1, I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED));"

i already tries different sensors but nothing works sad

any suggest?

Best Regards
Ivo Costa

Offline

 

# 49   2012-07-03 13:52:46 I2C1 external connector use with Circle OS

johnja9
New member
Registered: 2011-05-13
Posts: 6

Re: I2C1 external connector use with Circle OS

Is it possible to publish this working, sample I2C app on the projects page, or make it generally available to all interested parties?

I too have had issues with I2C1 through the external connector, and would like to study a working, sample application.

Regards

John

Offline

 

  • Index
  •  » circleOS
  •  » I2C1 external connector use with Circle OS

Board footer