Now select STDOUT and set it to Variant User:Īfter that your project should build and you can use printf via RTT in your application. First add also the corresponding syscalls file to your application.Īdditionally enable STDOUT retargeting via the "Manage Run-Time Environment" button: printf to use RTT, additional steps are necessary. You can now use the RTT API directly in your application and send data back and forth between target and host PC. Generally if you want to use RTT in Keil all you need to do is add the RTT sources to your project as explained in the J-Link user manual.
Keil mdk full#
Full support for SWO trace J-Link and J-Trace debug probes.Trace support before V5.30 of the Keil MDK-ARM Start the debugging session and open an "Instruction Trace" window.
Set Trace Port to "Sync Trace Port with 4-bit Data".
Keil mdk driver#
Keil mdk code#
All other windows only show whether the code was executed or not.
Keil mdk download#
Please note that flash download through the " Download" (F8) is not supported for J-Link right now.Check Verify Code Download and Download to Flash as shown in the screenshot below.Select J-LINK / J-Trace Cortex in order to use the J-Link built-in flashloader.
Check Use Target Driver for Flash Programming.Select the appropriate device, for example STM32F207IG.Click Project | Options for Target from the main menu.Now the project is ready to be debugged with J-Link / J-Trace.įirst, choose the right device in the project settings if not already done:.In order to modify J-Link specific settings click the Settings button in the debug menu and a new dialog will show up:.Click on the Debug tab and make sure that Cortex-M/R J-LINK / J-Trace is selected.