Hi,
I have been developing with the Altera USB Blaster, but would like to switch to J-link for its increased feature set. I'm having an issue with basic loading and executing of code from jlink command line (I am running on CentOS).
My board automatically boots from SD card into uboot, and then I halt it prior to loading my application. I then connect using JLinkExe, and use 'loadfile' to load an srec of my image into memory. I then 'setpc' to the starting point for my code and then 'go', but I get an unaligned memory access.
I know that my image is good as I have been using it for months. Uboot is able to load that same binary to the same address and execute it just fine. What is also weird is that if I use 'step' instead of 'go', the PC only increments by 2 bytes each time instead of 4.
Any help would be greatly appreciated, thanks!
I have been developing with the Altera USB Blaster, but would like to switch to J-link for its increased feature set. I'm having an issue with basic loading and executing of code from jlink command line (I am running on CentOS).
My board automatically boots from SD card into uboot, and then I halt it prior to loading my application. I then connect using JLinkExe, and use 'loadfile' to load an srec of my image into memory. I then 'setpc' to the starting point for my code and then 'go', but I get an unaligned memory access.
I know that my image is good as I have been using it for months. Uboot is able to load that same binary to the same address and execute it just fine. What is also weird is that if I use 'step' instead of 'go', the PC only increments by 2 bytes each time instead of 4.
Any help would be greatly appreciated, thanks!