Troubleshooting
This topic covers troubleshooting for the cache allocation library.
Problem | Possible Cause / Solution |
---|---|
Cache allocation library does not show performance. | Confirm that the Software SRAM option in system firmware is enabled. For details, see Software SRAM Setting. Check your system configuration: Run the real-time readiness checker tcc_rt_checker and make sure that
the real-time boot firmware capabilities checkers have status RT_READY,
software SRAM dependencies checkers have the following statuses: Hypervisor is on ,
Current boot is RTCM and Real-time configuration driver exists .
Also, check that software SRAM buffers exist:
Run the following command to configure the software SRAM. If the script cannot detect the CPU automatically, it will list possible supported CPUs, and you can specify the CPU model name by passing the --cpu option. The target system will reboot after executing the script.
|
A tcc_cache_init() function returns status TCC_BUFFER_NOT_FOUND . | The real-time configuration driver does not exist. As a result, the cache allocation library will use malloc to allocate memory.
To enable the real-time configuration driver, run the following command:
|
A tcc_cache_init() function fails with error TCC_E_NOT_AVAILABLE . | See the log for possible causes and solutions. For more information
about logging, see Enable Log Output. One of the possible reasons
for this issue is that you already have called the tcc_cache_init() function. Make sure you call the initialization function only once. |
A tcc_cache_init() function fails with error TCC_E_ERROR . | See the log for possible causes and solutions. For more information
about logging, see Enable Log Output.
|
Memory allocation functions return NULL | See the log for details. For more information about logging, see Enable Log Output. Possible reasons for NULL pointer:
|