-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initializing a board without filesystem or a cs_device without board #19
Comments
I tried to initialize the ETB without using the This is my prototype code: // initialize persistent buffer for trace data
const size_t etb_buffer_size = 20;
int32_t etb_buffer[etb_buffer_size];
cs_devices_t devices;
// Needed?
//board board_m7 = {.do_registration=do_registration_stm32h7,
// .n_cpu=1,
// .hardware="STM32H7"};
//board_m7.do_registration(&devices);
// Get ETB
devices.etb = cs_device_get(0x5C014000);
// Optionally configs if needed
cs_trace_enable(devices.etb);
cs_checkpoint(); // Enables all configs
cs_get_trace_data(&devices, etb_buffer, etb_buffer_size); However, upon examining the source code of But how is this Alternatively, can I just initialize a |
A device needs to be registered to CSAL with |
I have a Cortex-M7 microcontroller (STM32H7), which does not have a filesystem.
For tracing the ETB data with
cs_get_trace_data
, acs_device_t
object is needed, which needs to be registered on aboard
object.A
board
object contains the board name inhardware
, which needs "to be matched to a read from/proc/cpuinfo
".How can I initialize the
board
andcs_device_t
without a filesystemThe text was updated successfully, but these errors were encountered: