Search found 156 matches

by bartt
23 Jul 2013 19:48
Forum: mikroC PRO for PIC32 General
Topic: width of bit fields in structs?
Replies: 1
Views: 1367

width of bit fields in structs?

I use structs and bitfields to mimic registers for some of my code. This enables me to set variables in the structs in a more natural manner. In double checking my notions I ran across a note in the help file that states: "Total width of all components cannot exceed two bytes (16 bits)." This would ...
by bartt
03 Jul 2013 01:16
Forum: mikroC PRO for PIC32 General
Topic: mikroC PRO for PIC32 << left;
Replies: 3
Views: 1906

Re: mikroC PRO for PIC32 << left;

Assuming hex values, 4 digits only holds 16 bits so you have shifted all the way thru the xxxx in the second example.
Not sure why the result is not correct though.

Try making the xxxx part 32 bits wide and see what happens.
Hope it helps
Bart
by bartt
01 Jul 2013 22:09
Forum: mikroC PRO for PIC32 Wish List
Topic: ADC Buffer
Replies: 19
Views: 14904

Re: ADC Buffer

This is an interesting tangential discussion.. I do agree that the current state of Me libraries renders them not Industrial Quality, as I have trapped them in infinite loops if noise is induced in the system. I found this to be the case in I2c and serial libraries, and posted to this effect some ti...
by bartt
27 Jun 2013 20:20
Forum: mikroC PRO for PIC32 Wish List
Topic: Source code style editor
Replies: 1
Views: 3814

Source code style editor

I would really like to be able to re-style source code files. When using public domain source code or source code from collegues, we often need to apply our own C style rules. Having a builtin pretty printer to automate this would be a very nice feature. If you add this feature please make sure that...
by bartt
27 Jun 2013 18:10
Forum: mikroC PRO for PIC32 General
Topic: compiler emitts Internal error 'Undefined struct'
Replies: 4
Views: 2693

Re: compiler emitts Internal error 'Undefined struct'

How about this..
several pieces of a zip file (7ZIP)
Please rename the first file to lwip.zip.001 for use with 7zip
The second rename to lwip.zip.002
The third rename to lwip.zip.003

My projects are built in c:\Projects so the paths are probably set to that root.
I hope this uploads properly
by bartt
27 Jun 2013 17:56
Forum: mikroC PRO for PIC32 General
Topic: compiler emitts Internal error 'Undefined struct'
Replies: 4
Views: 2693

Re: compiler emitts Internal error 'Undefined struct'

It seems that I cannot upload the zip file - it is too large ~700k
Is there another way to get the project to you?
by bartt
27 Jun 2013 17:24
Forum: mikroC PRO for PIC32 General
Topic: User libraries not included in new compiler install
Replies: 2
Views: 1553

Re: User libraries not included in new compiler install

I think you missed my point. I was hoping that my previously installed libraries would be picked up by the new compiler version on installation. Since they were not, I had to go thru the library install process manually, which did work after a couple of tries. That leads to my question.. Should we e...
by bartt
26 Jun 2013 22:16
Forum: mikroC PRO for PIC32 General
Topic: compiler emitts Internal error 'Undefined struct'
Replies: 4
Views: 2693

compiler emitts Internal error 'Undefined struct'

ME- How about a little help here guys. If there is an error on a struct how about at least naming the struct so we have a clue. I am porting some non-trivial code to mE C compiler and now I am stuck on this error, without much hope of figuring out what the compiler is trying to tell me. This particu...
by bartt
26 Jun 2013 18:17
Forum: mikroC PRO for PIC32 General
Topic: User libraries not included in new compiler install
Replies: 2
Views: 1553

User libraries not included in new compiler install

I just update to version 3.30 and noticed that my libraries were no longer recognized by the library manager. I tried to reinstall my libs via the package manager (while in a project) but had no luck. I had to load each library project and rebuild them, then I had to close all projects and invoke th...
by bartt
26 Jun 2013 18:10
Forum: mikroC PRO for PIC32 General
Topic: missing Watchdog bit definition in def file for pic32 CPUs
Replies: 2
Views: 2034

missing Watchdog bit definition in def file for pic32 CPUs

mE - I just updated my compiler to version 3.30 (I know late to the party..) The definition for the WDTWINEN bit in the watchdog timer is missing from the def file(s). This is the Watchdog window enable bit, which I typically turn off since it can cause some odd behavior if this feature is not neede...
by bartt
24 Jun 2013 23:03
Forum: mikroC PRO for PIC32 General
Topic: Ethernet library questions
Replies: 4
Views: 2653

Re: Ethernet library questions

One other question:
Is localhost fully supported?
Will I need real hardware to test on localhost, or will it function as loopback with just the library?
THanks
Bart
by bartt
24 Jun 2013 20:47
Forum: mikroC PRO for PIC32 General
Topic: AD1PCFG and PIC32MX2
Replies: 6
Views: 5245

Re: AD1PCFG and PIC32MX2

Thanks Erasmus and Bartt for your replies. I am very new to programming in C, Pic32, Mikroe IDE, so I have many hurdles to overcome. I didnt realise that the AD1PCFG statement was actually the name of a register in the MCU, I assumed it was just another "C" command/variable. Hence I thought my prob...
by bartt
24 Jun 2013 17:50
Forum: mikroC PRO for PIC32 General
Topic: Ethernet library questions
Replies: 4
Views: 2653

Re: Ethernet library questions

OK, To followup on this topic.. My program is busy with a lot of different IO, so I tend to add extra functionality by calling from my scheduler. If I call doPacket in my scheduler, what sort of interval would be appropriate ( 1mS, 10mS, 25mS, 100mS ) or shorter? You mentioned the callbacks _UserTCP...
by bartt
20 Jun 2013 21:47
Forum: mikroC PRO for PIC32 General
Topic: Syntax Question II Funktions Calls
Replies: 2
Views: 1403

Re: Syntax Question II Funktions Calls

"code" is also another key word.
Which breaks a lot of code (ironically)!
Those two choices for keywords could have been much better IMO..

Go to advanced search