I´m trying to make a new baremetal project using Freemaster (I´m new with this) for FRDM-KL25Z board. The example worked fine for me, but I coudn´t watch it running on Freemaster. I saw the source code but there is no libraries at all on it to communicate with Freemaster, so how the variables are displayed there? I also tryed to run a demo from FreeMASTER_Serial_Communication_Driver_V2.0 I have download at NXP, but some libraries (for example freemaster_example.h) are missing when I build the project thus getting a lot of errors.
Can you please help me to solve this problem?
Dear Jeremiah,
I have moved your message to a new thread, so it can be more easily located by other users.
A quick question before I start: would it be possible for you to start with a different board or processor? Honestly, the FRDM-KL25 support is quite outdated. I would recommend FRDM-K64F or some newer i.MX-RT or LPC parts, which are covered by the latest version of MCUXpresso SDK.
Here are some general comments.
Note that FreeMASTER can also connect to any NXP microcontroller over a JTAG without use of any communication driver. I think (not sure now) that the FDM-KL25Z board uses the OpenSDA interface with a P&E Micro firmware. In the FreeMASTER tool, open the Project/Options dialog, select a plug-in communication and use the "P&E Micro communication".
Then select the OpenSDA and specify the target processor:
Make sure your debugger is not connected as it would block the JTAG line.
Then use the FreeMASTER to connect to the board. Refer to user guide for more detail. Use the same Options dialog at the "MAP Files" tab to Load the application's ELF file and you should be able to define and monitor variables of your target application.
I know it might be quite brief for you if are just starting with FreeMASTER. I will give you more info later, but first please consider using a more recent microcontroller with a fresher SDK version for these early experiments.
Thanks,
Michal