Hello,
Currently I am migrating our old product from 2812 to 28335 control board.
When the firmware executes the following function
void vInitSerialRedirect(void)
{
add_device("serialout", _SSA , iSerialOpen, iSerialClose, iSerialRead, iSerialWrite
, iSerialLseek, iSerialUnlink, iSerialRename);
freopen("serialout:", "w", stdout); // redirect stdout to sci
setvbuf(stdout, NULL, _IONBF, 0);
}
The illegal address access will be generated in add_device. In fact these codes had been used for a long time
in 2812 and our 28335 evaluation board.
This time, the differences are : we added more codes, and changed the CMD file to support DMA and FPGA.
By puting vInitSerialRedirect() in the first line of main(), and run, the result is the same, which means
the illegal address access is not caused by the other codes, in stead, it may be due to the memory config,
compiler config, or compiler related staffs.
I attached a picture to show this issue in which the XAR7 was loaded an illegal address value from @0x3e
and cause the crash.
Also the cmd file was attached.