Sign in

username:

password:



Not a member?

Search msp430



Search tips

Subscribe to msp430





Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | MSP430 | MSP430 MAX UART Baud Rate

The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.

MSP430 MAX UART Baud Rate - "paddu.koti" - Sep 24 7:12:15 2009

Hi,

Could you please tell me what would be the maximum baud rate that
a MSP430F5xx UART support,
and what are the criteria to use higher baud rates compared to the "Table 15-4. Commonly Used Baud Rates" mentioned in the user guide.

Thankyou in advance.

------------------------------------

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )


MSP430 Easy access to INFO memory - Arkadiusz Kocowicz - Sep 24 10:43:44 2009

Hi there!
At the moment I am writing an application wich stores some crucial data in =
INFO memory. The application is in constatnt progress so sometimes I need t=
o write new content to that part of memory, here starts problem: I use IAR =
and I see that there are such options as dump memory, fill, and restore, bu=
t when i try to fill memory i get message:

Warning: Can not write to read only memory. You can modify the device descr=
iption file to be able to write to this memory zone.

I would modify the device description file, but in header file i see no inf=
ormation about INFO memory, on the other hand, I know tha IAR is able to er=
ase that memory (Project Options -> FET Debugger -> Flash erase)

I'm not sure if it's important issue but I use MSP-FET430UIF connected to M=
SP430F2410, so it's 4-wire JTAG.=20

BTW, have you ever managed to use "live watch" feature in IAR?

greetings
Arek

----- oryginalna wiadomo=B6=E6 -----
od: "paddu.koti"
data: czwartek, wrzesie=F1 24, 2009 13:12
temat: [msp430] MSP430 MAX UART Baud Rate
do: m...@yahoogroups.com

=20=20=20
-----------------------------------------------------------
|=20

=A0=20=20
>=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
> Hi,
>=20
> Could you please tell me what would be the maximum baud rate that=20
> a MSP430F5xx UART support,
> and what are the criteria to use higher baud rates compared to the "Tab=
le 15-4. Commonly Used Baud Rates" mentioned in the user guide.
>=20
> Thankyou in advance.
>=20
=20
> > |
-----------------------------------------------------------
=
=20

[Non-text portions of this message have been removed]

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: MSP430 Easy access to INFO memory - OneStone - Sep 24 11:16:55 2009

Hi Arek. Info memory is flash memory and can be erased only in blocks
(segments). In the case of info memory these are just 64 bytes long,
which is not as inconvenient as the longer 512 byte blocks that make up
main memory.

You cannot directly modify these through the IDE from IAR. You can
however modify them through your program.

because the cells are flash their erased state is a logic 1. therefore
an erased byte shows as a 0xFF. You can ONLY clear bits to 0. You can
modify an already written byte provided that you only need to clear
bits, but you cannot set bits once a byte has been written without first
erasing the entire 64 byte block. This is a bit of an irritation, but
can be managed in many ways. The way you choose depends on your
application. The simplest way, especially if you only use a few bytes,
or a word of INFO memory is to erase the block and re-write it, or to
first read back the entire block into a RAM buffer, modify the values
you need to change in RAM, erase the block and then write back the block
from RAM.

*****CAUTION******

Erasing INFO memory A will loose all of the factory calibration data for
clocks etc that is stored there, so be VERY careful if you do this.

Another method, for example if you only need to periodically update one
value, for example if yo are keeping track of system run time, or engine
run time, is to use a block of info memory to do this. Start by
initialising the first memory location to 0 in your source code, then
write a short "locate next free memory" routine that runs at power on.
then at whatever pre-determined interval you need write to the next free
memory, update the pointer to the next free location, if this points
past the end of the block then, next time you have to store data, read
the last value, erase the block and store the saved value back to the
first memory location. If you do not have to write too often this can
work very well.

Other methods might be to allocate 2 blocks, and alternate updates
between them.

Cheers

Al

Arkadiusz Kocowicz wrote:
> Hi there!
> At the moment I am writing an application wich stores some crucial data in INFO memory. The application is in constatnt progress so sometimes I need to write new content to that part of memory, here starts problem: I use IAR and I see that there are such options as dump memory, fill, and restore, but when i try to fill memory i get message:
>
> Warning: Can not write to read only memory. You can modify the device description file to be able to write to this memory zone.
>
> I would modify the device description file, but in header file i see no information about INFO memory, on the other hand, I know tha IAR is able to erase that memory (Project Options -> FET Debugger -> Flash erase)
>
> I'm not sure if it's important issue but I use MSP-FET430UIF connected to MSP430F2410, so it's 4-wire JTAG.
>
> BTW, have you ever managed to use "live watch" feature in IAR?
>
> greetings
> Arek
>
> ----- oryginalna wiadomość -----
> od: "paddu.koti"
> data: czwartek, wrzesień 24, 2009 13:12
> temat: [msp430] MSP430 MAX UART Baud Rate
> do: m...@yahoogroups.com
>
>
> -----------------------------------------------------------
> |
>
>
> >
>> Hi,
> >
>> Could you please tell me what would be the maximum baud rate that
>> a MSP430F5xx UART support,
>> and what are the criteria to use higher baud rates compared to the "Table 15-4. Commonly Used Baud Rates" mentioned in the user guide.
> >
>> Thankyou in advance.
> >
>
> > > |
> -----------------------------------------------------------
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: MSP430 Easy access to INFO memory - distantship101 - Sep 24 11:22:24 2009

