Search found 77 matches

by keanhee
27 Nov 2019 05:33
Forum: mikroC PRO for PIC General
Topic: Compiler Error - Reentrancy is not allowed
Replies: 7
Views: 2236

Re: Compiler Error - Reentrancy is not allowed

Hi, The program seems illogical because I've removed most of the codes. I just left those codes that would trigger the error. It gave compile error if Uart function added to PrintChar(). I think any build-in function added to PrintChar() will raise as "Recursion or cross-calling" error. But if I2C l...
by keanhee
22 Nov 2019 12:46
Forum: mikroC PRO for PIC General
Topic: Compiler Error - Reentrancy is not allowed
Replies: 7
Views: 2236

Re: Compiler Error - Reentrancy is not allowed

Hi, I've spent some time to narrow down the issues. Below is the code, You need to enable MMC, MMC_FAT16, MMC_Fat16_Config, UART, Conversion, C_String, C_Type and I2C library. Enable I2c Library will cause compile error. If you unchecked I2C library, the code can be compiled. sbit Mmc_Chip_Select at...
by keanhee
22 Nov 2019 07:27
Forum: mikroC PRO for PIC General
Topic: Compiler Error - Reentrancy is not allowed
Replies: 7
Views: 2236

Re: Compiler Error - Reentrancy is not allowed

Hi, The old bug has came back and bite again. :? This time I've an issue with recursive/cross-calling error. I can't share my code as it's linked to multiple files. But, this happened if I activated the build in I2C library (not even writing I2C codes yet) If I have removed this library, codes compi...
by keanhee
30 Mar 2018 13:52
Forum: mikroC PRO for PIC General
Topic: Compiler Error - Reentrancy is not allowed
Replies: 7
Views: 2236

Compiler Error - Reentrancy is not allowed

Hi Mikro Team, I'm using licensed latest version of MiKroC PRO 7.2.0. I've problem compiled my code with this version. The older version 6.6.2 could compile without error. Below is the Error message and the striped down version of my code that exhibit the error. By the way, I'm using PIC18F46K22. Th...
by keanhee
19 Jan 2017 03:23
Forum: mikroC PRO for PIC General
Topic: mikroC for PIC version 7 released
Replies: 24
Views: 8803

Re: mikroC for PIC version 7 released

Hi Filip,
Thanks for the advise. :)
Is it a software bug?
I just checked that the compiler give error if I2C library is checked.
If my project uses I2C library, It will fail to compile, isn't it?
Please help to fix this bug in next release.
Thanks.:D
by keanhee
17 Jan 2017 16:01
Forum: mikroC PRO for PIC General
Topic: mikroC for PIC version 7 released
Replies: 24
Views: 8803

Re: mikroC for PIC version 7 released

Hi Filip,
Please refer to the attached file for the re-entrancy compiler error.
Reentrancy is not allowed: function 'UART1_Write' called from two threads __Lib_UART_c67d67.c
by keanhee
15 Jan 2017 09:24
Forum: mikroC PRO for PIC General
Topic: mikroC for PIC version 7 released
Replies: 24
Views: 8803

Re: mikroC for PIC version 7 released

Hi, Below is the demo code that will show the issue of compiler. The V7 version would fail to compile, but V6 could compile it without issue. Thanks. typedef struct { unsigned char flag ; unsigned int ctr ; void (*stop)() ; } KEY_STRUCT ; KEY_STRUCT keys[1] ; void interrupt() { } void Dummy() { } vo...
by keanhee
27 Dec 2016 06:44
Forum: mikroC PRO for PIC General
Topic: mikroC for PIC version 7 released
Replies: 24
Views: 8803

Re: mikroC for PIC version 7 released

Hi MikroE, I like to report a possible but critical bug. In my code, the Uart1_write is only used in Interrupt service routine and no where else. Using previous version V6.6.2 compiled with no error. But v7 prompted error. Possible bug? Beside, If i want to use new P18F47K40 in previous 6.6.2 versio...
by keanhee
16 Mar 2014 13:08
Forum: mikroC PRO for PIC General
Topic: Hid Pic18f45K50 Setup
Replies: 30
Views: 12664

Re: Hid Pic18f45K50 Setup

Hi Makro,
Thanks.
That solved the issue. :D

Regards,
KeanHee
by keanhee
12 Mar 2014 10:01
Forum: mikroC PRO for PIC General
Topic: Hid Pic18f45K50 Setup
Replies: 30
Views: 12664

Re: Hid Pic18f45K50 Setup

Hi Filip,
Would you tell us the solution with Pic18F45K50 in the forum instead of sending private email?
I've encountered the same issue. The HID doesn't work (it's the PC does not recognize USB device) while using other compilers, the HID works.

Thanks.

Regards,
Keanhee
by keanhee
13 Nov 2011 07:01
Forum: mikroC PRO for PIC General
Topic: SLOW Mmc_Fat_Read() in MikroC v5.20 compared to V4.10
Replies: 4
Views: 1716

Re: SLOW Mmc_Fat_Read() in MikroC v5.20 compared to V4.10

Hi janko, I've managed to get around this problem by replacing the older version of __Lib_MmcXXX file which in the "Uses" folder. The newer version of MMc library files has significant larger file sizes. I guess it could be the debug code in the MMC library was never removed. Anyway, hope my feedbac...
by keanhee
08 Nov 2011 16:50
Forum: mikroC PRO for PIC General
Topic: PIC18F45k22
Replies: 23
Views: 17559

Re: PIC18F45k22

With internal OSC PLL to 32 or 64Mhz, the built in LCD library doesn't work.

I've already gave up long time ago and wrote my own LCD library.
It worked perfectly fine.


Regards,
Keanhee
by keanhee
31 Oct 2011 00:54
Forum: mikroC PRO for PIC General
Topic: SLOW Mmc_Fat_Read() in MikroC v5.20 compared to V4.10
Replies: 4
Views: 1716

SLOW Mmc_Fat_Read() in MikroC v5.20 compared to V4.10

Hi, I want to report a probably software bug in MikroC v5.20. In my program I've repeatedly call Mmc_Fat_Read() function. Using MikroC v4.10, it takes less than 2 seconds for reading a file ~35KB. While using MikroC v5.20, it takes 2 minutes. What's happening here? Note that I've NOT altered any cod...
by keanhee
15 Aug 2011 18:05
Forum: mikroC PRO for PIC General
Topic: PIC18F8722 Internal oscillator with PPL
Replies: 5
Views: 1949

Re: PIC18F8722 Internal oscillator with PPL

You can try this

Code: Select all

  OSCCON.IRCF0=1;///Internal Oscillator Frequency Select bits, 8Mhz
  OSCCON.IRCF1=1;
  OSCCON.IRCF2=1;
  OSCTUNE.PLLEN=1; // OSCTUNE.PPLEN=1;  4x PLL to 32Mhz;
You might need to add a few ms delay after PLLEN, it takes some time to stabilize the internal osc.

Go to advanced search