Dear everyone,
I use stm32cubemx(www.st.com/.../PF259242) to generate the code for STM32F051K8.
And I create the project in MDKv4.74 with the code generated by stm32cubemx and the project can be built successfully.
When I use simulation in default setting, there is some error message hereunder *** error 65: access violation at 0x40021000 : no 'read' permission *** error 65: access violation at 0x40021000 : no 'write' permission *** error 65: access violation at 0x40021004 : no 'read' permission *** error 65: access violation at 0x40021000 : no 'write' permission ... *** error 65: access violation at 0x40021000 : no 'read' permission ... I found the solution MAP 0x40000000,0x4002ffff read write MAP 0x48000000,0x4802ffff read write And there is no error report.
But the it can't go into main function and it seems in the dead-loop
I guess the ROM or RAM setting should be reconfigured as per STM32F0x1,but how?
My MDK is as follows, =qte= IDE-Version: µVision V4.74.0.22 Copyright (C) 2014 ARM Ltd and ARM Germany GmbH. All rights reserved. Toolchain: MDK-ARM Professional Version: 4.74.0.0 Toolchain Path: F:\Keil\ARM\ARMCC\bin\ C Compiler: Armcc.Exe V5.03.0.76 Assembler: Armasm.Exe V5.03.0.76 Linker/Locator: ArmLink.Exe V5.03.0.76 Librarian: ArmAr.Exe V5.03.0.76 Hex Converter: FromElf.Exe V5.03.0.76 CPU DLL: SARMCM3.DLL V4.74.0.0 Dialog DLL: DARMCM1.DLL V1.11.00.0 Target DLL: UL2CM3.DLL V1.152.4.0 Dialog DLL: TARMCM1.DLL V1.08.00.0 =unqte=
Tks in advance