Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Memory view and monitor
  • From: <Anton.Krug@xxxxxxxxxxxxx>
  • Date: Wed, 29 Jan 2020 17:28:38 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P20b5EMoHz3UyilLZoe5w1Z8cZliaswIFgp58i8gXE0=; b=GWqxN/4eic5EE7eMOegRc/p28a/1EJA+unHnK5ClE5YVTsSzb1hoAPCjHluFMKfydbZZKBIVBqz/MbMOVGMjPHvJXyIUTIVwwi72UOEww7ggIHpvWiA89bkz3/CK6nWF/GytFpRMx05MVXONMvKTSZArhA8AD2h4Fpp6sB0KlMJPIS44gU6i1R311nNBnl61dslCrj4PNkINgModE/mJ/hhalxUzuc8tZ38HIAhuq5nVQNj37M1qziEcOCgPfD8f70EcaZyAD/9jN8rQJduEbR6ofonHHZ4gM3ExGBr84ykWp7rragOjytC2jxCetnuF/70vpdaIR7Suw7V326KzxQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Br4rWcv/nwlBdneYdegX9BaaMSEaNr5HiKLi3T2VkiGPnufjPtTmJ6bmzEgSiFacgyynZTVVIQDCx7ntB14zIvnCo0iew77RvXT0qk8F4XwaVXa9CwsnAMNbAKaSx9/kiVyjT6xmP8Dg1h+R7SFPhJLngN4xhWqYK1tykvagR5CaqpI6L2jZV8FKviPrz2El9EnOb0zQlld7BlWd2Qf/NP5wXlUcWkfTdvgQ2QQZCoeeWoXy5+em3BlpN+9KYKjlPoBKGCAbWsEtw0QHGwhaloC20Dfh156QnhWs3qtst4HWP4+s+5a6qBCUAAnFZf5Zsn6Ko457JCqi2e09zmMm9A==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • Ironport-sdr: 9BYWdvTubjpp8ZQj+gA5JmK6EadHwZFm4yjf/Hdp3y12OnP5yh6SAIDAPmE1dxXsyYqRkr0pP5 I00gTsix6PZO+JJUjk3lwF5Brvfsb5MP0zAHoMn+xfJ57wUoul6XFanMY4JxGmC69uy2ItfAeF b8sl7fO4v4tA/WZf+KJG15ZxznpXwyAtwPKpOZzj7ujKy4K0wohRQ0YBaJPVvLUguREuQatoLG rSrCgUeQEsEC2Lv3Qnf9MorIGrvg8E+8UKYhwfQPQIfVfwLXjLvmugJn2bM1HPU2DLPRkdvxJk Vgs=
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHV1gc4VZLk+sRvYUaZLoIRvnD856gAmfaAgABDSwCAANwuO4AACioAgAAJB8GAAA6zgIAACYs2
  • Thread-topic: [cdt-dev] Memory view and monitor

The question was just to rule out if we are talking about 2 different things. 
And I was in the mindset it's inheriting the access functionality from the memory view.

Not just Cortex-M, RISC-V can have memory-mapped peripherals as well. The screenshot looks at what I expect to happen (because I enabled 8-bit accesses).
It doesn't work on other peripherals, because that CoreTimer is the only peripheral I modeled for our RISC-V target.
Under 'breaking it' I mean the peripheral is designed to be accessed in 32-bit mode and so does the simulated model of the peripheral, however in the simulated model I broke the spec and allowed it to be accessed in 8-bit chunks as well, then the peripheral view works as shown in the screenshot. 

From: Liviu Ionescu <ilg@xxxxxxxxxx>
Sent: 29 January 2020 16:46
To: Anton Krug - M31845 <Anton.Krug@xxxxxxxxxxxxx>
Cc: cdt-dev@xxxxxxxxxxx <cdt-dev@xxxxxxxxxxx>
Subject: Re: [cdt-dev] Memory view and monitor
 
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

> On 29 Jan 2020, at 17:59, <Anton.Krug@xxxxxxxxxxxxx> <Anton.Krug@xxxxxxxxxxxxx> wrote:
>
> I followed your document:
> https://gnu-mcu-eclipse.github.io/plugins/packs-manager/
>
> And in Peripherals I can select the peripheral I made quickly and then it gets opened as Memory View's monitor, see attachment. Do I do something wrong?

I'm afraid I do not understand the question.

Yes, on Cortex-M devices, the peripherals are memory mapped, and the peripheral registers view is just a more advanced memory view.

What do you expect to happen?

Does it work with other peripherals?

> Btw when I target the simulation platform and 'break' it on purpose to support byte accesses then the monitor gets populated nicely with the values.

... not following you... :-(


Regards,

Liviu


Back to the top