Hello All,
I know this question have been asked so many times and solutions provided. But for me using LPC15xx and keil when ever I do a soft reset, the variable always gets initialised to Zero.
I have tried below techniques but all in vain: http://www.keil.com/support/docs/3480.htm infocenter.arm.com/.../index.jsp
Also created a IRAM2 section in project configuration with start = 0x2008FF0 Size = 0x0F. Ticked "No Init"
In the main program did __attribute__((zero_init)) uint32_t bootloadCmd __attribute__((at(0x2008FF0)));
I have used above technique with Keil with LPC54xx and that works.
But nothing works...
If it helps then I am using below Keil
IDE-Version: µVision V5.24.2.0 Copyright (C) 2017 ARM Ltd and ARM Germany GmbH. All rights reserved. Tool Version Numbers: Toolchain: MDK-ARM Plus: 2 user(s) Version: 5.24.1 Toolchain Path: C:\Keil_v5\ARM\ARMCC\Bin C Compiler: Armcc.exe V5.06 update 5 (build 528) Assembler: Armasm.exe V5.06 update 5 (build 528) Linker/Locator: ArmLink.exe V5.06 update 5 (build 528) Library Manager: ArmAr.exe V5.06 update 5 (build 528) Hex Converter: FromElf.exe V5.06 update 5 (build 528) CPU DLL: SARMCM3.DLL V5.24.1 Dialog DLL: DCM.DLL V1.16.0.0 Target DLL: UL2CM3.DLL V1.160.3.0 Dialog DLL: TCM.DLL V1.32.0.0
Thanks for reading....
Regards, Hemant Kapoor
All fixed now.
I was using incorrect memory layout.