Hot!Is the data or program memory missing?

Author
Neraildes
Junior Member
  • Total Posts : 98
  • Reward points : 0
  • Joined: 2017/10/11 07:13:25
  • Location: 0
  • Status: offline
2018/11/07 03:26:43 (permalink)
0

Is the data or program memory missing?

Hi guys
Look at a compiler output. Help me interpret. Is the data or program memory missing?

 
 
I2C.c:17:: warning: (520) function "_I2C_Slave_Init" is never called
Liofilizador Placa Mae.c:595:: warning: (520) function "_Send_To_PC" is never called
Liofilizador Placa Mae.c:868:: warning: (520) function "_Comando_Protocolo_Proculus" is never called
Liofilizador Placa Mae.c:955:: warning: (520) function "_Comando_Protocolo_Serial" is never called
adc.c:12:: warning: (520) function "_My_ADC_Read" is never called
eeprom.c:94:: warning: (520) function "_EEPROM_Write_Float" is never called
eeprom.c:106:: warning: (520) function "_EEPROM_Read_Float" is never called
eeprom.c:123:: warning: (520) function "_EEPROM_Write_Double" is never called
eeprom.c:136:: warning: (520) function "_EEPROM_Read_Double" is never called
eeprom.c:154:: warning: (520) function "_EEPROM_Write_ULong24" is never called
eeprom.c:169:: warning: (520) function "_EEPROM_Read_ULong24" is never called
eeprom.c:184:: warning: (520) function "_EEPROM_Write_Long32" is never called
eeprom.c:198:: warning: (520) function "_EEPROM_Read_Long32" is never called
ntc10k.c:5:: warning: (520) function "_NTC10K_Read_Temperature" is never called
proculus.c:24:: warning: (520) function "_PROCULUS_Control_Register_Read" is never called
proculus.c:97:: warning: (520) function "_PROCULUS_VP_Write_Byte" is never called
proculus.c:103:: warning: (520) function "_PROCULUS_VP_Read_Byte" is never called
proculus.c:152:: warning: (520) function "_PROCULUS_VP_Write_Long32" is never called
proculus.c:164:: warning: (520) function "_PROCULUS_VP_Read_Long32" is never called
proculus.c:187:: warning: (520) function "_PROCULUS_VP_Write_Float24" is never called
proculus.c:196:: warning: (520) function "_PROCULUS_VP_Read_Float24" is never called
proculus.c:204:: warning: (520) function "_PROCULUS_VP_Write_Float32" is never called
proculus.c:214:: warning: (520) function "_PROCULUS_VP_Read_Float32" is never called
proculus.c:226:: warning: (520) function "_PROCULUS_VP_Write_Double24" is never called
proculus.c:236:: warning: (520) function "_PROCULUS_VP_Read_Double24" is never called
proculus.c:245:: warning: (520) function "_PROCULUS_VP_Write_Double32" is never called
proculus.c:255:: warning: (520) function "_PROCULUS_VP_Read_Double32" is never called
proculus.c:278:: warning: (520) function "_PROCULUS_Read_Version" is never called
proculus.c:292:: warning: (520) function "_PROCULUS_Reset" is never called
pt100.c:5:: warning: (520) function "_PT100_Read_Temperature" is never called
usart.c:104:: warning: (520) function "_USART_putsc" is never called
usart.c:118:: warning: (520) function "_USART_put_buffer" is never called
usart.c:134:: warning: (520) function "_USART_input_buffer" is never called
usart.c:159:: warning: (520) function "_USART_put_sint" is never called
usart.c:165:: warning: (520) function "_USART_put_long" is never called
usart.c:173:: warning: (520) function "_USART_put_float24" is never called
Voltagem.c:6:: warning: (520) function "_VOLTAGEM_read" is never called
EEPROM_24C512.c:7:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_Start)
EEPROM_24C512.c:12:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_Stop)
EEPROM_24C512.c:13:: warning: (1518) direct function call made with an incomplete prototype (Delay_EEPROM_24C512)
EEPROM_24C512.c:19:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_Start)
EEPROM_24C512.c:23:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_RepeatedStart)
EEPROM_24C512.c:26:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_Stop)
EEPROM_24C512.c:27:: warning: (1518) direct function call made with an incomplete prototype (Delay_EEPROM_24C512)
EEPROM_24C512.c:33:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_Start)
EEPROM_24C512.c:39:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_Stop)
EEPROM_24C512.c:40:: warning: (1518) direct function call made with an incomplete prototype (Delay_EEPROM_24C512)
EEPROM_24C512.c:45:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_Start)
EEPROM_24C512.c:49:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_RepeatedStart)
EEPROM_24C512.c:53:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_Stop)
EEPROM_24C512.c:54:: warning: (1518) direct function call made with an incomplete prototype (Delay_EEPROM_24C512)
EEPROM_24C512.c:61:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_Start)
EEPROM_24C512.c:70:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_Stop)
EEPROM_24C512.c:71:: warning: (1518) direct function call made with an incomplete prototype (Delay_EEPROM_24C512)
EEPROM_24C512.c:77:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_Start)
EEPROM_24C512.c:81:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_RepeatedStart)
EEPROM_24C512.c:89:: warning: (1518) direct function call made with an incomplete prototype (I2C_Master_Stop)
EEPROM_24C512.c:90:: warning: (1518) direct function call made with an incomplete prototype (Delay_EEPROM_24C512)
Liofilizador Placa Mae.c:260:: warning: (1518) direct function call made with an incomplete prototype (Criar_Indices_no_Banco_de_Dados)
Liofilizador Placa Mae.c:279:: warning: (1518) direct function call made with an incomplete prototype (PROCULUS_Get_Page)
Liofilizador Placa Mae.c:358:: warning: (1518) direct function call made with an incomplete prototype (Data_Slave_Upload)
Liofilizador Placa Mae.c:370:: warning: (1518) direct function call made with an incomplete prototype (PROCULUS_OK)
Liofilizador Placa Mae.c:393:: warning: (1518) direct function call made with an incomplete prototype (PROCULUS_OK)
Liofilizador Placa Mae.c:615:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:619:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:623:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:628:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:633:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:638:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:646:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:660:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:671:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:689:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:705:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:719:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:803:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:809:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:816:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:824:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:846:: warning: (1518) direct function call made with an incomplete prototype (SEND_REPLY_OK)
Liofilizador Placa Mae.c:911:: warning: (1518) direct function call made with an incomplete prototype (PROCULUS_OK)
:0:: error: (1347) can't find 0x4A words (0x4a withtotal) for psect "text64" in class "CODE" (largest unused contiguous range 0x3A)
Non line specific message::: advisory: (1493) updated 32-bit floating-point routines might trigger "can't find space" messages appearing after updating to this release; consider using the smaller 24-bit floating-point types
:0:: error: (1347) can't find 0x47 words (0x47 withtotal) for psect "text30" in class "CODE" (largest unused contiguous range 0x3A)
:0:: error: (1347) can't find 0x43 words (0x43 withtotal) for psect "text15" in class "CODE" (largest unused contiguous range 0x3A)
:0:: error: (1347) can't find 0x40 words (0x40 withtotal) for psect "text6" in class "CODE" (largest unused contiguous range 0x3A)
:0:: error: (1347) can't find 0x3E words (0x3e withtotal) for psect "text9" in class "CODE" (largest unused contiguous range 0x3A)
:0:: error: (1347) can't find 0x3E words (0x3e withtotal) for psect "text54" in class "CODE" (largest unused contiguous range 0x3A)
:0:: error: (1347) can't find 0x37 words (0x37 withtotal) for psect "text62" in class "CODE" (largest unused contiguous range 0x25)
:0:: error: (1347) can't find 0x36 words (0x36 withtotal) for psect "text12" in class "CODE" (largest unused contiguous range 0x25)
:0:: error: (1347) can't find 0x32 words (0x32 withtotal) for psect "text42" in class "CODE" (largest unused contiguous range 0x25)
:0:: error: (1347) can't find 0x30 words (0x30 withtotal) for psect "text13" in class "CODE" (largest unused contiguous range 0x25)
:0:: error: (1347) can't find 0x2C words (0x2c withtotal) for psect "text23" in class "CODE" (largest unused contiguous range 0x25)
:0:: error: (1347) can't find 0x2C words (0x2c withtotal) for psect "text63" in class "CODE" (largest unused contiguous range 0x25)
:0:: error: (1347) can't find 0x2B words (0x2b withtotal) for psect "text48" in class "CODE" (largest unused contiguous range 0x25)
:0:: error: (1347) can't find 0x2B words (0x2b withtotal) for psect "text65" in class "CODE" (largest unused contiguous range 0x25)
:0:: error: (1347) can't find 0x2A words (0x2a withtotal) for psect "text50" in class "CODE" (largest unused contiguous range 0x25)
:0:: error: (1347) can't find 0x28 words (0x28 withtotal) for psect "text28" in class "CODE" (largest unused contiguous range 0x25)
:0:: error: (1347) can't find 0x27 words (0x27 withtotal) for psect "text31" in class "CODE" (largest unused contiguous range 0x25)
:0:: error: (1347) can't find 0x25 words (0x25 withtotal) for psect "text51" in class "CODE" (largest unused contiguous range 0x4)
:0:: error: (1347) can't find 0x25 words (0x25 withtotal) for psect "text59" in class "CODE" (largest unused contiguous range 0x4)
:0:: error: (1347) can't find 0x20 words (0x20 withtotal) for psect "text5" in class "CODE" (largest unused contiguous range 0x4)
:0:: error: (1347) can't find 0x20 words (0x20 withtotal) for psect "text22" in class "CODE" (largest unused contiguous range 0x4)
:0:: error: (1347) can't find 0x20 words (0x20 withtotal) for psect "text24" in class "CODE" (largest unused contiguous range 0x4)
:0:: error: (1347) can't find 0x1B words (0x1b withtotal) for psect "text61" in class "CODE" (largest unused contiguous range 0x4)
:0:: error: (1347) can't find 0x19 words (0x19 withtotal) for psect "text27" in class "CODE" (largest unused contiguous range 0x4)
:0:: error: (1347) can't find 0x17 words (0x17 withtotal) for psect "text56" in class "CODE" (largest unused contiguous range 0x4)
:0:: error: (1347) can't find 0x14 words (0x14 withtotal) for psect "idataBANK2" in class "CODE" (largest unused contiguous range 0x4)
:0:: error: (1347) can't find 0x14 words (0x14 withtotal) for psect "text52" in class "CODE" (largest unused contiguous range 0x4)
:0:: error: (1347) can't find 0x13 words (0x13 withtotal) for psect "inittext" in class "CODE" (largest unused contiguous range 0x4)
:0:: error: (1347) can't find 0x11 words (0x11 withtotal) for psect "text55" in class "CODE" (largest unused contiguous range 0x4)
:0:: error: (1347) can't find 0xF words (0xf withtotal) for psect "text17" in class "CODE" (largest unused contiguous range 0x4)
:0:: advisory: (1) too many errors (31)
(908) exit status = 1
make[2]: *** [dist/default/production/Liofilizador_-_Placa_Mae_-_MPLAB.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
nbproject/Makefile-default.mk:289: recipe for target 'dist/default/production/Liofilizador_-_Placa_Mae_-_MPLAB.X.production.hex' failed
make[2]: Leaving directory 'C:/Dropbox Externo/JJ Cientifica/Lifilizador/03-Firmware/Liofilizador - Placa Mae - MPLAB.X'
nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Dropbox Externo/JJ Cientifica/Lifilizador/03-Firmware/Liofilizador - Placa Mae - MPLAB.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

BUILD FAILED (exit value 2, total time: 15s)
#1

10 Replies Related Threads

    qhb
    Superb Member
    • Total Posts : 7543
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: online
    Re: Is the data or program memory missing? 2018/11/07 04:32:01 (permalink)
    +1 (1)
    Well your main problem is that you have run out of code space.
    You never mention what PIC you are trying to build for.
     
    post edited by qhb - 2018/11/07 04:33:47
    #2
    du00000001
    Just Some Member
    • Total Posts : 2180
    • Reward points : 0
    • Joined: 2016/05/03 13:52:42
    • Location: Germany
    • Status: offline
    Re: Is the data or program memory missing? 2018/11/07 04:40:51 (permalink)
    +1 (1)
    Throw all routines out that are reported "never called" and/or swith to a µC of the same family with more memory.

    PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
    #3
    Neraildes
    Junior Member
    • Total Posts : 98
    • Reward points : 0
    • Joined: 2017/10/11 07:13:25
    • Location: 0
    • Status: offline
    Re: Is the data or program memory missing? 2018/11/07 05:37:44 (permalink)
    0
    Well your main problem is that you have run out of code space.
    You never mention what PIC you are trying to build for.
     
     
    I'm using PIC16F887. Can you tell me another pic with the same pinout as this, but with more memory? This one I'm using has 44 pins.
    post edited by Neraildes - 2018/11/07 05:44:02
    #4
    Neraildes
    Junior Member
    • Total Posts : 98
    • Reward points : 0
    • Joined: 2017/10/11 07:13:25
    • Location: 0
    • Status: offline
    Re: Is the data or program memory missing? 2018/11/07 05:41:24 (permalink)
    0
    qhb
    Well your main problem is that you have run out of code space.
    You never mention what PIC you are trying to build for.
     


     
    I'm using PIC16F887. Can you tell me another pic with the same pinout as this, but with more memory? This one I'm using has 44 pins.
    #5
    Neraildes
    Junior Member
    • Total Posts : 98
    • Reward points : 0
    • Joined: 2017/10/11 07:13:25
    • Location: 0
    • Status: offline
    Re: Is the data or program memory missing? 2018/11/07 05:46:49 (permalink)
    0
    So I have 3 options:

    1-Comment on unused functions,
    2-Replace the microcontroller with one that has more memory.
    3-Buy a license to optimize the code.
    #6
    du00000001
    Just Some Member
    • Total Posts : 2180
    • Reward points : 0
    • Joined: 2016/05/03 13:52:42
    • Location: Germany
    • Status: offline
    Re: Is the data or program memory missing? 2018/11/07 06:14:48 (permalink)
    0
    Seems you need a lot of money, so compiler optimization might no do the trick.
    PIC16s might not exceed your 14 k Flash, so you might have to look for some PIC18...
     

    PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
    #7
    qhb
    Superb Member
    • Total Posts : 7543
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: online
    Re: Is the data or program memory missing? 2018/11/07 12:17:15 (permalink)
    +1 (1)
    Neraildes
    I'm using PIC16F887. Can you tell me another pic with the same pinout as this, but with more memory? This one I'm using has 44 pins.

    There are many, as that is a very old PIC.
    Which peripherals do you need?
     
    Also, you managed to hide any bit of the build log which would reveal which version of XC8 you are using.
    Which is it?
    The latest versions have a "--MAXIPIC" option, which lets you pretend you have as much memory as the biggest member of the family, so you can see how much is really needed.
     
    #8
    mlp
    boots too small
    • Total Posts : 615
    • Reward points : 0
    • Joined: 2012/09/10 15:12:07
    • Location: previously Microchip XC8 team
    • Status: offline
    Re: Is the data or program memory missing? 2018/11/08 12:40:09 (permalink)
    +3 (3)
    qhb
    The latest versions have a "--MAXIPIC" option, which lets you pretend you have as much memory as the biggest member of the family

    To be pedantically accurate it lets you pretend you have as much memory as the instruction set architecture allows, regardless of whether any actual device has that much.

    Mark (this opinion available for hire)
    #9
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 2745
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: Is the data or program memory missing? 2018/11/08 15:04:19 (permalink)
    0
    Try not to use 32bit math functions or variables, that may help on your memory.
     

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #10
    Neraildes
    Junior Member
    • Total Posts : 98
    • Reward points : 0
    • Joined: 2017/10/11 07:13:25
    • Location: 0
    • Status: offline
    Re: Is the data or program memory missing? 2018/11/10 00:57:42 (permalink)
    0
    qhb
    Neraildes
    I'm using PIC16F887. Can you tell me another pic with the same pinout as this, but with more memory? This one I'm using has 44 pins.

    There are many, as that is a very old PIC.
    Which peripherals do you need?
     
    Also, you managed to hide any bit of the build log which would reveal which version of XC8 you are using.
    Which is it?
    The latest versions have a "--MAXIPIC" option, which lets you pretend you have as much memory as the biggest member of the family, so you can see how much is really needed.
     


    XC8 version 2.00
    #11
    Jump to:
    © 2018 APG vNext Commercial Version 4.5