firmware not working for BMP21 probe. #2047
-
I have replicated [https://black-magic.org/_downloads/9268bd95a59bf58b68008004df51c31f/bmpm_v2_1c_schematic.pdf](BMP21 schematics) and tried to download the native firmware into it using segger j-link, but it doesn't work. I tried to debug it using segger j-link from the command line, it seems like stm32f103Cb has entered hard fault handler. I tried to build the source code for the BMP21 (I know it's a legacy board) but all the targets I see in meson build are this: can anyone help ? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
👋🏼 First off, a point of nomenclature.. what you're wanting to work with are not targets - those, strictly, are the things the firmware supports debugging. You are wanting to build for a specific probe. In your case, Second, without knowing what exactly you tried to load, where, and with what option bytes set.. there's too little information here to be able to help. You will need to load the project bootloader onto the STM32F103 first, and make sure it enumerates and boots. You can then load the firmware, the firmware does not include the bootloader in the image. You will need to have set the option bytes appropriately for the HW3 platform (v2.1c hardware is hardware ABI version 3) so the firmware can correctly determine what it's running on. To build the bootloader, you will need to run |
Beta Was this translation helpful? Give feedback.
-
@dragonmux after I received the board, I soldered all the components onto it and made sure that the MCU USB port is working by writing my own code for it. what I am trying to accomplish now it have the black magic firmware running on it so that I can use this board as a debugger for other boards. I download the binary file for Stable Release v1.10.2 and tried to download the binary file into my debugger board using a j-link but it wasn't working (doesn't appear under the ports tab in the device manager). I tried older release which is Stable Release V1.6.1 but also, it's not working. can you tell what I am doing wrong? |
Beta Was this translation helpful? Give feedback.
-
Everything in our original reply still applies. You still need to provision the bootloader, and option bytes. The firmware on its own is not sufficient for a from-scratch bringup. It's not about the release chosen, the board simply doesn't have the bootloader or option bytes to start with. We would also strongly advise using Bootloader first, make sure that enumerates. |
Beta Was this translation helpful? Give feedback.
-
@dragonmux
|
Beta Was this translation helpful? Give feedback.
-
It's not a directory, it's a specific target in the Meson build system - hence telling you to use
|
Beta Was this translation helpful? Give feedback.
-
@dragonmux I still haven't downloaded the actual firmware but I will follow the Firmware Upgrade steps shown on the website. my question, you said:
do I have to configure any options bytes before proceeding ? because I haven't modified any of the option bytes. |
Beta Was this translation helpful? Give feedback.
-
Yes, you will still need to configure the option bytes so the firmware can know what the hardware ABI is present to properly talk with the hardware. There have been 6 hardware interface versions for the native hardware so far, hence mentioning before which one the v2.1c hardware is. |
Beta Was this translation helpful? Give feedback.
-
@dragonmux |
Beta Was this translation helpful? Give feedback.
-
What you're looking for is described in the platform.c for the probe: blackmagic/src/platforms/native/platform.c Lines 65 to 85 in ab6d92e |
Beta Was this translation helpful? Give feedback.
-
@dragonmux Anyhow, firmware was downloaded successfully and it appears as 2 COM ports in the device manager as expected. Thanks a lot, couldn't have done it without you. |
Beta Was this translation helpful? Give feedback.
What you're looking for is described in the platform.c for the probe:
blackmagic/src/platforms/native/platform.c
Lines 65 to 85 in ab6d92e