2017-07-19 03:44 PM
I start a new project with smart card function generated by CubeMX with STM32F072RB. The smart card circuit is the same as previous project. And I have no problem with smart card function in previous project. I compared all the source code and finally realized the firmware is different version. The previous firmware version is 1.6.0 and smart card is working well. The new project using firmware 1.8.0 and smart card is not working with any command.
I compared the driver generated and smart card code changes a lot. Is there any where I can report this issue to CubeMx team?
2017-07-20 01:15 AM
Hello
Tien.Michael
You can report your issue in the STM32 forum, then ST moderators will take in charge to answer you or raiseyour feedback/issues internally to the appropriate team.
Your description of the issue is general. Would you mind giving a little more detail about your issue, so we can better explain it to our development team? Could you please precise your which CubeMx version are you using?
Regards
Imen
2017-07-20 04:05 PM
I create a github repo for this problem.
https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST.git
Problemhttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#software
Softwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#hardware
Hardwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#connection
Connectionhttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#answer-to-resetatr-of-at88sc0104c
Answer To Reset(ATR) of AT88SC0104Chttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#read-card-manufacture-code-command
Read Card Manufacture Code command Firmware STM32F0 CubeF0 version 1.6.0 (init commit)https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#firmware-stm32f0-cubef0-version-180
Firmware STM32F0 CubeF0 version 1.8.0STM32CubeF0 firmware version 1.8.0 generated code doesn't work for smart card command. But it was working at previous version 1.6.0. (I haven't tried 1.7.0)
('init commit' is firmware version 1.6.0. 'firmware 1.8.0' is for firmware version 1.8.0)
Problemhttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#software
Softwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#hardware
Hardwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#connection
Connectionhttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#answer-to-resetatr-of-at88sc0104c
Answer To Reset(ATR) of AT88SC0104Chttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#read-card-manufacture-code-command
Read Card Manufacture Code command Firmware STM32F0 CubeF0 version 1.6.0 (init commit)https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#firmware-stm32f0-cubef0-version-180
Firmware STM32F0 CubeF0 version 1.8.0https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#software
Softwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#hardware
Hardwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#connection
Connectionhttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#answer-to-resetatr-of-at88sc0104c
Answer To Reset(ATR) of AT88SC0104Chttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#read-card-manufacture-code-command
Read Card Manufacture Code command Firmware STM32F0 CubeF0 version 1.6.0 (init commit)https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#firmware-stm32f0-cubef0-version-180
Firmware STM32F0 CubeF0 version 1.8.0https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#software
Softwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#hardware
Hardwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#connection
Connectionhttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#answer-to-resetatr-of-at88sc0104c
Answer To Reset(ATR) of AT88SC0104Chttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#read-card-manufacture-code-command
Read Card Manufacture Code command Firmware STM32F0 CubeF0 version 1.6.0 (init commit)https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#firmware-stm32f0-cubef0-version-180
Firmware STM32F0 CubeF0 version 1.8.0STM32F072RBPIN NAMEST8024L
PB9(62)SCARD_RESETRSTIN (20)
PC13(2)SCARD_3_5V5V/~3V (3)
PC14(3)SCARD_OFF~OFF(23)
PC15(4)SCARD_VCC~CMDVCC(19)
PA9(42)SC_UART_TXI/OUC(26)
PA8(41)SC_UART_CKXTAL1(24)
Problemhttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#software
Softwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#hardware
Hardwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#connection
Connectionhttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#answer-to-resetatr-of-at88sc0104c
Answer To Reset(ATR) of AT88SC0104Chttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#read-card-manufacture-code-command
Read Card Manufacture Code command Firmware STM32F0 CubeF0 version 1.6.0 (init commit)https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#firmware-stm32f0-cubef0-version-180
Firmware STM32F0 CubeF0 version 1.8.0Both firmware version have no problem to receive ATR 0x3B, 0xB2, 0x11, 0x00, 0x10, 0x80, 0x00, 0x01.
Problemhttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#software
Softwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#hardware
Hardwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#connection
Connectionhttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#answer-to-resetatr-of-at88sc0104c
Answer To Reset(ATR) of AT88SC0104Chttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#read-card-manufacture-code-command
Read Card Manufacture Code command Firmware STM32F0 CubeF0 version 1.6.0 (init commit)https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#firmware-stm32f0-cubef0-version-180
Firmware STM32F0 CubeF0 version 1.8.0https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#software
Softwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#hardware
Hardwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#connection
Connectionhttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#answer-to-resetatr-of-at88sc0104c
Answer To Reset(ATR) of AT88SC0104Chttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#read-card-manufacture-code-command
Read Card Manufacture Code command Firmware STM32F0 CubeF0 version 1.6.0 (init commit)https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#firmware-stm32f0-cubef0-version-180
Firmware STM32F0 CubeF0 version 1.8.0https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST/blob/master/pics/fw1_6_0.png
Problemhttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#software
Softwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#hardware
Hardwarehttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#connection
Connectionhttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#answer-to-resetatr-of-at88sc0104c
Answer To Reset(ATR) of AT88SC0104Chttps://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#read-card-manufacture-code-command
Read Card Manufacture Code command Firmware STM32F0 CubeF0 version 1.6.0 (init commit)https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST#firmware-stm32f0-cubef0-version-180
Firmware STM32F0 CubeF0 version 1.8.0https://github.com/MichaelTien8901/STM32F0-Smartcard-TEST/blob/master/pics/fw1_8_0.png
The data bus is not the same with different version of firmware. Data in firmware 1.8.0 seems corrupt and data can't be seen in UART.
Customized Code
Only main.c has custom code for the test. Other files are generated by CubeMx.