BRT Community

General Category => Discussion - MCU => Topic started by: ksw on February 03, 2022, 05:19:00 PM

Title: Viewing the FT90X peripheral registers in the Eclipse debugger
Post by: ksw on February 03, 2022, 05:19:00 PM
Hi,

I've just started evaluating the FT900 MCU but am unfamiliar with the Eclipse toolchain. I'd like to be able to examine the peripheral register contents while debugging, but when I try and view the memory area containing the registers (base address = 0x10000) I just see 0xFFFF and the contents cannot be modified either, whereas I can examine and modify the RAM areas fine. Is it possible to view the peripheral register contents somehow?

Any suggestions would be greatly appreciated!
Title: Re: Viewing the FT90X peripheral registers in the Eclipse debugger
Post by: ksw on February 04, 2022, 05:16:18 PM
Problem solved! The base address for the registers is above the 256K shadow program RAM and the 64K data RAM, i.e. at 0x810000. A memory map diagram in the documentation would have made it obvious to a newbie like myself...
Title: Re: Viewing the FT90X peripheral registers in the Eclipse debugger
Post by: BRT Community on February 21, 2022, 04:08:07 PM
Hi,

We are looking into adding a register viewer but in the meantime one other way to view a register is to add it to the expression window in Eclipse. For example, to view a timer peripheral register, you can add this to the expression window.
*((unsigned char *)0x10340)

Best Regards, BRT Community