Dear All,
I am very new to the family of open On-chip debugger. I need your help and support to use OCD products which are required for my project.
I would like to explain about the openocd debugger or programmer I am using in our project and need your valueable inputs.
* I am using Amontec JTAGkey2 programmer to program PXA and CPLD. It is working absolutely fine without any issues.
* Since I am having only one Amontec device and there is no support available, I found Olimex ARM-USB-OCD-H as an alternative device and started working on it.
* I verified pin confifuration between the two devices are almost the same except pin2 in Olimex device has Vref.
* Issues I am facing with Olimex programmer:
1. When I execute the command: openocd.exe -f pxa.cfg following warning and error I'm getting
* Warn : Bad value '00' captured during DR or IR scan:
Warn : check_value: 0x02
Warn : check_mask: 0x07
Error: JTAG error while writing DCSR
2. Next step is to telnet to the localhost 3333 and then typed the command : flash write_image erase unlock c:/pxa.nb0 , for PXA porgramming.
* I am unable to flash PXA programming and the error message I am getting is: Failed to receiving data from debug handler after 1000 attempts
Execution of flash algorythm failed. Can't fall back. Please report.
error writing to flash at address 0x00000000 at offset 0x00000000
I have attached the sceenshots for the reference.
Using Amontec device PXA programming and CPLD programming writing smoothly without any issues.
But why I am facing issues using Olimex ARM-USB-OCD-H programmer. Your kind support is much appreciated.
Thanks and regards,
Madhusdhan H K
Hi All,
Can anybody please tell me how to change CPSR and PC address?
I could able to notice the only change between Amontec JTAGKey2 and Olimex ARM-USB-OCD-H during PXA programming is only the CPSR address.
Present Address From the Log:
**target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x700000d3 pc: 0x00000000
**
CPSR address need to change to:
**target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0xf80000d3 pc: 0x00000000
**
Regards,
Madhu
Hi All,
In continuation with debugging Olimex ARM-USB-OCD-H programmer, I did the following experiment and please find my findings below:
Firstly I am having an issue with Olimex device only when I do PXA270 programming.
Observation 1:
Olimex ARM-USB-OCD-H:
• I measured the voltage at Pin No. 15 and it is 3.15V
• Even after tried with different reset options the voltage at pin no 15 is 3.15V
Reset options like:
I changed diffrent settings in configuration file like,
reset_config trst_and_srst srst_pulls_trst
reset_config trst_only
reset_config trst_and_srst combined
reset_config trst_and_srst separate
reset_config srst_only
Amontec JATGKey2:
• The voltage measured at pin no 15 is 3.27V
Observation 2:
• Error message:
Failed to receiving data from debug handler after 1000 attempts
Execution of flash algorythm failed. Can't fall back. Please report.
error writing to flash at address 0x00000000 at offset 0x00000000
• Can you please help me in understanding the above error in more detail?
* About debug handler and
* Error writing to flash.
I request someone can look into the issue and help me to solve.
Regards,
Madhu
No-one will be able to help you unless you post all of the information.
What does pxa.cfg contain?
How do you select between JTAGkey and ARM-USB-OCD-H?
What is the full debug log (-d) of openocd in a successful case using the JTAGkey?
What is the full debug log when it fails, using the ARM-USB-OCD-H?
Both JTAG adapters are more or less equivalent and should behave the same. The Olimex is using a faster FTDI chip though so perhaps there is some timing issue.
Thanks a lot for your suggestion.
I will once again try to put all the information as you suggested.
** What does pxa.cfg contain?**
PXA.cfg file contains the openoncd configuration files. Basically, this file contains the information about telnet ports and the interface like JTAGKey2, olimex-arm-usb-ocd-h configuration file.
How do you select between JTAGkey and ARM-USB-OCD-H?
The interface between JTAGKey2/ARM-USB-OCD-H and the target devices through USB. At a time I am using one device to communicate to PXA270.
What is the full debug log (-d) of openocd in a successful case using the JTAGkey?
Step by step procedure to execute openocd command:
1.Open cmd prompt and change the directory to openocd
2. execute openocd -f pxa.cfg, target state will come to halt.
3. open another command prompt and telnet to localhost using the command: telnet localhost 3333
4. open onchip debugger will open and then issue the command: flash write_image erase unlock c:/pxa.nb0
5. Writing to flash starts and compeltes writing file from c:/pxa.nb0.
What is the full debug log when it fails, using the ARM-USB-OCD-H?
Step by step procedure to execute openocd command:
1.Open cmd prompt and change the directory to Openocd_olimex
2. execute openocd -f pxa.cfg, target state will come to halt.
3. open another command prompt and telnet to localhost using the command: telnet localhost 3333
4. open onchip debugger will open and then issue the command: flash write_image erase unlock c:/pxa.nb0
5. Writing to flash starts and compeltes writing file from c:/pxa.nb0.
I also attached necessary configuration files which are used for programming PXA270.
Please let me know if you need any further information.
Regards,
Madhusudhan H K
When I click on the link for this issue I get "Forbidden - Sorry, the permissions for this page don't allow you to access it."
I can see all other issues/tickets.
Any ideas why this one is restricted?
Thanks
From: Madhusudhan H Krishnasetty via OpenOCD-devel openocd-devel@lists.sourceforge.net
Sent: Monday 27 August 2018 11:42
To: openocd-devel@lists.sourceforge.net
Cc: Madhusudhan H Krishnasetty
Subject: [OpenOCD-devel] [openocd:tickets] #205 Olimex ARM-USB-OCD-H Debugger PXA Programming Issue
Thanks a lot for your suggestion.
I will once again try to put all the information as you suggested.
What does pxa.cfg contain?
PXA.cfg file contains the openoncd configuration files. Basically, this file contains the information about telnet ports and the interface like JTAGKey2, olimex-arm-usb-ocd-h configuration file.
How do you select between JTAGkey and ARM-USB-OCD-H?
The interface between JTAGKey2/ARM-USB-OCD-H and the target devices through USB. At a time I am using one device to communicate to PXA270.
What is the full debug log (-d) of openocd in a successful case using the JTAGkey?
Step by step procedure to execute openocd command:
1.Open cmd prompt and change the directory to openocd
2. execute openocd -f pxa.cfg, target state will come to halt.
3. open another command prompt and telnet to localhost using the command: telnet localhost 3333
4. open onchip debugger will open and then issue the command: flash write_image erase unlock c:/pxa.nb0
5. Writing to flash starts and compeltes writing file from c:/pxa.nb0.
What is the full debug log when it fails, using the ARM-USB-OCD-H?
Step by step procedure to execute openocd command:
1.Open cmd prompt and change the directory to Openocd_olimex
2. execute openocd -f pxa.cfg, target state will come to halt.
3. open another command prompt and telnet to localhost using the command: telnet localhost 3333
4. open onchip debugger will open and then issue the command: flash write_image erase unlock c:/pxa.nb0
5. Writing to flash starts and compeltes writing file from c:/pxa.nb0.
I also attached necessary configuration files which are used for programming PXA270.
Please let me know if you need any further information.
Regards,
Madhusudhan H K
Attachments:
[tickets:#205]https://sourceforge.net/p/openocd/tickets/205/ Olimex ARM-USB-OCD-H Debugger PXA Programming Issue
Status: new
Milestone: 0.9.0
Created: Wed Aug 22, 2018 04:15 AM UTC by Madhusudhan H Krishnasetty
Last Updated: Mon Aug 27, 2018 06:49 AM UTC
Owner: OpenOCD-Gerrit
Attachments:
Dear All,
I am very new to the family of open On-chip debugger. I need your help and support to use OCD products which are required for my project.
I would like to explain about the openocd debugger or programmer I am using in our project and need your valueable inputs.
I am using Amontec JTAGkey2 programmer to program PXA and CPLD. It is working absolutely fine without any issues.
Since I am having only one Amontec device and there is no support available, I found Olimex ARM-USB-OCD-H as an alternative device and started working on it.
I verified pin confifuration between the two devices are almost the same except pin2 in Olimex device has Vref.
Issues I am facing with Olimex programmer:
1. When I execute the command: openocd.exe -f pxa.cfg following warning and error I'm getting
* Warn : Bad value '00' captured during DR or IR scan:
Warn : check_value: 0x02
Warn : check_mask: 0x07
Error: JTAG error while writing DCSR
2. Next step is to telnet to the localhost 3333 and then typed the command : flash write_image erase unlock c:/pxa.nb0 , for PXA porgramming.
* I am unable to flash PXA programming and the error message I am getting is: Failed to receiving data from debug handler after 1000 attempts
Execution of flash algorythm failed. Can't fall back. Please report.
error writing to flash at address 0x00000000 at offset 0x00000000
I have attached the sceenshots for the reference.
Using Amontec device PXA programming and CPLD programming writing smoothly without any issues.
But why I am facing issues using Olimex ARM-USB-OCD-H programmer. Your kind support is much appreciated.
Thanks and regards,
Madhusdhan H K
Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is subscribed to https://sourceforge.net/p/openocd/tickets/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Related
Tickets: #205
On Mon, Aug 27, 2018 at 1:29 PM Tommy Murphy tm1234@users.sourceforge.net
wrote:
The issue is marked "Private" for some reason. I have no idea what that
means.
Hi!
First of all, you're using different versions of OpenOCD for the two cases which makes it pointless to compare them. Please use the latest released version (0.10.0) or the current development version.
By debug log I mean you should pass "-d" on the command line to get a lot more detailed information.
Also use only the interface and target scripts that come with OpenOCD. Don't copy them to your working dir and don't modify them (you have a typo in one of them, not sure if that's the cause of your problems or not). You should only need a single config file in your working dir that can contain the customizations you need. Something like the following, based on your existing config:
Hi Andreas,
Thank you very much for your findings.
Surely I will follow the instructions provided by you and will update you the result.
Can you please tell me know hot to change the option Private to No.
Regards,
Madhu
Thanks Andreas - I can see the ticket now that it's no longer "private".