Hello,
We are trying to use the KL82Z as a CCID device on Linux and macOS. We have ordered the FRDM-KL82Z as well as the TWR board but while we wait for the boards to be delivered to us we wanted to check and make sure that the USB CCID stack works on both Linux and macOS.
We understand that the PN7462AU stack works on both the operating systems and we have installed the relevant libraries as well for it on Linux and macOS. Just want to make sure that the KL82Z will also work on both operating systems.
The KL82Z is recognized by both systems, just make sure you have your rules right in the udev in the case of linux.
Normally, when you install MCUXpresso, these rules are added in the installation, I am using Ubuntu and I have no problems with this card, in the case of mac, it should be the same way as linux.
We are talking about client computers. We cannot install MCU Expresso on all computers.
So if you can provide us some details on the udev rules that will be great. Once we get the udev rules for Linux we will try the same on macOS as well
Hello,
We followed your suggestion but we are not able to get the device to mount as a CCID device. The lsusb command shows that there is a USB device but not sure how it is mounted as.
We were looking for something like a guide like this
Can you provide the same to us?
Or tell us what changes are to be made to the udev rules file please?
Did you have a 99-jlink.rules on /etc/udev/rules.d/?
Yes we looked at the 99-jlink.rules on /etc/udev/rules.d/
Some properties in the file did change but the device still did not mount as a CCID device. We ran the pcscd_scan command and nothing showed up even thought we could see that the 99-jlink.rules file had some changes made.
Attached image shows the difference before and after the installation of MCU Expresso on ubuntu 22.04
The lines starting with # are comments, so no matter where they are or what they say, they do not affect the code.
Maybe you need to add the sample on the board first, and then, can works on CCID mode.
SDK_2_5_0_TWR-KL82Z72M\boards\twrkl82z72m\usb_examples\usb_device_ccid_smart_card\bm
Dear @CarlosGarabito
We have already loaded the suggested code on the board. The controller gets mounted as a USB device but just not as a CCID device. We also saw the link regarding the MK64 and none of the attachments are now available. The links on them seem to be broken.
Please advice on the next steps.
you can check this post too
https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-CCID-demo-on-MK64/ta-p/1118278
Hello @CarlosGarabito
Those were the only changes we saw in the document.
Can you please now point out what changes should be made in Linux as well as on the macOS to get the KL82 to get recognised as a CCID device please?
IF changes are to be made to the udev rules can you please provide the changes that need to be made so that we can make those and proceed forward with the rest of the development?
Your prompt response will be highly appreciated
There are no more changes in the rules.d, rather, could you tell me what and how you are doing for the CCID usage? Are you connecting directly to the USB? Or are you using some additional hardware, did you put the CCID example on the card? Anything additional to what is mentioned in this tread may help.
Although it is not from the card, maybe this Knowledge base page can help you a little more.
Dear @CarlosGarabito
Absolutely I can.
We have loaded the CCID code on the KL82 FRDM board and it compiled as well as got loaded without any errors. We, then, installed all packages that were mentioned on this link:
We connected the FRDM-KL82Z board to the Linux PC directly via the USB port and when we ran the lsusb command we are able to see the KL82 CCID device however we are then trying to load the pcsc scan command and the FRDM-KL82Z CCID device doesn't show up there.
On the same Linux PC we are able to mount and see the PN7462 development kit as suggested in the link above.
There is no smart card attached to the KL82Z during the entire testing. Such said, the PN7462 Development kit also did not have the Smart Card attached to it when we were testing that.
Hopefully this will get you better clarity on our situation.
We believe this is a challenge from some Linux driver level setting which we are missing which is possibly unique to the KL82Z and doesn't apply to the PN7462
Dear @CarlosGarabito
PFA the screenshots that will showcase the fact the the KL82Z FRDM board gets mounted but doesn't show up in the pcsc_scan command.
Let me know if there is any other information we can help with.
Noting down the steps here for further reference.
# sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev
# sudo apt-get install x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z1-dev
# sudo apt-get install libgl1-mesa-dev mingw32 tofrodos python-markdown libxml2-utils xsltproc uuid-dev:i386 liblzo2-dev:i386
# sudo apt-get install gcc-multilib g++-multilib
# sudo apt-get install subversion
# sudo apt-get install openssh-server openssh-client
# sudo apt-get install libudev-dev
# sudo apt-get install openssl
# sudo apt-get install libssl-dev
sudo apt-get update
sudo apt-get install libusb-1.0-0-dev
sudo apt-get install libusb-dev libusb++
sudo apt-get install libpcsclite1 libpcsclite-dev
sudo apt-get install -y opensc
Please refer the CCID Driver installation (Step 3 ) on the below link.
./configure
Make
Sudo make install
/etc/libccid_Info.plist.
Attaching our file for your reference.
sudo apt install pcsc-tools
sudo systemctl restart pcscd.socket
We have used FRDM-KL27Z development board for our trials.
I am informed that you have already been informed about this with a ticket, please follow the steps that my peer tell you in the ticket
Dear @CarlosGarabito
What works for the KL27Z doesn't work for the KL82. Can you please recheck? Also, can you please share the steps for getting the KL82 to work on macOS as well?
I am aware of the ticket but there the communication was regarding the KL27Z and not KL82.