Search found 38 matches

by doggy
22 Nov 2022 04:59
Forum: mikroC PRO for PIC General
Topic: optimizer failed
Replies: 11
Views: 2212

Re: optimizer failed

Another 5 months gone and still no apparent action!
by doggy
29 Jun 2022 04:55
Forum: mikroC PRO for PIC General
Topic: optimizer failed
Replies: 11
Views: 2212

Re: optimizer failed

Is there any progress on this bug?
David
by doggy
20 May 2022 07:16
Forum: mikroC PRO for PIC General
Topic: optimizer failed
Replies: 11
Views: 2212

Re: optimizer failed

Thank you Filip.

It is caused by indirect function calls (as previously mentioned).

Regds,
David
by doggy
11 May 2022 01:47
Forum: mikroC PRO for PIC General
Topic: optimizer failed
Replies: 11
Views: 2212

Re: optimizer failed

Hello Filip,
Sorry about that. I missed it.
Here it is again. I have unzipped it and all seems to be there.
Regds,
David
by doggy
04 May 2022 10:02
Forum: mikroC PRO for PIC General
Topic: optimizer failed
Replies: 11
Views: 2212

Re: optimizer failed

Okay, I believe the problem occurs because of indirect function calls.
MPLAB is happy with them, MikroC is not!
For now, I'll do without them. But the Optimizer should not fail!
Regds,
David
by doggy
02 May 2022 07:44
Forum: mikroC PRO for PIC General
Topic: optimizer failed
Replies: 11
Views: 2212

Re: optimizer failed

PS: This code compiles okay under MPLAB. However, there are quite a lot of instances of implicit casting which does silly things- such as returning -1 from a function defined as uint8_t. However, I do not think this should stop Mikro PIC-C from finishing a compilation. Some of them might cause the e...
by doggy
30 Apr 2022 05:49
Forum: mikroC PRO for PIC General
Topic: optimizer failed
Replies: 11
Views: 2212

Re: optimizer failed

Hi filip, when I first started converting this (Arduino) code to PIC and your compiler, the main thing was local variable definitions were scattered through the functions. I do not do that with my own coding and Pic-C did not like it either. So I moved them to the start of each function until compil...
by doggy
30 Apr 2022 03:41
Forum: mikroC PRO for PIC General
Topic: optimizer failed
Replies: 11
Views: 2212

Re: optimizer failed

Hi,
Thanks for the quick reply.
here it is!
Thanks,
David

PS there is a slight error near the top where a variable name (freddy) is missing from the dummy functions

it is: void geniePutByte(uint8_t ) but should be
void geniePutByte(uint8_t freddy)

Still fails exactly the same with either statement.
by doggy
29 Apr 2022 09:10
Forum: mikroC PRO for PIC General
Topic: optimizer failed
Replies: 11
Views: 2212

optimizer failed

I have been using 7.6.0 of the C compiler (with TFT) without any problems for several years now. BUT, in converting some code from a general C library, I have run into a strange problem whereby the code compiles but everything stops with an "Optimizer" failure. I cannot find any information about th...
by doggy
30 Apr 2020 06:32
Forum: mikroProg™ programmer and debugger
Topic: mikroProg 2.8 and Pic 18F26K42
Replies: 10
Views: 4660

Re: mikroProg 2.8 and Pic 18F26K42

If that happens, I'll ditch them.
Regds,
Dave
by doggy
30 Apr 2020 03:37
Forum: mikroProg™ programmer and debugger
Topic: mikroProg 2.8 and Pic 18F26K42
Replies: 10
Views: 4660

Re: mikroProg 2.8 and Pic 18F26K42

MikroC for PIC works. I've used it on a number of large projects. MikroProg also works fine (or you can use other programmers if you so desire). However, you have no ICD available with MikroC and MikroProg (despite the fact that their website incorrectly advertised that it was available). That corre...
by doggy
28 Apr 2020 21:20
Forum: mikroC PRO for PIC General
Topic: BUG!
Replies: 2
Views: 1331

Re: BUG!

I have been informed that the advertising and website are incorrect.

18F26K42 ICD is NOT supported!

Regds,
Dave
by doggy
28 Apr 2020 21:17
Forum: mikroProg™ programmer and debugger
Topic: mikroProg 2.8 and Pic 18F26K42
Replies: 10
Views: 4660

Re: mikroProg 2.8 and Pic 18F26K42

Right, so your website is incorrect and misleading.

Regards,
David
by doggy
24 Apr 2020 07:37
Forum: mikroC PRO for PIC General
Topic: BUG!
Replies: 2
Views: 1331

BUG!

I have MikroProC for PIC version 7.6 (latest). I have MikroProg 2.8, firmware V01.16.12.21 (latest). I am using PIC18F26K42 and trying to use ICD. I can set ICD in Project options and this sets background debugging flag in PIC config word plus the build completes okay. Good, because it did not funct...
by doggy
21 Apr 2020 23:11
Forum: mikroProg™ programmer and debugger
Topic: mikroProg 2.8 and Pic 18F26K42
Replies: 10
Views: 4660

Re: mikroProg 2.8 and Pic 18F26K42

Hello,
I had already done that and just checked again. Firmware is up to date.
So, that is not the problem.
I'll log a bug report.
Regds,
Dave

Go to advanced search