Want to have EventRecorder (with extra IRAM2 in debug scatter file) in Debug Mode only, but not in Release Mode. Currently (µVision V5.27.1) am unable to make different settings in project window. Scatter fiels can be different, but project window entry 'Compiler' not. Can this be done? Best regards Juergen
Yes - it is how the "Debug" and "Release" configurations are managed!
http://www.keil.com/support/man/docs/uv4/uv4_ca_projtargfilegr.htm
"am unable to make different settings in project window"
So what, exactly, have you tried?
Made two targets, Debug and Release. Made two scatter files and set them in target linker options accordingly. When removing Compiler.EventRecorder from target Release, EventRecorder is also removed from target Debug and vice-versa. Seems that Compiler package options are common for all targets. Best Regards Juergen
You can have a component (ex: EventRecorder) in all targets of a multi-target project (default) or just in selected targets.
You should not remove the component from the Run-Time Environment (RTE Window) but rather disable it for a specific target.
Select the target you want to configure and right click on the component in the Project window. A window pops-up where you can disable the component by clearing the “Include in target build” option.
Works, thank you!