Hi everybody,
I'm using the command line interface of Codeskin to program my TMS320F28035 through the serial port.
Sometimes programming works, sometimes not. After a few investigations, I discovered that the inaccurate baudrate from the uninitialized DSP is the problem. I started with a baudrate of 115200 baud and went down to 9600 baud, with random results. The cold spray and hot air gun also influence the behaviour.
The serial frames are echoed back during programming. The frames coming from my PC match the specified baudrate (let's say +/-0.5%). But the frames coming back from the DSP look to be far less accurate, with errors up to +/-3% on the baudrate. This causes the serial port of the PC - and of course Codeskin! - to not interpret the feedback of the DSP correctly.
As far as I know, the internal oscillator calibration should be performed automatically:
"The Device_cal() routine is programmed into TI reserved memory by the factory. The boot ROM automatically calls the Device_cal() routine to calibrate the internal oscillators and ADC with device specific calibration data. During normal operation, this process occurs automatically and no action is required by the user." (SPRUGL8C)
It this effective with the serial loader? Apparently no! This suggests me that a reliable serial flash programming is not possible without external oscillator! Am I right?
Otherwise, any suggestion on how to load my DSP with the serial port?
I tried different serial ports on the PC side. Some do accept +/-3% error on the baudrate (for example USB-to-serial converters), others don't. But this is not a real solution from my point of view.
Many thanks for your help,
Corentin
PS: I'm using the last version of Codeskin (v1.7), Win 7 64 bits, TMS320F28035PNS, SCI on GPIO28/29, internal oscillator.