CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Error 44 When Trying to Compile

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
José Aparecido



Joined: 29 May 2019
Posts: 21

View user's profile Send private message

Error 44 When Trying to Compile
PostPosted: Wed Jun 05, 2019 3:51 pm     Reply with quote

Hi, I'm developing a MODBUS RTU RS-485 Master-Slave project and I'm using the examples that are in the CCS folder.
I'm trying to compile the file ex_modbus_slave.c but the CCS gives the error 44.
When I try to compile, CCS opens the file modbus_phy_layer_rtu.c and an error appears on line 25 that says: #USE TIMER (TIMER = 1, TICK = .1ms, BITS = 16, ISR).
The error description is: Internal Error - Contact CCS PPUSE.
I'm using CCS 5.015.
I already read the post http://www.ccsinfo.com/forum/viewtopic.php?p=180955#180955, but it did not help me.
I already tried to reinstall the CCS, but the error still persists.
Does anyone know how I can solve this? Thanks Sad


Last edited by José Aparecido on Wed Jun 05, 2019 5:05 pm; edited 1 time in total
dluu13



Joined: 28 Sep 2018
Posts: 395
Location: Toronto, ON

View user's profile Send private message Visit poster's website

PostPosted: Wed Jun 05, 2019 5:04 pm     Reply with quote

https://westmountainradio.com/forum/viewtopic.php?t=51400&start=0&postdays=0&postorder=asc&highlight=

This person had the exact same error and apparently solved it. See if this helps.
José Aparecido



Joined: 29 May 2019
Posts: 21

View user's profile Send private message

PostPosted: Wed Jun 05, 2019 5:07 pm     Reply with quote

dluu13 wrote:
https://westmountainradio.com/forum/viewtopic.php?t=51400&start=0&postdays=0&postorder=asc&highlight=

This person had the exact same error and apparently solved it. See if this helps.


I already read this post, but he did not help me.n Sad
dluu13



Joined: 28 Sep 2018
Posts: 395
Location: Toronto, ON

View user's profile Send private message Visit poster's website

PostPosted: Wed Jun 05, 2019 5:09 pm     Reply with quote

José Aparecido wrote:
dluu13 wrote:
https://westmountainradio.com/forum/viewtopic.php?t=51400&start=0&postdays=0&postorder=asc&highlight=

This person had the exact same error and apparently solved it. See if this helps.


I already read this post, but he did not help me.n Sad


In that case, maybe email CCS as it says. Usually they respond pretty fast during business hours.
José Aparecido



Joined: 29 May 2019
Posts: 21

View user's profile Send private message

PostPosted: Wed Jun 05, 2019 5:12 pm     Reply with quote

dluu13 wrote:
José Aparecido wrote:
dluu13 wrote:
https://westmountainradio.com/forum/viewtopic.php?t=51400&start=0&postdays=0&postorder=asc&highlight=

This person had the exact same error and apparently solved it. See if this helps.


I already read this post, but he did not help me.n Sad


In that case, maybe email CCS as it says. Usually they respond pretty fast during business hours.


okay
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jun 05, 2019 10:27 pm     Reply with quote

I installed vs. 5.015 (command line PCH compiler) and it compiled OK.
Here is the only change I made to Ex_modbus_slave.c:
I changed the PIC to an 18F4550, because that's what you're using.
Code:

#include <18F4550.h>
//#include <18f6722.h>
#fuses HS, NOWDT
#use delay(clock=20M)

What changes did you make to Ex_modbus_slave.c ?



Here is the output of MPLAB vs. 8.92:
Quote:

Executing: "C:\Program files\Picc\CCSC.exe" +FH "ex_modbus_slave.c" +DF +LN +T +A +M +Z +Y=9 +EA #__18F4550=TRUE
--- Info 300 "C:\Program Files\PICC\drivers\modbus_phy_layer_rtu.c" Line 25(1,1): More info: Timer 1 tick time is 102.40 us
>>> Warning 216 "ex_modbus_slave.c" Line 254(1,2): Interrupts disabled during call to prevent re-entrancy: (modbus_enable_timeout)
>>> Warning 216 "ex_modbus_slave.c" Line 254(1,2): Interrupts disabled during call to prevent re-entrancy: (modbus_calc_crc)
Memory usage: ROM=10% RAM=7% - 8%
0 Errors, 2 Warnings.
Build Successful.
Loaded C:\Program Files\PICC\Examples\ex_modbus_slave.cof.
BUILD SUCCEEDED: Wed Jun 05 21:25:21 2019

Here is the top of the .LST file:
Code:

CCS PCH C Compiler, Version 5.015, xxxxx    05-Jun-19 21:25

               Filename:   C:\Program Files\PICC\Examples\ex_modbus_slave.lst

               ROM used:   3350 bytes (10%)
                           Largest free fragment is 29414
               RAM used:   138 (7%) at main() level
                           156 (8%) worst case
               Stack used: 8 locations (5 in main + 3 for interrupts)
               Stack size: 31
Ttelmah



Joined: 11 Mar 2010
Posts: 19535

View user's profile Send private message

PostPosted: Thu Jun 06, 2019 1:20 am     Reply with quote

You say that this thread did not help you:

<http://www.ccsinfo.com/forum/viewtopic.php?p=180955#180955,>

Have you actually tried changing your Windows decimal separator?.

Penultimate post in the thread. You have to reboot Windows after doing this.

The code as designed won't run if the decimal separator in the system is not
'.'. You just have to 'bite the bullet', and set your system to use this separator
if you want to use this code.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group