6.19.2. MBX dualcore¶
6.19.2.1. Overview¶
This example demonstrate how MBX works. Core 0 will send message to core 1 which will echo back what’s been received.
6.19.2.2. Board Setting¶
debug console for core1 can be found in Pin Description for specific board
6.19.2.3. Running the Example¶
To run this example, a dual core debug script and two gdb client will be needed.
start openocd with the config file for dual core, then two gdbserver will listen to two ports for each core
generate and build projects for each core using ninja
generate and build project for core0 with ninja
generate and build project for core1 with ninja
start two gdb clients and connect two each port
connect and load application for core0 to port 3333
connect and load application for core1 to port 3334
start console application connecting to two consoles
start to run application for each core, following content should be shown on debug console
for core0:
for core1:
once core1 application starts, core1 will receive messages from core0 then send them back, then in the console of core0: