/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Primer2 ext Connector manual errors

Username:     
Password:     
             

Forum

# 1   2010-06-30 09:28:40 Primer2 ext Connector manual errors

diabolo38
Member
Registered: 2010-03-12
Posts: 50

Primer2 ext Connector manual errors

I've been trusting the manual but after seraching why it was not working correctly i found iseveral mistakes , wrong pin to function assignent

Pin 8 isn't SPI2_MOSI/TIM1_CH3 but SPI2_NSS/PB12 (copy paste of pin 6?)

Pin 9/10  says
Connected to the CAN transceiver. When the CAN
transceiver is not soldered, these pins could be easily
connected to PD.2-PD.3 on the STM32 by shortcutting
the signals on the footprint of the CAN transceiver


Pin9/10  doesn't connect to PD.2-PD.3  but actualy FSCM_D2 and  FSMC_D3 that are PD.0 and PD.1 !

Offline

 

# 2   2010-07-02 14:49:50 Primer2 ext Connector manual errors

diabolo38
Member
Registered: 2010-03-12
Posts: 50

Re: Primer2 ext Connector manual errors

A new one ...
Actually PA.3  CNX 18 is already used !
I got surprise that the  i/o was togling while  my app was not touching it  ..
After a quick search in the os source  i found that the responsible is  SysTickHandler


Code:

void SysTickHandler( void ) 
    {
    s32 i;
#ifdef TIMING_ANALYSIS     // to debug with a scope
    // Systic flag.
    GPIO_WriteBit( GPIOA, GPIO_Pin_6, Bit_RESET );
#endif

#ifdef PRIMER2
    GPIO_WriteBit( GPIOA, GPIO_Pin_3, Bit_RESET );    // 
#endif

    for ( i = 0 ; i < SCH_HDL_MAX ; i++ )
        {
        if ( SchHandler[i] == (tHandler)(-1) ) 
            {
            break; //end of list
            }
        else if ( SchHandler[i] != 0) 
            // (handler == 0) means that it has been disabled
            {
            (SchHandler[i])();
            }
        }
#ifdef TIMING_ANALYSIS     // to debug with a scope
    GPIO_WriteBit( GPIOA, GPIO_Pin_6, Bit_SET );
#endif
#ifdef PRIMER2
    GPIO_WriteBit( GPIOA, GPIO_Pin_3, Bit_SET );    // 
#endif
    }

I have fixed the source file to leave PA.3 free for the application
the primer2_ciricle project properties must also be modifeid  to remove TIMING_ANALYSIS that is defined by default and make main.c setup  and initailized  all bits of GPIO A

Last edited by diabolo38 (2010-07-02 15:13:05)

Offline

 

# 3   2010-07-03 14:12:23 Primer2 ext Connector manual errors

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

Re: Primer2 ext Connector manual errors

I already reported this bug. It's posted in CircleOS project comments.

I thought they fixed it in new version! I guess they didn't.

Last edited by ntrf.zns (2010-07-03 14:13:05)

Offline

 

# 4   2010-07-05 06:37:42 Primer2 ext Connector manual errors

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

Re: Primer2 ext Connector manual errors

I confirm that it has been fixed for version 4.x

Offline

 

# 5   2010-07-05 07:12:43 Primer2 ext Connector manual errors

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

Re: Primer2 ext Connector manual errors

Good. By the way i'll try to prepare a patch for DosFS by the end of the week.

Offline

 

# 6   2010-07-22 09:51:08 Primer2 ext Connector manual errors

jeremybirch
New member
Registered: 2010-07-22
Posts: 3

Re: Primer2 ext Connector manual errors

having checked the schematic, the mapping of connector pins to GPIO pins is as follows:
1 VCC_2.8
2 GND
3 PB6 = I2C1_SCL
4 PB7 = I2C2_SDA
5 PB14 = SPI2_MISO
6 PB15 = SPI2_MOSI
7 PB13 = SPI2_SCK
8 PB12 = SPI2_NSS
9 PD1 = FSMC_D3  (if you wire pin1 to pin7 of the CAN footprint)
10 PD0 = FSMC_D2 (if you wire pin4 to pin6 of the CAN footprint)
11 PC4 = ADC_IN14
12 PC5 = ADC_IN15
13 PB0 = ADC_IN8
14 PA0 = WKUP/ADC_IN0
15 PA1 = ADC_IN1
16 PA2 = ADC_IN2
17 PA4 = ADC_IN4
18 PA3 = ADC_IN3
19 VCC_EXT
20 GND

NB the CAN output pins are joined by R41 which is 120 ohms - if you want to use these as extra GPIO pins then you probably want to remove that resistor
NB remapping the purpose of the pins can give access to other functions than those listed here

The VCC available is 2.8v, this is generally out of compliance with 3.3v chips (which tolerate 3.0-3.6v) so they may malfunction when running on 2.8v. If you want to use other chips eg shields for Arduino, or just 74 series logic, you may need a more solid power supply. A MAX619 chip (plus 4 capacitors) can provide 50mA at 5v from the 2.8v available in the STM32Primer2 device. Other Maxim chips can provide up to 250mA (but more than 100mA is probably not a good idea)

Offline

 

# 7   2010-07-22 10:20:46 Primer2 ext Connector manual errors

jeremybirch
New member
Registered: 2010-07-22
Posts: 3

Re: Primer2 ext Connector manual errors

also worth noting that pins 6,7,8 (PB15,13,12) are also connected to the audio recording functions hence you will need to disable this if you want to reuse those pins externally

Offline

 

# 8   2010-07-23 10:08:47 Primer2 ext Connector manual errors

diabolo38
Member
Registered: 2010-03-12
Posts: 50

Re: Primer2 ext Connector manual errors

jeremybirch :

also worth noting that pins 6,7,8 (PB15,13,12) are also connected to the audio recording functions hence you will need to disable this if you want to reuse those pins externally

I do use them (SPI) without any problems (but i'm not doign any audio record)

Note that to use i2c  you must also disable clock to the fmsc for the time to do your i2c transfert or use a modfied lcd driver that is not using fsmc

Offline

 

Board footer