How to use old project with Mikromedia 4

Cross-platform IDE for the rapid development of applications for the embedded world, available on Windows, Linux, and macOS.
Post Reply
Author
Message
rcoos
Posts: 5
Joined: 28 Jun 2021 13:58

How to use old project with Mikromedia 4

#1 Post by rcoos » 17 Oct 2022 10:11

Hi,
I just upgraded to NEcto V2.2 and i want to use my old project (Necto V1.8) but cannot as I need a CMakeLists. I have seen the post when it is for a click board but what about a mikromedia board?
Best,
Richard
Here is my memake :

Code: Select all

:: Necto Designer project template by mikroE.

type: executable
target: Mikromedia_uPulse

headers: {
    main_screen.h
    screen_2.h
    screen_3.h
    main.h
    screen_4.h
}

sources: {
    main.c
    main_screen.c
    screen_2.c
    screen_3.c
    screen_4.c
}

screens: {
    main_screen.mscr
    screen_2.mscr
    screen_3.mscr
    screen_4.mscr
}

depends: {
    MikroC.Core
    Components.TftBoard8
#if MSDK_TFT_TP == "__TP_FT5XX6__"
    MikroSDK.Ft5xx6
#elif MSDK_TFT_TP == "__TP_STMPE811__"
    MikroSDK.Stmpe811
#elif MSDK_TFT_TP == "__TP_TSC2003__"
    MikroSDK.Tsc2003
#endif
    MikroSDK.GraphicLibrary
    MikroSDK.TouchPanel
    MikroSDK.Board
    MikroSDK.VisualTft
    MikroSDK.Driver.PWM
    MikroSDK.Conversions
    MikroSDK.Driver.ADC
    Click.OneShot
    MikroSDK.mikroSDKVersion
}

resources: {
    resource.mres
}

others: {
}


User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: How to use old project with Mikromedia 4

#2 Post by IvanJeremic » 09 Dec 2022 08:38

Hi,

Sorry for the delay in my reply.

You can use your old mikromedia project by making a New Designer Project.
NP.png
NP.png (3.36 KiB) Viewed 1250 times
de.png
de.png (7.18 KiB) Viewed 1250 times
After that make a setup for your mikromedia, and your cmake will be generated.

You can now copy your code into this new project, if you have more screens you can add them by right clicking on screens and clicking on New -> Screens, Cmake will generate everything needed by itself when you add the library..
NS.png
NS.png (6.7 KiB) Viewed 1250 times
You can also add libraries that your old project used in the library manager, Cmake will generate everything needed by itself when you add the library.
LIB.png
LIB.png (15.54 KiB) Viewed 1250 times
Also note if you want to add a click board into your project, just find the click board in the library manager and add it (if there is no library for your click board check if it is in the package manager first and install it there, that should add the library to the library manager). And when you do that you will need to delete/comment this line of code "set(PROJECT_TYPE "mikrosdk" CACHE STRING "" FORCE)" in that click boards Cmake.
tester.png
tester.png (3.78 KiB) Viewed 1250 times
comment.png
comment.png (13.72 KiB) Viewed 1250 times
Again, sorry for the late reply and regards,

Ivan.

Post Reply

Return to “IDE”