Re-compile _main file

General discussion on Visual TFT Software.
Post Reply
Author
Message
jmusselman64
Posts: 31
Joined: 15 May 2018 21:05

Re-compile _main file

#1 Post by jmusselman64 » 10 Jan 2022 05:13

I've been trying to figure this out for a couple days, and I'm stuck.

Using dsPIC33EP512MU814 in MikroBasic

Somehow my "F2C35_.main.mbas" program is not compiling. It's just stuck on assembling to the basic 'main' file structure.

I'll include both the F2C35_main.mbas and the assembly output so you can see the differences.

F2C35_MAIN.MBAS file:

Code: Select all

' *
' * Project name:
'     F2C35.mbpds
' * Generated by:
'     Visual TFT
' * Date of creation
'     1/9/2022
' * Test configuration:
'     MCU:             P33EP512MU814
'                      http://www.microchip.com/wwwproducts/Devices.aspx?product=dsPIC33EP512MU814
'     Dev.Board:       F2C35_28TFT
'     Oscillator:      140000000 Hz
'     SW:              mikroBasic PRO for dsPIC
'                      http://www.mikroe.com/mikrobasic/dspic/
' *

program F2C35_main

'sub procedure InitDebugUART(dim baudrate as longword) external
'sub procedure InitializeDebugPins() external
  main:
    SetHandlerTableSize(400)           'undocumented ..mikroBasic PRO for PIC generates handler table if you're using function pointers in your code.
    Start_TP()

    #ifdef DEBUG_OBJ
    InitializeDebugPins()              'Prereq:none / Re-assign unused pins for debug use
    #endif

    MapIoPins()                        'Prereq:none / Initialize all on-chip IO pins
    InitDebugUART(1500000)             'Prereq:none / Initialize the debug UART
    ClearVars()                        'clear all system variables and buffers
    InitSystemVars()                   'Prereq:InitNVRAM,StartTP /  Initialize system and common variables

    #ifdef USE_TIMESTAMP
    Init_Timestamp()                   'Prereq:none / Configure timestamp timer and start it
    F2C_time = time
    #endif
                                        '(Current_F2C_mode gets set here from STARTUP constants..)
    #ifdef USEDMX
    'Init_DMX()                         'Prereq:none / Start DMX system
'    DMX_Start_RX()
    #endif

    'Setup USB connection:
    '  Set_USB_Clock()
    '  USB_Init_desc()
    '  HID_Enable(@readbuff,@writebuff)

    while TRUE
      Check_TP()
      delay_ms(10)
        If SetupFlag = 0 then                   'skip all this if in setup mode
           Check_NewFixture()                      'See if fixture selection has changed, and handle it

            Check_LogMode()                         'change it if the user does

            UpdateF2CScreens()                      'Do DMX indicator on screen

            Check_SetTime()                         'Set timestamp time

            MainFixtTask_ptr^                       'Do any task the fixure needs

        end if

'       ManualOld = Manual                      'Copy 'Manual' structure
    wend
  end.
ASSEMBLED OUTPUT:

Code: Select all

_main:
        MOV        #2048, W15
        MOV        #6142, W0
        MOV        WREG, 32
        MOV        #1, W0
        MOV        WREG, 50
        MOV        #4, W0
        IOR        68

;F2C35_main.mbas,22 ::                 main:
;F2C35_main.mbas,23 ::                 Start_TP()
        CALL        _Start_TP
;F2C35_main.mbas,25 ::                 while TRUE
L__main2:
;F2C35_main.mbas,26 ::                 Check_TP()
        CALL        _Check_TP
;F2C35_main.mbas,27 ::                 wend
        GOTO        L__main2
L_end_main:
L__main_end_loop:
        BRA        L__main_end_loop
; end of _main

I've tried rebuild all, making small changes in 'Edit Projects' to force a rebuild, changes to the VTFT screen, adding/removing libraries...nothing seems to change it.

It's a large program with many libraries and has been working fine, till now.

Any help is appreciated! Thanks!

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Re-compile _main file

#2 Post by filip » 12 Jan 2022 14:56

Hi,

Can you please attach the minimal project so I can open it and compile in compiler ?

Regards,
Filip.

Post Reply

Return to “Visual TFT General”