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.

TMS320F28P550SJ: sysconfig customisation

Part Number: TMS320F28P550SJ
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi Everyone,

I’m currently using sysconfig for pinout and initializations, and I think it’s a great tool! However, I’m looking for the cleanest way to customize function calls and values in the generated (derived) files.

For example, I’m working on Flash API programming, and in the generated device.c file, the Device_init() function is called from main. Additionally, the function Flash_initModule(FLASH0CTRL_BASE, FLASH0ECC_BASE, DEVICE_FLASH_WAITSTATES) is invoked, where DEVICE_FLASH_WAITSTATES defaults to a value of 3.

Suppose I want to set DEVICE_FLASH_WAITSTATES to 2 instead. Is there a better or neater way to achieve this than overriding it by re-calling Flash_initModule(FLASH0CTRL_BASE, FLASH0ECC_BASE, 2) in main immediately after Device_init()?

Am I missing something obvious, or is there indeed a cleaner approach?

Thanks in advance for your insights!