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.

Help on AM35xx flash utility support

Hello to developers.

I have a custom board based on am3517evm from LogicPD. I want to flash NAND memory through USB using Flash Utity but V1.3 don't support am35xx.
That's why I got source and tried to modify source code and configuration file to make am35xx load through USB. Now I got it to success. The last problem is that in sone code for example in vxsend() and new_state_rx_awaiting_data()  function malloc can not allocate memory.
I added     ROMAPI_USB_Close();  to usb_peripheral_init() in the beginning of the function and
changed in vxsend() function:

static const int buffer_size = 200;
char *buffer = (char*) malloc(buffer_size);

to 

char buf[200];
char *buffer = &buf[0];
And now secondary loader answer.    "2nd started"

But in new_state_rx_awaiting_data()  I cannot modify malloc() because malloc allocates memory based on length.
Please tel me how to correct it.

I don't use CCSStudio  for develop so I don't need JTAG device for program memory.