I'm using the evaluation board TWR-K65F180M, which is built on the Kinetis MCU MK65FN2M0VMI18.
I'm trying to configure FlexTimer 2 but I'm experiencing a problem: when I try to access the register FTM2_SC (which is the base peripheral address: 0x4003A000) the system hangs to the DefaultISR interrupt (which is located on the file Startup_MK65F18.S).
I'm using KDS 3.1.0, a Segger J-Link Debugger and the Project uses the Kinetis 1.3 SDK (specifically built for the specified processor K65) with Processor Expert; I obtain the same (bad) results with a bare-metal project.
It looks strange that I cannot access to a well-documented memory-mapped register; the situation is strange because i can access without any problems to FlexTimer 0 and 1 (peripheral base registers: 0x40038000 and 0x40039000).
I have already checked the chip documentation, the evaluation board documentation and the mask errata for the chip, without finding any solution to the problem.
I have attached the a simple project to simplify the diagnose of the issue.
Thanks in advance for your answers.
Original Attachment has been moved to: K65F180_FTM2_problem_project_example.zip