Search found 7 matches

by froid
24 Jul 2022 10:36
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: FAT32 move
Replies: 0
Views: 833

FAT32 move

Hi, I am using PIC24FJ1024GA606 in my project. Program is making a huge log file and my problem is that I want to move the log files to the backup folder (on the same SD card) but without using a copy function, just to move the first file sector (?). Does anyone have an idea how this can be done? Re...
by froid
05 Apr 2011 16:25
Forum: mikroC PRO for PIC General
Topic: Directive absolute
Replies: 7
Views: 2199

Re: Directive absolute

Dear DAJ, thanks for helping me. At the end, I gave up. This kind of declaration is possible for PIC16 and PIC18 but not for PIC24 because the address of an int, long and struct type must be even . If the address is odd, linker reports "bad argument allignment". So, I am going to make allocation lis...
by froid
31 Mar 2011 17:45
Forum: mikroC PRO for PIC General
Topic: Directive absolute
Replies: 7
Views: 2199

Re: Directive absolute

I hope that someone from MikroE team will read this message too. I surrpased this problem using the macro but my problem became bigger. There is a built in remote debuger in my program. It seems to me that compiler allocate memory by order of variable use. So, if I change function calling order in '...
by froid
29 Mar 2011 16:46
Forum: mikroC PRO for PIC General
Topic: [Resolved] Problem with include .h
Replies: 16
Views: 4682

Re: Problem with include .h

Yes, you can. In other files you have to declare the same variables as "extern" (extern char, extern int...).
by froid
29 Mar 2011 16:40
Forum: mikroC PRO for PIC General
Topic: Directive absolute
Replies: 7
Views: 2199

Re: Directive absolute

Dear DAJ, Using this kind of declaration for a 2 members is not useful but if you have a long list of variables or constants, changing declaration of the member in the middle of the list will automatically change the address of the following members. Sometimes making absolute list is the easiest way...
by froid
28 Mar 2011 22:00
Forum: mikroC PRO for PIC General
Topic: Directive absolute
Replies: 0
Views: 833

Directive absolute

Hi, I have a problem with this declaration in MicroC generally: long aaa absolute 0x100; // OK int bbb absolute &aaa+sizeof(aaa); // error: Integer const expected As you can see, "&aaa+sizeof(aaa)" is a constant too (0x104), this kind of declaration is very usefull for me but it doesn't work!
by froid
28 Mar 2011 21:50
Forum: mikroC PRO for PIC General
Topic: Directive absolute
Replies: 7
Views: 2199

Directive absolute

Hi, I have a problem with this declaration in MicroC generally: long aaa absolute 0x100; // OK int bbb absolute &aaa+sizeof(aaa); // error: Integer const expected As you can see, "&aaa+sizeof(aaa)" is a constant too (0x104), this kind of declaration is very usefull for me but it doesn't work!

Go to advanced search