Hi Milan,
I did not tried to compile your code, but when you write
data[0] = T;
your "T" is undefined.
Marc
P.S. you should use the "Code" button when you post source code in your message.
Search found 44 matches
- 05 Mar 2012 16:09
- Forum: mikroC PRO for PIC General
- Topic: Unable to built project
- Replies: 2
- Views: 1335
- 05 Mar 2012 16:01
- Forum: mikroC PRO for PIC General
- Topic: How can i parse int from string
- Replies: 1
- Views: 957
Re: How can i parse int from string
Hi,
You just have to use the standart C function: int atoi(char *s). In the Help file, go to "mikroC PRO for PIC Libraries" -> "Standard ANSI C Libraries" -> "ANSI C Stdlib Library" for more information.
Good luck
Marc
You just have to use the standart C function: int atoi(char *s). In the Help file, go to "mikroC PRO for PIC Libraries" -> "Standard ANSI C Libraries" -> "ANSI C Stdlib Library" for more information.
Good luck
Marc
- 05 Mar 2012 15:57
- Forum: mikroC PRO for PIC General
- Topic: A MMC/SD bootloader for PIC18F4620
- Replies: 35
- Views: 21734
Re: A MMC/SD bootloader for PIC18F4620
Hi Franek, Sorry for the late response, I've been on vacation last 2 weeks. I'm glad that your bootloader works fine. You are right when you say that the bootloader doesn't modify the configuration bits. I have programed this bootloader to be used as a "firmware upgrader" for my products, i.e. I mak...
- 20 Feb 2012 16:42
- Forum: mikroC PRO for PIC General
- Topic: A MMC/SD bootloader for PIC18F4620
- Replies: 35
- Views: 21734
Re: A MMC/SD bootloader for PIC18F4620
Hi Ben and grandegiove, This is what you have to do: If you change the compiler's version, or if you change something it the bootloader code you will have to: 1) compile the bootloader until it fits in memory 2) modify the bootloader code (I'll explain this) 3) re-compile the bootloader 4) burn the ...
- 21 Dec 2011 16:00
- Forum: mikroC PRO for PIC General
- Topic: ds1307 and pic16f886 problem
- Replies: 7
- Views: 2685
Re: ds1307 and pic16f886 problem
Hi,
Does pin 3 of your DS1307 (VBAT) is connected to a battery or to the same 5V that powers your circuit? If it's not a battery, your DS1307 won't be able to keep time when your circuit isn't powered, and it will reset to 0.
Marc
Does pin 3 of your DS1307 (VBAT) is connected to a battery or to the same 5V that powers your circuit? If it's not a battery, your DS1307 won't be able to keep time when your circuit isn't powered, and it will reset to 0.
Marc
- 20 Dec 2011 21:02
- Forum: mikroC PRO for PIC General
- Topic: A MMC/SD bootloader for PIC18F4620
- Replies: 35
- Views: 21734
Re: A MMC/SD bootloader for PIC18F4620
In fact, the biggest problem I see with a bootloader not located in the highest memory locations is that it cannot load any hex file. For that, the bootloader would have to decompile the hex code and then offset all the variables and constants references in the code: a nigthmare! In my bootloader, I...
- 16 Dec 2011 16:18
- Forum: mikroC PRO for PIC General
- Topic: A MMC/SD bootloader for PIC18F4620
- Replies: 35
- Views: 21734
Re: A MMC/SD bootloader for PIC18F4620
The reason I chose to use a low end version is because I was unsure how to ensure that the compiler did not attempt to use the higher memory locations. If I could have told the compiler that memory above for example 0xD800 was not to be used then I would have been happy to compile my main code at t...
- 15 Dec 2011 16:27
- Forum: mikroC PRO for PIC General
- Topic: A MMC/SD bootloader for PIC18F4620
- Replies: 35
- Views: 21734
Re: A MMC/SD bootloader for PIC18F4620
Hi everybody, Well it seems that we are starting to have a good choice of MMC bootloaders! David, you have an interesting approach. Your warning about the maximum size of the user program applies to my bootloader too. I should have indicated this. And you came to the same conclusion I found: we cann...
- 05 Dec 2011 17:05
- Forum: mikroC PRO for PIC General
- Topic: specifying upper memory limit.
- Replies: 4
- Views: 1579
Re: specifying upper memory limit.
Hi,
Instead of a function, you can also place constant values in memory the following way:
You won't need the fake function call that way.
Marc
Instead of a function, you can also place constant values in memory the following way:
Code: Select all
const short FillingValues[] = {0xAA, 0xAA, 0xAA, ....} absolute 60000;
Marc
- 20 Sep 2011 15:18
- Forum: mikroC PRO for PIC General
- Topic: A MMC/SD bootloader for PIC18F4620
- Replies: 35
- Views: 21734
Re: A MMC/SD bootloader for PIC18F4620
Go in this folder: C:\Program Files\Mikroelektronika\mikroC PRO for PIC\Examples\Other\Bootloader\ and choose between P16 and P18 depending on your PIC. The bootloader is there.
Have a nice day!
Marc
Have a nice day!
Marc
- 05 Sep 2011 14:57
- Forum: mikroC PRO for PIC General
- Topic: A MMC/SD bootloader for PIC18F4620
- Replies: 35
- Views: 21734
Re: A MMC/SD bootloader for PIC18F4620
Hi Dave, I don't have much time now, as I'm in vacation and I will leave for camping in a few hours. When I'll be back next week, I will explain it in detail. All I can say (and it won't be good news for you), is that the SPI and MMC library functions used by the bootloader cannot be reused by your ...
- 24 Aug 2011 16:05
- Forum: mikroC PRO for PIC General
- Topic: How to write HEX from MMC card to PIC18F4620 as self program
- Replies: 9
- Views: 4299
Re: How to write HEX from MMC card to PIC18F4620 as self pro
Soon I will modify it to make a version without the LCD display - the bootloading status and progress being shown by a flashing led. That will be usefull for a project that doesn't use a display.
Hope that you'll find my bootloader usefull!
Marc
Hope that you'll find my bootloader usefull!
Marc
- 28 Jul 2011 15:24
- Forum: mikroC PRO for PIC General
- Topic: How to write HEX from MMC card to PIC18F4620 as self program
- Replies: 9
- Views: 4299
Re: How to write HEX from MMC card to PIC18F4620 as self pro
Homermike and M.Pathma:
I have finished my MMC bootloader for the PIC18F4620. You can obtain it here
Marc
I have finished my MMC bootloader for the PIC18F4620. You can obtain it here
Marc
- 28 Jul 2011 15:20
- Forum: mikroC PRO for PIC General
- Topic: A MMC/SD bootloader for PIC18F4620
- Replies: 35
- Views: 21734
Re: A MMC/SD bootloader for PIC18F4620
Thank you p.erasmus and filip for your kind words, I appreciate, especially from you guys who are prolific contributors. I don't have any more time to work on it right now, but it would be great if other people that bootloader (smaller size, encryption,...)
Have a nice day,
Marc
Have a nice day,
Marc
- 28 Jul 2011 15:13
- Forum: mikroC PRO for PIC General
- Topic: EASYPIC5 + MMC/SD Card + 18F4550 + GLCD
- Replies: 14
- Views: 6041
Re: EASYPIC5 + MMC/SD Card + 18F4550 + GLCD
Hi Massimo, I haven't tried it myself, but I don't think that you can use software SPI with the MMC library. As stated in the MikroC help about the Mmc_Init() function: "The appropriate hardware SPI module must be previously initialized." But you can shift the pins used by your GLCD: instead of usin...