Sysprogs forums › Forums › VisualGDB › Preinitialization with Segger
Tagged: Segger JTAG
- This topic has 5 replies, 3 voices, and was last updated 9 years, 5 months ago by
Magic.
-
AuthorPosts
-
May 19, 2016 at 07:40 #8243
WalterF
ParticipantI’m using Segger J-Link with VisualGDB. My Processor got an DDR SDRAM. In order to download to RAM the RAM controller need to be initialized. I solved this problem by adding the necessary command to edp.xml just before the load command.
It would be nice to be able to configure these commands.
in GDB startup commands “The following commands will be run AFTER selecting the target” will be executed after the load command. May be this is a bug and should be “AFTER selecting the target and before load”.
Otherwise: Congrats, VisualGDB is a really nice tool!
May 20, 2016 at 00:42 #8251support
KeymasterHi,
Thanks for letting us know. Yes, the after-initialization commands are indeed executed after ALL of the commands from the debug method.
As a better workaround, you can define a variable like “com.yourname.init_mcu” in your custom device definition and then add $$com.yourname.init_mcu$$ to the startup commands in the EDP. Then you won’t have to hardcode the device-specific commands in the EDP file.
We currently don’t have any plans for changing the current behavior as it looks like a fairly rare scenario and the workaround is also very simple, however if you believe it’s a big annoyance (or anyone else encounters a similar issue), please let us know so that we could reconsider this.
May 20, 2016 at 06:08 #8252WalterF
ParticipantThank you for you fast answer and proposal.
If I am really the only person with uninitialized DDR RAM I can live with this. Only after your next update I need not to forget to change edp.xml again.
At moment I’m happy with the situation because I am able to debug and work;-)
May 24, 2016 at 11:48 #8293Magic
ParticipantMay 24, 2016 at 16:05 #8296WalterF
ParticipantHi Magic
C:\Users\yourname\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.arm.segger-dmsp
GDBStartupCommands
Here I added the commands for memory controller init. F.e.:
set {int}0x30340004 = 0x0F400005
set mem inaccessible-by-default onjust before
$$com.sysprogs.jlink.program$$Greetings
-
This reply was modified 9 years, 5 months ago by
WalterF.
May 25, 2016 at 03:11 #8302Magic
ParticipantHello WalterF,
Thank you very much for your great help!
The VisualGDB is operating normally with the J-LINK on my project.
I could get the wonderful environment for embedded.Sincerely yours,
-
This reply was modified 9 years, 5 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.