I was trying to configure the Flash module of MKE18F512VLL16 MCU to be used as an EEPROM. I used the NXP SDK, but I'm getting the following dependency errors although I selected to auto resolve all pack requirements while including the drivers in the project. A lot of macros seem to be undefined.
Solved! Go to Solution.
Hi,
If you use keil to choose the peripheral, the code will use the sdk it downloaded by keil. So this operation will cause some problems. I recommend you use our mcuxpresso. Use this ide to configure your peripheral.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi,
You should download the sdk in https://mcuxpresso.nxp.com/en/select.
In the directory 'SDK_2.6.0_MKE18F256xxx16\boards\twrke18f\driver_examples\flash\flexnvm_eeprom\mdk', you will find the eeprom example.
The sdk downloaded by keil may have some problems.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi @nxf56274 ,
Thanks for the reply.
I've downloaded the SDK (SDK_2.8.0_MKE18F512xxx16\boards\twrke18f\driver_examples\flash\flexnvm_eeprom\mdk) and the example is compiling without errors.
This is how I've added the NXP SDK Peripheral Driver to my project through Software Component Selector tool in Keil MDK.
How to use the newly downloaded peripheral driver (SDK_2.8.0_MKE18F512xxx16) in my project?
Hi,
If you use keil to choose the peripheral, the code will use the sdk it downloaded by keil. So this operation will cause some problems. I recommend you use our mcuxpresso. Use this ide to configure your peripheral.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
I switched to MCUXpresso for further development and manually ported my source files to a MCUXpresso project. SDK Drivers are working well now.
Hi @nxf56274,
The problem is that I've a complete working firmware for a product developed using Keil. Now I've to add just the EEPROM functionality to this. That's the reason why I'm sticking to keil MDK.
Is there any way to port Keil projects to MCUexpresso projects? Can we use ULink 2 debugger with MCUexpresso?
Hi,
You just need add the necessary file to your keil project. In the sdk, copy the file you need under the directory 'drivers' to your own project. In your own project, when the sdk report some error like lacking of the definition, you can copy this definition and search this definition in our sdk. Then you will know what file you lack of.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------