comp.lang.ada
 help / color / mirror / Atom feed
* PEmicro probe
@ 2020-05-06  9:32 DrPi
  2020-05-06  9:38 ` fabien.chouteau
  0 siblings, 1 reply; 8+ messages in thread
From: DrPi @ 2020-05-06  9:32 UTC (permalink / raw)


Hi,

Anyone has successfully used a PEmicro probe with GNAT GPS ?

Nicolas

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: PEmicro probe
  2020-05-06  9:32 PEmicro probe DrPi
@ 2020-05-06  9:38 ` fabien.chouteau
  2020-05-06 12:34   ` DrPi
  2020-05-12 13:19   ` DrPi
  0 siblings, 2 replies; 8+ messages in thread
From: fabien.chouteau @ 2020-05-06  9:38 UTC (permalink / raw)


On Wednesday, May 6, 2020 at 11:32:19 AM UTC+2, DrPi wrote:
> Anyone has successfully used a PEmicro probe with GNAT GPS ?

If there is a GDB remote interface it should be easy.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: PEmicro probe
  2020-05-06  9:38 ` fabien.chouteau
@ 2020-05-06 12:34   ` DrPi
  2020-05-12 13:19   ` DrPi
  1 sibling, 0 replies; 8+ messages in thread
From: DrPi @ 2020-05-06 12:34 UTC (permalink / raw)


Le 06/05/2020 à 11:38, fabien.chouteau@gmail.com a écrit :
> On Wednesday, May 6, 2020 at 11:32:19 AM UTC+2, DrPi wrote:
>> Anyone has successfully used a PEmicro probe with GNAT GPS ?
> 
> If there is a GDB remote interface it should be easy.
> 
That's what I'm trying to set up.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: PEmicro probe
  2020-05-06  9:38 ` fabien.chouteau
  2020-05-06 12:34   ` DrPi
@ 2020-05-12 13:19   ` DrPi
  2020-05-12 13:32     ` fabien.chouteau
  1 sibling, 1 reply; 8+ messages in thread
From: DrPi @ 2020-05-12 13:19 UTC (permalink / raw)


Hi,

Le 06/05/2020 à 11:38, fabien.chouteau@gmail.com a écrit :
> On Wednesday, May 6, 2020 at 11:32:19 AM UTC+2, DrPi wrote:
>> Anyone has successfully used a PEmicro probe with GNAT GPS ?
> 
> If there is a GDB remote interface it should be easy.
> 
I have found a way to make it work. However, to get a not too bad
reliability(1), the external process has to be launched for each debug
session.
Is there a way to launch an external executable (.exe, .bat) from GPS ?

(1) GPS locks very often and needs to be killed and restarted when
something goes wrong while debugging. When using PyOCD, you also have to
kill the gdb server and the associated python script.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: PEmicro probe
  2020-05-12 13:19   ` DrPi
@ 2020-05-12 13:32     ` fabien.chouteau
  2020-05-12 16:48       ` DrPi
  0 siblings, 1 reply; 8+ messages in thread
From: fabien.chouteau @ 2020-05-12 13:32 UTC (permalink / raw)


On Tuesday, May 12, 2020 at 3:19:47 PM UTC+2, DrPi wrote:
> Is there a way to launch an external executable (.exe, .bat) from GPS ?

The support for pyocd/openocd/st-util is implemented in share/gps/support/ui/board_support.py, you can modify it to add PEmicro. 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: PEmicro probe
  2020-05-12 13:32     ` fabien.chouteau
@ 2020-05-12 16:48       ` DrPi
  2020-05-14 10:23         ` fabien.chouteau
  0 siblings, 1 reply; 8+ messages in thread
From: DrPi @ 2020-05-12 16:48 UTC (permalink / raw)


Fabien,

Le 12/05/2020 à 15:32, fabien.chouteau@gmail.com a écrit :
> On Tuesday, May 12, 2020 at 3:19:47 PM UTC+2, DrPi wrote:
>> Is there a way to launch an external executable (.exe, .bat) from GPS ?
> 
> The support for pyocd/openocd/st-util is implemented in share/gps/support/ui/board_support.py, you can modify it to add PEmicro. 
> 
Thanks for the pointer.

I successfully modified share\gps\support\core\projects.py to add
"pe_micro" in the drop down list.

Modifying board_support.py is not so easy.
I'm stuck with an error I don't understand.
When selecting "pe_micro" and closing the configuration dialog box, I
get the following exception :

Traceback (most recent call last):
  File "C:\GNAT\2019\share\gps\support\core\modules.py", line 267, in
internal
    return pref(*args, **kwargs)
  File "C:\GNAT\2019\share\gps\support\ui\board_support.py", line 681,
in project_view_changed
    self.__create_targets_lazily()
  File "C:\GNAT\2019\share\gps\support\ui\board_support.py", line 436,
in __create_targets_lazily
    default_args=cmd[1:])
  File "C:\GNAT\2019\share\gps\support\core\target_connector.py", line
35, in __init__
    super(TargetConnector, self).__init__(tool_name)
  File "C:\GNAT\2019\share\gps\support\core\extensions\__init__.py",
line 298, in __init__
    self._internal___init__(name)
GPS.Exception: No target is registered with the name: 'pegdbserver_console'

Nicolas

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: PEmicro probe
  2020-05-12 16:48       ` DrPi
@ 2020-05-14 10:23         ` fabien.chouteau
  2020-05-15 17:50           ` DrPi
  0 siblings, 1 reply; 8+ messages in thread
From: fabien.chouteau @ 2020-05-14 10:23 UTC (permalink / raw)


You can ask to the GNATstudio devs here: https://github.com/adacore/gps

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: PEmicro probe
  2020-05-14 10:23         ` fabien.chouteau
@ 2020-05-15 17:50           ` DrPi
  0 siblings, 0 replies; 8+ messages in thread
From: DrPi @ 2020-05-15 17:50 UTC (permalink / raw)


Le 14/05/2020 à 12:23, fabien.chouteau@gmail.com a écrit :
> You can ask to the GNATstudio devs here: https://github.com/adacore/gps
> 
Thanks for your help.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-05-15 17:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06  9:32 PEmicro probe DrPi
2020-05-06  9:38 ` fabien.chouteau
2020-05-06 12:34   ` DrPi
2020-05-12 13:19   ` DrPi
2020-05-12 13:32     ` fabien.chouteau
2020-05-12 16:48       ` DrPi
2020-05-14 10:23         ` fabien.chouteau
2020-05-15 17:50           ` DrPi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox