View previous topic :: View next topic |
Author |
Message |
José Aparecido
Joined: 29 May 2019 Posts: 21
|
Error 44 When Trying to Compile |
Posted: Wed Jun 05, 2019 3:51 pm |
|
|
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
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
|
|
|
José Aparecido
Joined: 29 May 2019 Posts: 21
|
|
Posted: Wed Jun 05, 2019 5:07 pm |
|
|
I already read this post, but he did not help me.n |
|
|
dluu13
Joined: 28 Sep 2018 Posts: 395 Location: Toronto, ON
|
|
Posted: Wed Jun 05, 2019 5:09 pm |
|
|
José Aparecido wrote: |
I already read this post, but he did not help me.n |
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
|
|
Posted: Wed Jun 05, 2019 5:12 pm |
|
|
dluu13 wrote: | José Aparecido wrote: |
I already read this post, but he did not help me.n |
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
|
|
Posted: Wed Jun 05, 2019 10:27 pm |
|
|
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: 19552
|
|
Posted: Thu Jun 06, 2019 1:20 am |
|
|
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. |
|
|
|