You need to make a copy of the .ddr file for your device (on my system, these files are located at C:\Program Files\IAR Systems\Embedded Workbench 5.3\430\config). On top of this file, you'll see something like (this is for the MSP430F249) :

[Memory]
;; Name AdrSpace StartAdr EndAdr AccType
Memory0 = SFR Memory 0x0000 0x01FF RW
Memory1 = RAM Memory 0x0200 0x09FF RW
Memory2 = INFO Memory 0x1000 0x10FF R
Memory3 = FLASH Memory 0x1100 0xFFFF R

You can make the INFO memory writable by replacing the R with RW at the end of the "Memory2" row. Then, go to the "Debugger" section in the project options, and in the "Setup" tab, check "Device description file : Override default" and select your modified copy. IAR should now be able to write to the INFO memory.

WARNING : INFO segment A contains calibration data that you probably don't want to lose. Make sure to save this information beforehand !
--- In m...@yahoogroups.com, Arkadiusz Kocowicz <148660@...> wrote:
>
> Hi there!
> At the moment I am writing an application wich stores some crucial data in INFO memory. The application is in constatnt progress so sometimes I need to write new content to that part of memory, here starts problem: I use IAR and I see that there are such options as dump memory, fill, and restore, but when i try to fill memory i get message:
>
> Warning: Can not write to read only memory. You can modify the device description file to be able to write to this memory zone.
>
> I would modify the device description file, but in header file i see no information about INFO memory, on the other hand, I know tha IAR is able to erase that memory (Project Options -> FET Debugger -> Flash erase)
>
> I'm not sure if it's important issue but I use MSP-FET430UIF connected to MSP430F2410, so it's 4-wire JTAG.
>
> BTW, have you ever managed to use "live watch" feature in IAR?
>
> greetings
> Arek

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: Re: MSP430 Easy access to INFO memory - Arkadiusz Kocowicz - Sep 25 3:38:21 2009

I did some research on that issue:

1) if you do so, you better do backup copy of .ddf,=20

2) if your .ddf file is in new directory ( different to C:\Program Files\I=
AR Systems\Embedded Workbench 5.3\430\config ) you have to copy also relate=
d .sfr file to that directory

3) yep, you can write to info memory, but IAR doesn't know how does flash i=
nfo memory work, if you try to write 0x00 into memory cell where 0xff was i=
t will work fine, but reverse operation will only look like it worked, when=
you press the "Next Statement" button you see why.

4) so erasing info memory can be done at the moment of downloading applica=
tion to device, and memory fill may be done after modification of mentioned=
above files, thats almost comfortable solution:)

greetings

Arek

----- oryginalna wiadomo=B6=E6 -----
od: distantship101
data: czwartek, wrzesie=F1 24, 2009 17:22
temat: [msp430] Re: MSP430 Easy access to INFO memory
do: m...@yahoogroups.com

-----------------------------------------------------------
|=20
=A0

>=20
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
> You need to make a copy of the .ddr file for your device (on my system, t=
hese files are located at C:\Program Files\IAR Systems\Embedded Workbench 5=
.3\430\config)> . On top of this file, you'll see something like (this is f=
or the MSP430F249) :

>=20
>=20
[Memory]
>=20
;; Name AdrSpace StartAdr EndAdr AccType
>=20
Memory0 =3D SFR Memory 0x0000 0x01FF RW
>=20
Memory1 =3D RAM Memory 0x0200 0x09FF RW
>=20
Memory2 =3D INFO Memory 0x1000 0x10FF R
>=20
Memory3 =3D FLASH Memory 0x1100 0xFFFF R

>=20
>=20
You can make the INFO memory writable by replacing the R with RW at the end=
of the "Memory2" row. Then, go to the "Debugger" section in the project op=
tions, and in the "Setup" tab, check "Device description file : Override de=
fault" and select your modified copy. IAR should now be able to write to th=
e INFO memory.

>=20
>=20
WARNING : INFO segment A contains calibration data that you probably don't =
want to lose. Make sure to save this information beforehand !

>=20
>=20
--- In msp430@yahoogroups.> com, Arkadiusz Kocowicz <148660@...> wrote:
>=20
>
>=20
> Hi there!
>=20
> At the moment I am writing an application wich stores some crucial data i=
n INFO memory. The application is in constatnt progress so sometimes I need=
to write new content to that part of memory, here starts problem: I use IA=
R and I see that there are such options as dump memory, fill, and restore, =
but when i try to fill memory i get message:
>=20
>=20
>=20
> Warning: Can not write to read only memory. You can modify the device des=
cription file to be able to write to this memory zone.
>=20
>=20
>=20
> I would modify the device description file, but in header file i see no i=
nformation about INFO memory, on the other hand, I know tha IAR is able to =
erase that memory (Project Options -> FET Debugger -> Flash erase)
>=20
>=20
>=20
> I'm not sure if it's important issue but I use MSP-FET430UIF connected to=
MSP430F2410, so it's 4-wire JTAG.=20
>=20
>=20
>=20
> BTW, have you ever managed to use "live watch" feature in IAR?
>=20
>=20
>=20
> greetings
>=20
> Arek

>=20

=20

=20=20=20=20
>=20=20=20

=20=20=20=20
>=20
=09
|
-----------------------------------------------------------

=09
=09

=09
=09
=09
=09
=09

------------------------------------

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )