Following Application Note 196, I can get a running simulation with the ADC simulated however the interrupts are not generated even thought its "DONE" flag is set. I set a break point in the interrupt handler and it is never reached. I checked that if I trigger the interrupt from the system viewer by manually setting the pending bit in the NVIC then the break point is hit. So it seems that the simulated ADC is not able to generate interrupts.
In the simulator settings, the app note says to use DLM.DLL instead of the default DCM.DLL. I tried both with the same result.
This app note is rather old, could this be a version compatibility issue ?
IDE-Version:µVision V126.96.36.199Copyright (C) 2019 ARM Ltd and ARM Germany GmbH. All rights reserved.
Tool Version Numbers:Toolchain: MDK-Lite Version: 188.8.131.52Toolchain Path: C:\Keil_v5\ARM\ARMCC\BinC Compiler: Armcc.exe V5.06 update 6 (build 750)Assembler: Armasm.exe V5.06 update 6 (build 750)Linker/Locator: ArmLink.exe V5.06 update 6 (build 750)Library Manager: ArmAr.exe V5.06 update 6 (build 750)Hex Converter: FromElf.exe V5.06 update 6 (build 750)CPU DLL: SARMCM3.DLL V184.108.40.206Dialog DLL: DCM.DLL V220.127.116.11Target DLL: UL2CM3.DLL V18.104.22.168Dialog DLL: TCM.DLL V22.214.171.124
View all questions in Keil forum