I'm just getting started with Keil and I cannot run any program I write. I can translate the program with 0 warnings/errors but I can't build it. I have searched for this error but I can't find any solutions. Please Help
- What is the target selected?
- What version of Keil MDK and Arm Compiler do you have installed?
In general, see this summary of helpful information for starters:
https://community.arm.com/support-forums/f/keil-forum/49652/keil-mdk-resources-that-help-to-get-started
Thanks for the reply. My target is ARMCM7 and I'm using MDK version 5.38a with compiler ARM V6.19. I have read the user guide and I have gone through a couple of example projects, which I work fine. However when I try to run my programs I can't. I even tried a very simple program( just writing a value to a register), but I keep getting this error.
In this case,
- turn off "Use Memory Layout from Target Dialog"
- and configure your project for the ARMCM7_ac6.sct file that you find in uVision's ' "Options For Target-Linker-Scatter File" drop-down menu.
Background - see: https://developer.arm.com/documentation/100073/0618/The-Arm-C-and-C---Libraries/Stack-and-heap-memory-allocation-and-the-Arm-C-and-C---libraries/Stack-pointer-initialization-and-heap-bounds
Corresponding Knowledgebase Article created:
"L6218E: Undefined symbol Image$$ARM_LIB_STACK$$ZI$$Limit"
developer.arm.com/.../latest
Thank you so much. It finally works now! Was losing my mind trying to find a solution