EmbeddedRelated.com
Forums
Memfault Beyond the Launch

C2000 toolbox for Simulink : using a memory-stored variable as a parameter

Started by kevindecuyper March 6, 2008
Hello,

I've been toying with the C2000 toolbox for a little while
now, but I'm hitting a wall on this one.

What I'm trying to do is a PID controler whose parameters
can be changed by an external source or using a RTDX channel.
In fact this problem might arise for every block whose
parameters can't be specified from the outside.

Now I could create the controler with basic Simulink blocks,
but I want to use to more efficient PID-Controler from the
DMC library.

Since the C2000 doesn't have a workspace, I tried to use the
"Memory Copy" block from the Link for Code Composer Library
with no results since the parameters must come from the
workspace.

Is there a way to tell the block the the value of a
parameters must be taken from memory and not from the workspace?

Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
hi every body
I try to load my code from SCI-A to F2812, I set boot mode selection pin in SCI_A mode,
but DSP didn't echo back my code when i send data, i have a problem with scitdxa pin, when i pulled down this pin for select a sci boot mode how it can echo back my data,
my loader work in spi mode and i have no problem with this but I'm confuse with this.
ti doc say dsp answer to any baud rate which auto baud rate, plz survived me
thank you
Amin
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
Amin,
You need to use a resistor to pull SciTxdA low (for example 2.2K). I
recommend that you use C2oooProg to confirm that the bootload mode works.

Cheers,
Beat

AminRezaie wrote:
>
> hi every body
> I try to load my code from SCI-A to F2812, I set boot mode selection
> pin in SCI_A mode,
> but DSP didn't echo back my code when i send data, i have a problem
> with scitdxa pin, when i pulled down this pin for select a sci boot
> mode how it can echo back my data,
> my loader work in spi mode and i have no problem with this but I'm
> confuse with this.
> ti doc say dsp answer to any baud rate which auto baud rate, plz
> survived me
> thank you
> Amin
>
>
Hi every body
Thank you Beat, It's work. I want program F2812 flash with SDFlash (spectrum digital) , I readed TMS320F28xx SDFlash Serial RS232 Flash Programming Ref. Guide but when I want Reset my Emulator((R)) key on sdflash toolbars this error occur:
ERR:Failed emulation connection to the target
ERR: DSP reset failed
I changed this file: sdopts.cfg and added these line to file.
[EmulatorId
EmuPortAddr=0xC1
EmuPortMode=RS232
EmuProductName=SERIAL_FLASH
[EmulatorId
EmuPortAddr=0xC2
EmuPortMode=RS232
EmuProductName=SERIAL_FLASH
[EmulatorId
EmuPortAddr=0xC3
EmuPortMode=RS232
EmuProductName=SERIAL_FLASH
[EmulatorId
EmuPortAddr=0xC4
EmuPortMode=RS232
EmuProductName=SERIAL_FLASH

and edit CPU_Rate from 6.667L to 10.00 because my crystal is 20.00MHz.
now I cant connect to my board to program my code in dsp flash with SDFlash.
I use SDFlash V1.62.03how I can find higher version of SDFlash
Thanks
Amin

Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
Hi AMin,

Try increasing the time-out period given in the
SDflash project options from the default value of 3000
to somewhere around 9000. It might work.

Thanks,
Vishal

--- AminRezaie wrote:

> Hi every body
> Thank you Beat, It's work. I want program F2812
> flash with SDFlash (spectrum digital) , I readed
> TMS320F28xx SDFlash Serial RS232 Flash Programming
> Ref. Guide but when I want Reset my Emulator((R))
> key on sdflash toolbars this error occur:
> ERR:Failed emulation connection to the target
> ERR: DSP reset failed
> I changed this file: sdopts.cfg and added these
> line to file.
> [EmulatorId
> EmuPortAddr=0xC1
> EmuPortMode=RS232
> EmuProductName=SERIAL_FLASH
> [EmulatorId
> EmuPortAddr=0xC2
> EmuPortMode=RS232
> EmuProductName=SERIAL_FLASH
> [EmulatorId
> EmuPortAddr=0xC3
> EmuPortMode=RS232
> EmuProductName=SERIAL_FLASH
> [EmulatorId
> EmuPortAddr=0xC4
> EmuPortMode=RS232
> EmuProductName=SERIAL_FLASH
>
> and edit CPU_Rate from 6.667L to 10.00 because my
> crystal is 20.00MHz.
> now I cant connect to my board to program my code
> in dsp flash with SDFlash.
> I use SDFlash V1.62.03how I can find higher
> version of SDFlash
> Thanks
> Amin
>
>

Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467

Memfault Beyond the Launch