EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Flash read write of MSP430F149

Started by "Ghorpade, Vijaya" August 3, 2010
Hi all,

I have some doubts about the flash programming,
1. Before writing to the flash, Is there any need to write flash routine in to the RAM?

2. I want to write different types of the data types to the flash such as float, char and integer.

When I am writing it bby using pointer, there is data type error occurs.

3. If want to write to the flash from the array then how do I increment the flash pointer, I mean space required for each variable is different so simple incrementing pointer will not work.

I went through the flash section of the user guide and MSP430 datasheet but not satisfied with the information.

Please tell me any flash programming guide for MSP430.

----------------------------
Vijaya

________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.


Beginning Microcontrollers with the MSP430

You have to write it not as data types but memory area. You have to
know how many words you have to copy to the FLASH.
The FLASH routine do not need to be in RAM. The only thing is, while
in running the code on FLASH it means the processor will stop during
the write-to-FLASH operation because it cannot read and write at same
time. When you have a code in RAM it can run while FLASH is being
written or erased and therefore your software can do other things
during those operations.
I have no idea how to make FLASH write/erase using C programming. In
assembly I can do it with both hands tied. Sure you can find examples
of FLASH operations in the TI web site or example code that comes
with the IAR suite. Mostly are in Assembly but I believe it is quite
easy to understand and translate to C.
One hint: when working with a microcontroller and knowing only C
programming then it is better to move to another job.
-Augusto
.
On Ter 03/08/10 08:17 , "Ghorpade, Vijaya"
v...@philips.com sent:
Hi all,
I have some doubts about the flash programming,
1. Before writing to the flash, Is there any need to write flash
routine in to the RAM?
2. I want to write different types of the data types to the flash
such as float, char and integer.
When I am writing it bby using pointer, there is data type error
occurs.
3. If want to write to the flash from the array then how do I
increment the flash pointer, I mean space required for each variable
is different so simple incrementing pointer will not work.
I went through the flash section of the user guide and MSP430
datasheet but not satisfied with the information.
Please tell me any flash programming guide for MSP430.
----------------------------
Vijaya
________________________________
The information contained in this message may be confidential and
legally protected under applicable law. The message is intended
solely for the addressee(s). If you are not the intended recipient,
you are hereby notified that any use, forwarding, dissemination, or
reproduction of this message is strictly prohibited and may be
unlawful. If you are not the intended recipient, please contact the
sender by return e-mail and destroy all copies of the original
message.





The 2024 Embedded Online Conference