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
PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)
- marina.petrovic
- Posts: 2986
- Joined: 18 Apr 2013 08:11
Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)
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
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
Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)
Hi
thanks a lot Marina
you are great
hope you are having a good time
thanks a lot Marina
you are great
hope you are having a good time
Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)
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
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
- marina.petrovic
- Posts: 2986
- Joined: 18 Apr 2013 08:11
Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)
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
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