cancel
Showing results for 
Search instead for 
Did you mean: 

How to build STSW-95HF001 source code on STM32CUBE IDE or Atollic TrueStudio

Kenadams
Associate II

Hey all,

It is a very basic question and I would appreciate some help on this. I am working with M24LR-Discovery Tool kit  and I want to detect my own tag with the RF Transceiver. I downloaded the  Software source code STSW-95HF002. and understood whats happening in it. 

Now, I edited the code as per my requirements and want to build it. I imported the Files in STM32CUME IDE (the downloaded source code does  not come with ".project"  file) and want to build the project and again program the controller. How can I do it? I am not able to find the appropriate build configuration for the project. I imported the project as File -> Import -> General -> Projects from Folder and Archive

How can I do the same for TrueStudio

Just some small backgrounfd: The tool kit comes with a MB1054B-CR95HF Transceiver which has a STM32F103C8T6 controller onboard and I just have to program that. Thanks in advance :)

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Brian TIDAL
ST Employee

Hi,

"What I want to do: Read Tag and Print data On windows console frequently" This can be achieved in different ways:

  • use X-NUCLEO-NFC03A1 (CR95HF) connected to an NUCLEO-L476RG MCU board and to use the ST25 embedded NFC library: the ndef_rw demo sends the UID of the tag and the NDEF content on a Virtual COM Port. Then you just need to run a serial terminal (e.g. hyperterminal) on your PC.
  • use the MB1054B RF transceiver board
    • install then the STSW-95HF001 package on your PC, run the CR95HF development software PC application go to the tools/script tools, insert the relevant script commands and click on loop on script
    • or use the CR95HF.DLL to develop your own program. See 
      AN3954 Developing your own Visual Basic or C/C++ application on a CR95HF demonstration board
       

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

6 REPLIES 6
Brian TIDAL
ST Employee

Hi,

Be aware that the M24LR-Discovery evaluation kit is in "Not Recommended for New Development" (NRND) state. TrueStudio  is as well in NRND state.

The RF transceiver board is based on CR95HF and it supports ISO14443A/B, Felica(TM) and ISO15693 technologies. The firmware of the board supports those technologies and the "CR95HF development software - 2.3.1" PC application provides tabs to demonstrate those technologies. Can you provide more information about the tag you would like to use (manufacturer and model) and about your use case?

Regarding your question about building projects:

  •  STSW-95HF001 contains the CR95HF development software PC application. It contains as well a DLL and its import lib to build your own PC application
  •  STSW-95HF002 contains source code examples to create a PC based application (Windows) to control the RF transceiver board. This cannot be compiled with STM32CubeIDE as the code is supposed to run on a PC not on an STM32. If you want to develop your own PC application I would rather recommend to use the ST25SDK (STSW-ST25SDK001) which provides transparent support for various readers (CR95HF, ST25R3911B and ST25R3916)
  • STSW-M24LR007 contains the binary and the source code for the RF transceiver board. This code runs on STM32F103. This package comes with a Keil MDK project. Can you provide more information about your need to modify this firmware?

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hey, thanks for you reply. The tag I am  detecting is ISO14443A standard manufactured by Nordic nRF52833. 

I want to develop a simple program to ping the tag and get the data and print it on console. Its a learning project for myself to get started with NFC. Hence, what SDK would you recommend? I would like to program the onboard STM32F103 using STM32CUBE IDE.

I am more concerned about the PIN configurations of on board MCU.

Also, can you tell me shortly how can I import it and build the project? That would be super helpful :)

best,

 

 

 

Brian TIDAL
ST Employee

Hi,

the MB1054B RF transceiver board is designed to work with an host PC over USB. Hence when using this board, the application runs on a PC and communicates with the RF transceiver board through a DLL over USB. It is not designed as a firmware development board. What you have seen inside the STSW-95HF002 package is C code and VB code that is intended to run on a PC through the CR95HF.DLL so definitively not using STM32CubeIDE and not requiring RF transceiver board firmware modification.

"I want to develop a simple program to ping the tag and get the data [...]." Where this program will run: on the Host PC or on the  RF transceiver board?

"[...]and print it on console." On which console? do you mean that your application will be a windows console application and that you will printf the data on the stdout?

"I would like to program the onboard STM32F103 using STM32CUBE IDE." the RF transceiver board does not have a embedded STlink and therefore an external STLink with a 20-pins connectors would be needed.

If your intention is to have a firmware application, I strongly recommend to use an X-NUCLEO-NFC03A1 (CR95HF) connected to an NUCLEO-L476RG MCU board and to use the ST25 embedded NFC library package that provides ready to use firmware demos for STM32CubeIDE.

Rgds

BT

 

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Okay now some things are getting clear to me. I will just clearly state what I was doing and what I want to achieve.

What I want to do: Read Tag and Print data On windows console frequently

How was I thinking to do it: Use  STSW-M24LR007 to program the on board MCU (which you said that it is not designed to for firmware development board) and take the data received from the tag and send serially to windows and print it on console. 

What I want to do: Receive data from the tag and put it on windows console. 

"Where this program will run: on the Host PC or on the  RF transceiver board?" -- where should it run according to you? It is confusing for me as I just started working on it for the first time.  Is running the program using the C code and CR95HF.DLL  is feasible. Because this makes my problem less complex. So is there any way I can modify the source.h and .cpp files in STSW-95HF002 package and compile to make an executable? Is this possible? 

So, how can I do it? I used the STSW-95HF002, but I want to add functions for ISO14443A and modifiy the main loop. But then, I need to compile it to get the executable right? How can I do it? Any ideas please? Am I going in the wrong direction? Some help would be really appreciated. :) 

best,

Ken

Brian TIDAL
ST Employee

Hi,

"What I want to do: Read Tag and Print data On windows console frequently" This can be achieved in different ways:

  • use X-NUCLEO-NFC03A1 (CR95HF) connected to an NUCLEO-L476RG MCU board and to use the ST25 embedded NFC library: the ndef_rw demo sends the UID of the tag and the NDEF content on a Virtual COM Port. Then you just need to run a serial terminal (e.g. hyperterminal) on your PC.
  • use the MB1054B RF transceiver board
    • install then the STSW-95HF001 package on your PC, run the CR95HF development software PC application go to the tools/script tools, insert the relevant script commands and click on loop on script
    • or use the CR95HF.DLL to develop your own program. See 
      AN3954 Developing your own Visual Basic or C/C++ application on a CR95HF demonstration board
       

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Kenadams
Associate II

Thanks. I will tryout these options. :)