Symbol not previously defined - Another assemble error


Today 09:12
Forum: Proton Plus Compiler v3
Starter: GAMBOA
Views: 0
Replies: 3
Today 05:24
Forum: Proton Plus Compiler v3
Starter: tumbleweed
Views: 0
Replies: 19
Today 05:18
Forum: Absolute Beginners Section
Starter: amod
Views: 0
Replies: 61
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Junior Member mjturner's Avatar
    Join Date
    Dec 2003
    Posts
    88
    Thumbs Up
    Received: 14
    Given: 4
    Total Downloaded
    544.85 MB

    0 Not allowed!

    Default Symbol not previously defined - Another assemble error

    I'm getting a little frustrated - I'm unable to compile even a simple program these days using Proton.

    Code:
    Device = 16F15323
    
    
    Config1 FEXTOSC_ECH, RSTOSC_HFINT32, CLKOUTEN_OFF, CSWEN_ON, FCMEN_ON
    Config2 MCLRE_ON, PWRTE_OFF, LPBOREN_OFF, BOREN_ON, BORV_LO, ZCD_OFF, PPS1WAY_ON, STVREN_ON
    Config3 WDTCPS_WDTCPS_31, WDTE_ON, WDTCWS_WDTCWS_7, WDTCCS_SC
    Config4 BBSIZE_BB512, BBEN_OFF, SAFEN_OFF, WRTAPP_OFF, WRTB_OFF, WRTC_OFF, WRTSAF_OFF, LVP_ON
    Config5 CP_OFF
    
    
    Xtal=32
    
    
    Declare Hserout_pin PORTA.0
    Declare hserin_pin PORTA.1
    Declare Hserial_Baud 2400
    
    
    Dim b As Byte
    
    
    LoopPoint:
    HSerIn [b]
    HSerOut [b]
    GoTo LoopPoint
    When I try to compile this I get the error @Symbol not previously defined (_PPS_FN_TX).

    Is there any way I can fix these errors myself? It seems every time I try and use any serial ports and other hardware peripherals via Proton built in commands, it never works If it just involved me editing a file due to some port name changes, then I don't mind doing so. But as best I can tell it is embedded within the compiler. I'm using 3.6.2.7.

    I've also tried it without mentioning the pins involved, but it still gives the error around the PPS symbol. And sorry for the complainy post, just the last few times I've tried to write something using Proton I've had assemble errors, and simply hardware peripherals not working using the compiler built-in commands...
    Last edited by mjturner; 11th January 2019 at 16:41.

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,054
    Thumbs Up
    Received: 188
    Given: 169
    Total Downloaded
    4.44 GB

    1 Not allowed!

    Default Re: Symbol not previously defined - Another assemble error

    in some cases you can just create a symbol in your program with the correct value ie "Symbol _PPS_FN_TX = x0F" (check that, I'm not familar with this device) or sometimes where Microchip have changed a long established name as in the case of 18F27K42 where I had to add a duplicate ie "Symbol INTCON = INTCON0".
    George.

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    Fanatical Contributor top204's Avatar
    Join Date
    Feb 2002
    Posts
    3,247
    Thumbs Up
    Received: 375
    Given: 133
    Total Downloaded
    1.58 GB

    1 Not allowed!

    Default Re: Symbol not previously defined - Another assemble error

    With notepad only, open the device's PPI file, located here:

    C:\Program Files (x86)\ProtonIDE\PDS\Includes\PPI\P16F15323.ppi

    Find the PPS section, as show below:

    Code:
    Output PPS Definitions
    [PPS_START]
    _PPS_Fn_SCK1 EQU 21
    _PPS_Fn_SCL1 EQU 21
    _PPS_Fn_SDA1 EQU 22
    _PPS_Fn_CLKR EQU 27
    _PPS_Fn_NCO EQU 26
    _PPS_Fn_TMR0 EQU 25
    _PPS_Fn_SDO1 EQU 22
    _PPS_Fn_C2OUT EQU 20
    _PPS_Fn_C1OUT EQU 19
    _PPS_Fn_PWM6OUT EQU 14
    _PPS_Fn_PWM5OUT EQU 13
    _PPS_Fn_PWM4OUT EQU 12
    _PPS_Fn_PWM3OUT EQU 11
    _PPS_Fn_CCP2 EQU 10
    _PPS_Fn_CCP1 EQU 9
    _PPS_Fn_CWG1D EQU 8
    _PPS_Fn_CWG1C EQU 7
    _PPS_Fn_CWG1B EQU 6
    _PPS_Fn_CWG1A EQU 5
    _PPS_Fn_CLC4OUT EQU 4
    _PPS_Fn_CLC3OUT EQU 3
    _PPS_Fn_CLC2OUT EQU 2
    _PPS_Fn_CLC1OUT EQU 1
    _PPS_Fn_DT1 EQU 16
    _PPS_Fn_CK1 EQU 15
    _PPS_Fn_TX1 EQU 15
    [PPS_END]
    and add to it:

    Code:
    _PPS_Fn_TX EQU 15
    So it now looks like:
    Code:
    Output PPS Definitions
    [PPS_START]
    _PPS_Fn_SCK1 EQU 21
    _PPS_Fn_SCL1 EQU 21
    _PPS_Fn_SDA1 EQU 22
    _PPS_Fn_CLKR EQU 27
    _PPS_Fn_NCO EQU 26
    _PPS_Fn_TMR0 EQU 25
    _PPS_Fn_SDO1 EQU 22
    _PPS_Fn_C2OUT EQU 20
    _PPS_Fn_C1OUT EQU 19
    _PPS_Fn_PWM6OUT EQU 14
    _PPS_Fn_PWM5OUT EQU 13
    _PPS_Fn_PWM4OUT EQU 12
    _PPS_Fn_PWM3OUT EQU 11
    _PPS_Fn_CCP2 EQU 10
    _PPS_Fn_CCP1 EQU 9
    _PPS_Fn_CWG1D EQU 8
    _PPS_Fn_CWG1C EQU 7
    _PPS_Fn_CWG1B EQU 6
    _PPS_Fn_CWG1A EQU 5
    _PPS_Fn_CLC4OUT EQU 4
    _PPS_Fn_CLC3OUT EQU 3
    _PPS_Fn_CLC2OUT EQU 2
    _PPS_Fn_CLC1OUT EQU 1
    _PPS_Fn_DT1 EQU 16
    _PPS_Fn_CK1 EQU 15
    _PPS_Fn_TX1 EQU 15
    _PPS_Fn_TX EQU 15
    [PPS_END]
    Save the PPI file, overwriting the existing file.

    This is because, again, Microchip have changed names, so the, semi automatic, PPI file creator missed it.

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  7. #4
    Junior Member mjturner's Avatar
    Join Date
    Dec 2003
    Posts
    88
    Thumbs Up
    Received: 14
    Given: 4
    Total Downloaded
    544.85 MB

    0 Not allowed!

    Default Re: Symbol not previously defined - Another assemble error

    Thank you! Yes editing the PPI file and adding the entry has allowed it to compile. I've now tested it and can confirm the hardware serial port is working via a simple "echo" loop.

    I need to go back and see the other PIC I was using before that had two hardware serial ports which I couldn't get working.

    Thanks for the fast response, much appreciated.

  8. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Symbol not previously defined i_PPS_FN_RX2
    By gtv_pic in forum Proton Plus Compiler v3
    Replies: 20
    Last Post: 18th March 2019, 14:57
  2. Replies: 5
    Last Post: 4th February 2018, 21:40
  3. Symbol not previously defined (PP3) error
    By David Snook in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 24th February 2017, 15:58
  4. PPRINT ( Symbol Not previously defined)
    By Mohammed Tayem in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 2nd December 2004, 18:26

Members who have read this thread since 8th July 2019, 01:32 : 0

Actions :  (Set Date)  (Clear Date)

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts