Search found 11 matches

by serdz
Sat Apr 13, 2013 8:42 pm
Forum: STM32 Support
Topic: Serial port in SmartCard mode
Replies: 9
Views: 7582

Re: Serial port in SmartCard mode

Thanks for comment,

Actually I'm not decided yet what driver to use.
I just want to quick check if my board working with SmartCard. But as usually quick maybe more than few days :).
by serdz
Sat Apr 13, 2013 8:27 pm
Forum: STM32 Support
Topic: Serial port in SmartCard mode
Replies: 9
Views: 7582

Re:[SOLVED] Serial port in SmartCard mode

Hi all,

Just solve my problem. Very strange but after these changes I able to receive data from SmartCard:

static SerialConfig scard1_serial_cfg = {
9677, // 3.6 MHZ / 372
USART_CR1_M | USART_CR1_PCE,
USART_CR2_CLKEN | USART_CR2_STOP1P5_BITS | USART_CR2_LBCL,
0
};
..&#46 ...
by serdz
Sat Apr 13, 2013 5:14 pm
Forum: STM32 Support
Topic: Serial port in SmartCard mode
Replies: 9
Views: 7582

Re: Serial port in SmartCard mode

ISR not executed at all.

I guess in case of wrong baud rate or parameters ISR should be triggered in any case.
Only thing that come in my mind is I/O setup. But when I'm sending something to serial port
I see that in oscilloscope, so transmission works well.
I will try to connect logic analyzer ...
by serdz
Sat Apr 13, 2013 4:41 pm
Forum: STM32 Support
Topic: Serial port in SmartCard mode
Replies: 9
Views: 7582

Re: Serial port in SmartCard mode

Hi,

Should be 40, but I'm also tryied to wait for single byte without success.

Thanks
by serdz
Sat Apr 13, 2013 2:13 pm
Forum: STM32 Support
Topic: Serial port in SmartCard mode
Replies: 9
Views: 7582

Re: Serial port in SmartCard mode

Hi,

Actually I'm using design from http://www.st.com/st-web-ui/static/acti ... 166510.pdf.
I'm also modified example code from ST and it's works fine.
I double checked all USART3 and GPIOC registers in both projects and they are almost the same.

Thanks.
by serdz
Sat Apr 13, 2013 12:22 pm
Forum: STM32 Support
Topic: Serial port in SmartCard mode
Replies: 9
Views: 7582

Serial port in SmartCard mode

Hi All,

I'm trying to enable SmartCard mode for SD3, everything looks fine except my application not receive any data from IO line.
In oscilloscope I see that SIM card response with ATR.

That how I initialize serial port:


/*
* Port C setup.
* Everything input with pull-up except&#58 ...
by serdz
Mon Apr 01, 2013 2:02 pm
Forum: STM32 Support
Topic: STM32F103 HD usb problem
Replies: 7
Views: 7414

Re: STM32F103 HD usb problem

SOLVED. Problem gone after resoldering crystal.
by serdz
Sat Mar 30, 2013 9:41 pm
Forum: STM32 Support
Topic: STM32F103 HD usb problem
Replies: 7
Views: 7414

Re: STM32F103 HD usb problem

Yes, exactly the same 8MHz crystal. Configuration I also not changed.
From Linux usb monitor I see that my board not responds at all.( As I mentioned before USB isr also not executed on board)

ffff880156f00540 797183841 S Ci:3:001:0 s a3 00 0000 0001 0004 4 <
ffff880156f00540 797183868 C Ci:3:001 ...
by serdz
Sat Mar 30, 2013 8:59 pm
Forum: STM32 Support
Topic: STM32F103 HD usb problem
Replies: 7
Views: 7414

Re: STM32F103 HD usb problem

Yes I'm trying ./demos/ARMCM3-STM32F103.
by serdz
Sat Mar 30, 2013 8:46 pm
Forum: STM32 Support
Topic: STM32F103 HD usb problem
Replies: 7
Views: 7414

Re: STM32F103 HD usb problem

Hi Giovanni,

Thanks for quick reply. Unfortunately I don't have Olimex board.