New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with DPS3005 and OpenOCD 0.10.0 (20190423) #144
Comments
I've read the code and it seems that the app needs to be flashed at 0x8001400, and it worked... once ? |
Did it boot to the application once? Hmmm... What happens if you start the DPS and halt it using OpenOCD? What is the value of PC? |
Got some progress. Via gdb, I see that it's crashing in |
When the screen is displayed, I do see the wifi icon that's blinking. The main issue I have is I'm not sure if
I would have expected to find 64 pages of 1024 bytes (that's what ST-LINK is showing on Windows). Here it's reporting 16 pages of 4096 bytes. Obviously, it's failing to program the main program at address 0x8001400, since only |
That is indeed strange. The device ID matches mine and the STM32F100 has, as you say, 64 1kb pages. Could you try to alter the start address of the app (stm32f100_app.ld) to 0x08002000 (remember to change this address in stm32f100_boot.ld too) to see if that helps. You should probably remove all flash access in past.c. |
No, it does not change anything finally. I even tried to install the same openocd version as yours and it does not work either (even using your openocd/scripts).
BTW, I don't have a "red" nor "black" PCB (tried both options, none work) but a green one for the screen PCB. |
Ok, I've made some progress here:
For address Can you state what is your compiler version ? I have I've digging further to check if the stack was corrupted (by looking at what it is when entering the function). |
My mistake. The stack is not currupted, it's just that |
I'm a bit struck here. Is there a watchdog on this system ? |
Glad you sorted it out and thanks for the detailed writeup, it will help anyone unlocking using ST-LINK to unlock. On a side note the IWDG should be used to make sure we never miss an OCP interrupt. |
I've a DPS3005, macOS, and did the following:
MODEL := DPS3005
/usr/local/gnu-mcu-eclipse/openocd/0.10.0-12-20190422-2015/scripts
like this:$ openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg
then, after reboot, the DPS3005 did no show anything on the screen, but I got exactly same message. Even this command said:
so it appears to have worked.
11. Then I tried to flash the opendps firmware, but got this:
Yet, the dpsboot flashed correctly:
arm-none-eabi-objcopy -O binary -S opendps.elf opendps.bin
, and used ST-UTIL on Windows to flash it successfully at address 0x08000000.So, this let me think about the issues I've found:
The text was updated successfully, but these errors were encountered: