Change PN512 UART baudrate to 115200,then the chip cann't initailize

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change PN512 UART baudrate to 115200,then the chip cann't initailize

603 Views
bob_zhang
Contributor I

Change PN512  UART baudrate to 115200,then the software cann't restart and the chip cann't finish initailization. Plaese help to analyse the problem .

Following is normal initialization sequence:

[I] Using Mifare reader mode

[I] Using Interface /dev/ttyS1.

[I] Hello, this is PN51x - hardware version 8.2

Entry ActivateMifareReaderLoop

Linux  - >  ActivateMifareReaderLoop

[I] Timer of the PN51x reconfigured.

[I] Timer of the PN51x reconfigured.

Initial Done

After change baudrate to ( 115200, 230400 ,460800)the chip cann't finish initailization,cann't set up timer,without  following log: [I] Timer of the PN51x reconfigured. [I] Timer of the PN51x reconfigured.

At present,we try to modify in MifareReaderC.c ,as following :

/* Initialise ISO14443-3 component */  

  phcsBflI3P3A_Hw1Initialise(&iso14443_3, &iso_14443_3_params, &rc_reg_ctl, PHCS_BFLI3P3A_INITIATOR);    

/* Initialise Mifare component */  

  phcsBflMfRd_Init(&mfrd, &mifare_params, &rcio, buffer+20); ChangePN51xBaudRate(&rc_reg_ctl, mBaudRate);  

  /* (2) Set the UART on the host */    

hostbaud.baudrate = mBaudRate;     phcsBflBal_Hw1SerLinHostBaud(&hostbaud);

following is the dmesg :

this write system call (2) (0)

this write system call (2) (1)

this write system call (2) (0)

this write system call (2) (1)

this write system call (2) (0)

selected clock b71b00 quot 1248

selected clock b71b00 quot 1248

selected clock b71b00 quot 50

this write system call (2) (1)

this write system call (2) (0)

this write system call (2) (0)

this write system call (2) (1)

selected clock b71b00 quot 50

selected clock b71b00 quot 1248

this write system call (2) (0)

this write system call (2) (1)

this write system call (2) (0)

this write system call (2) (1)

this write system call (2) (0)

this write system call (2) (1)

this write system call (2) (0)

Labels (1)
0 Kudos
1 Reply

493 Views
jimmychan
NXP TechSupport
NXP TechSupport

Could you tell me what is the part number of the chip you used? What is the lib or code are you using?

0 Kudos