Search found 1431 matches

by pwdixon
22 Nov 2019 08:53
Forum: mikroC PRO for PIC32 General
Topic: Interrupt priorities
Replies: 5
Views: 1917

Re: Interrupt priorities

I would have assumed that setting multivector in the project setup would do that for me automatically, I need to check if that is actually whats not working.
by pwdixon
25 Sep 2019 13:14
Forum: mikroC PRO for PIC32 General
Topic: Stuck in Single vector interrupt
Replies: 11
Views: 7849

Re: Stuck in Single vector interrupt

Does asm ei override previously disabled interrupts eg if I disable a timer interrupt then call asm ei is the timer interrupt now enabled again?
by pwdixon
25 Sep 2019 13:11
Forum: mikroC PRO for PIC32 General
Topic: Stuck in Single vector interrupt
Replies: 11
Views: 7849

Re: Stuck in Single vector interrupt

Looked like the same problem I've been having, see " Post subject: Interrupt priorities".

Tried the asm ei fix and it appears to work, don't really like it though, looks like a bodge.
by pwdixon
25 Sep 2019 12:23
Forum: mikroC PRO for PIC32 General
Topic: Interrupt priorities
Replies: 5
Views: 1917

Re: Interrupt priorities

I have tried this suggestion and in both situations it appears to fix the issue, I'm not particularly happy about it as it looks like a bodge and I have a horrible feeling it will bite me later with some knock-on effect on some other code. Still interested what ME have to say about it as this looks ...
by pwdixon
25 Sep 2019 11:54
Forum: mikroC PRO for PIC32 General
Topic: Interrupt priorities
Replies: 5
Views: 1917

Re: Interrupt priorities

Post subject: Stuck in Single vector interrupt

appears to be about the same subject, was this ever fixed?

I'm trying the suggested fix from that post
by pwdixon
25 Sep 2019 11:22
Forum: mikroC PRO for PIC32 General
Topic: Interrupt priorities
Replies: 5
Views: 1917

Interrupt priorities

I'm using a PIC32MX795512L in two slightly different situations and getting reliable interrupt activity. Situation1 Using a timer to produce a fixed output frequency by toggling an output in a timer interrupt. I have other lower priority interrupts running as well as the highest priority timer. I ge...
by pwdixon
08 May 2019 15:42
Forum: mikroC PRO for PIC32 General
Topic: Odd problems when running code
Replies: 18
Views: 5559

Re: Odd problems when running code

Yep you've achieved exactly what the ME people wanted. You've moved the descussion onto something they can point to in their help file, it doesn't help you or me but at least they can say they've done their bit and provided answers on the forum. Notice as well that even your question on bits/bytes a...
by pwdixon
30 Apr 2019 09:36
Forum: mikroC PRO for PIC32 General
Topic: Odd problems when running code
Replies: 18
Views: 5559

Re: Odd problems when running code

I get random behavior 'sometimes' after I have added small amounts of code and I think this is possibly due to variable alignment issues. These are shown as misaligned in the libstock tool. I could send you a copy of a lst file showing alignment issues but not necessarily showing the odd running beh...
by pwdixon
27 Apr 2019 06:58
Forum: mikroC PRO for PIC32 General
Topic: Odd problems when running code
Replies: 18
Views: 5559

Re: Odd problems when running code

This feels like a pretty major flaw in this compiler and yet ME are pretty much absent from this thread. I've used this compiler for years and defended it when others in my company have attacked it and even forced some projects to swap to the competition. Now I'm fee ling pretty stupid and I can't s...
by pwdixon
25 Apr 2019 17:08
Forum: mikroC PRO for PIC32 General
Topic: Odd problems when running code
Replies: 18
Views: 5559

Re: Odd problems when running code

I wasn't blaming the tool, at least it tells me I have a potential problem and where, that's all good.

But obviously ME thought it was worthy enough to be added to libstock yet they leave their compiler open to the problems in the first place that I can blame on someone.
by pwdixon
25 Apr 2019 07:10
Forum: mikroC PRO for PIC32 General
Topic: Odd problems when running code
Replies: 18
Views: 5559

Re: Odd problems when running code

OK so assuming that alignment is an absolute requirement I could do that using the aligned attribute but if I do that I wonder how clever the comipler is in optimisation or will scattering aligned attributes make the meory allocation inefficient and leave wasted memory 'holes' in the memory map? I a...
by pwdixon
24 Apr 2019 20:57
Forum: mikroC PRO for PIC32 General
Topic: Odd problems when running code
Replies: 18
Views: 5559

Re: Odd problems when running code

OK so it seems there's perhaps some evidence for a compiler problem. It appears that using the aligned attribute on variables may fix the problem. So my question is, given that ME provide a tool to identify the problem variables and they obviously have a manual fix for the issue why on earth doesn't...
by pwdixon
21 Apr 2019 09:04
Forum: mikroC PRO for PIC32 General
Topic: Odd problems when running code
Replies: 18
Views: 5559

Re: Odd problems when running code

I have downloaded the alignment app from https://libstock.mikroe.com/projects/view/2434/misaligned-address-finder and it suggests quite a few identifiers have misaligned addresses. Surely this is a compiler problem that should not occur if the compiler is working properly? If ME can place this tool ...
by pwdixon
16 Apr 2019 09:49
Forum: mikroC PRO for PIC32 General
Topic: Odd problems when running code
Replies: 18
Views: 5559

Odd problems when running code

Before anyone asks, I can't send my code as it's enormous and is intimately related to my own very complicated hardware. The question is has anyone else noticed that sometimes a minor change in code can produce completely unrelated previously perfectly functioning code to malfunction? It appears tha...
by pwdixon
19 Oct 2018 15:33
Forum: Libstock Discussion
Topic: WHat's new in FAT32 V3.2.2.0
Replies: 10
Views: 3291

Re: WHat's new in FAT32 V3.2.2.0

but did you go back to whoever developed the code or at least did the latest update and ask if they tried to address the zero file size or multiple file problems?

Go to advanced search