This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Unable to program F28027F (Instaspin Lab 10 + user code)

Other Parts Discussed in Thread: TMS320F28027F

Hi,


I'm using Instaspin FOC to design a BLDC control board. To develop the code, I work with the LaunchPad XL TMS320F28027F and a free licensed CCSv6.

I'm trying to modify Lab10a to include some functions necessary for my project (SCI, ...). So, I commented all the identification code (infinite loop, update of motor's variables and controller init) to test my code more easily.  It works well. Now, I want to test with a motor so I have uncommented this code and, sadly, it doesn't work.

CCS is unable to program the MCU (see the output console). I checked if there is a flash depletion but it seems not (depletion recovery successfully finish). If I re comment identification code, it able to program. So I checked the size code and the allocation memory gui seems say that it's ok (see below). The linker seems also work successfully (no "error #10099-D: program will not fit into available" error).

With identification code, the loaded code in the flash takes 16.8kB and without only 14.8kB. Is there any limitation code size (16kB) on C2000 like MSP430?

Somebody has he had this problem and solved it?

Thanks

Pierre

PS : With your experience, to identify motor, it's better to use the standalone gui or the ccs debugger?


PS2 : Sorry for my rough english