unable to program Pic18f46k42

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
User avatar
stevebeale
Posts: 12
Joined: Tue Jul 18, 2017 11:50 pm
Location: Licolnshire
Has thanked: 3 times
Been thanked: 2 times
Contact:

unable to program Pic18f46k42

Post by stevebeale »

hi all has any one used the Pic18f46k42, if so did you find any issues, if having a problem this is what im getting it could be me i am new to programming
i have tried loading a demo code via mplabx ok.
i hope i havent missed sometihing.. :oops:

Code: Select all

-----------------------------------------------------------------------------------------------
Target folder: C:\FLOWFI~1\PIC16F~2
Source name:   C:\flowfiles\pic16f46k42\pic18f46k42.fcfx
Title:         
Description:   
Device:        PIC.18F.18LF46K42
Generated by:  Flowcode v8.0.0.6
Date:          Monday, June 25, 2018 05:51:23
Users:         1
Registered to: stevebeale
License key:****************
   NOT FOR COMMERCIAL USE
http://www.matrixtsl.com
Launching the compiler...
C:\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat  18LF46K42 "C:\FLOWFI~1\PIC16F~2\" "pic18f46k42"

C:\FLOWFI~1\PIC16F~2>C:\Flowcode\Common\COMPIL~1\pic\batch\..\bin\xc8.exe --chip=18LF46K42  "pic18f46k42.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32 
Microchip MPLAB XC8 C Compiler (PRO Mode) V1.45
Build date: Nov 15 2017
Part Support Version: 1.45
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration

using updated 32-bit floating-point libraries; improved accuracy might increase code size
pic18f46k42.c: 93: (2016) interrupt function "myisr" does not service any interrupt sources
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c: 76: (1090) variable "_FCI_TMP_STR" is not used (warning)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c: 77: (1090) variable "_FCI_TMP_INT" is not used (warning)
Non line specific message: (2020) IRQ 0 (SWINT) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 1 (HLVD) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 2 (OSF) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 3 (CSW) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 4 (NVM) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 5 (SCAN) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 6 (CRC) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 7 (IOC) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 8 (INT0) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 9 (ZCD) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 10 (AD) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 11 (ADT) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 12 (CMP1) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 13 (SMT1) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 14 (SMT1PRA) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 15 (SMT1PRW) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 16 (DMA1SCNT) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 17 (DMA1DCNT) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 18 (DMA1OR) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 19 (DMA1A) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 20 (SPI1RX) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 21 (SPI1TX) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 22 (SPI1) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 23 (I2C1RX) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 24 (I2C1TX) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 25 (I2C1) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 26 (I2C1E) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 27 (U1RX) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 28 (U1TX) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 29 (U1E) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 30 (U1) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 31 (TMR0) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 32 (TMR1) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 33 (TMR1G) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 34 (TMR2) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 35 (CCP1) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 37 (NCO1) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 38 (CWG1) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 39 (CLC1) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 40 (INT1) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 41 (CMP2) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 42 (DMA2SCNT) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 43 (DMA2DCNT) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 44 (DMA2OR) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 45 (DMA2A) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 46 (I2C2RX) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 47 (I2C2TX) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 48 (I2C2) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 49 (I2C2E) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 50 (U2RX) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 51 (U2TX) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 52 (U2E) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 53 (U2) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 54 (TMR3) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 55 (TMR3G) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 56 (TMR4) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 57 (CCP2) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 59 (CWG2) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 60 (CLC2) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 61 (INT2) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 70 (TMR5) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 71 (TMR5G) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 72 (TMR6) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 73 (CCP3) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 74 (CWG3) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 75 (CLC3) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 80 (CCP4) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
Non line specific message: (2020) IRQ 81 (CLC4) in vector table @ 0x8 is unassigned, will be programmed with the address of a RESET instruction (warning)
(908) exit status = 1
(908) exit status = 1

Error returned from [xc8.exe]

C:\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat reported error code 1



FINISHED
Last edited by medelec35 on Wed Jun 27, 2018 5:59 pm, edited 1 time in total.
Reason: Placed compiler message within code tags
Steve Beale

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: unable to program Pic18f46k42

Post by medelec35 »

Hi Steve,
To help us you will need to post your flowchart and also place any compiler messages within Code tags

Code: Select all

like this
So you can get your flowchart to compile, just select Build, project options.
Make sure clock speed is correctly set, then select Configure tab.
Scroll down to Multi Vector Table and change from Multi Vector to single Vector interrupts.

Before going too far with project development, I always start off with 1 sec flasher
If that does not work with correct timings then your project will not work.

Martin
Martin

User avatar
stevebeale
Posts: 12
Joined: Tue Jul 18, 2017 11:50 pm
Location: Licolnshire
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: unable to program Pic18f46k42

Post by stevebeale »

hi Martin
wow you know your stuff, right on the money. the interupt setting, i missed that, but its my first time playing with interupts
thanks so much where would us oldens be without you guys,,
Steve Beale

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: unable to program Pic18f46k42

Post by medelec35 »

Hi Steve,
You're welcome.
Was not really your fault as configuration settings for 18FxxK42 should have been preset to work.
The setting I mentioned was missed which has now been corrected and FC8 has been updated with correct config settings.
So when you start your next project, so long as you have updated FC8, should no longer be an issue.
Martin

Post Reply