PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

Post your requests and ideas on the future development of mikroC PRO for AVR.
Author
Message
AYSER
Posts: 11
Joined: 20 Sep 2013 00:04

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#16 Post by AYSER » 05 Dec 2013 20:46

HELLO!!! :)
PLEASE i have a string variable with (3500) character and i don't have enough ram mem in my atmega32
so CAN I STORE THIS STRING IN FLASH MEM
WOULD YOU PLEASE HELP IF IT POSSIBLE
THANK YOU :)

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#17 Post by marina.petrovic » 06 Dec 2013 12:57

Hi,

Please, take a look at Flash Memory Library in compiler:
mikroC PRO for AVR Libraries -> Hardware Libraries -> Flash Memory Library

Also, you can take a look at Flash MCU test project:
...\mikroC PRO for AVR\Examples\Internal MCU modules\ATmega16\Flash in MCU

Program demonstrates how to use Flash MCU library.

Best regards,
Marina

AYSER
Posts: 11
Joined: 20 Sep 2013 00:04

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#18 Post by AYSER » 06 Dec 2013 13:13

Hi
thanks a lot Marina
you are great
hope you are having a good time :)

AYSER
Posts: 11
Joined: 20 Sep 2013 00:04

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#19 Post by AYSER » 06 Dec 2013 13:44

hi
i saw the example it's good for me
but can i write a const string (e.x :const char indexpage[]=" ") ???
and use *indexpage to send it for example through SPI ???
thanks for helping :)

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#20 Post by marina.petrovic » 09 Dec 2013 17:04

Hi,

You can write a const string, but you should pass the pointer on your string using explicit casting.

Please, take a look at FLASH_Write_Page() function in Flash Memory Library.

Best regards,
Marina

Post Reply

Return to “mikroC PRO for AVR Wish List”