2020-11-03 07:22 AM
The eaxample of dfu mode stm32l152 not run !!!
These are my step :
I build and execute code via IAR on Nucle0l152 board with usb _CN1 cable .
Then i dsconnected CN1 usb cable and i connected my USB cabel to PA11, PA12 , gnd and 5 v .
Then I open Open "DfuSe Demo" and download the "STM32L152xE_NUCLEO_SysTick_0x08007000.dfu" provided in Binary directory.
Then I upload the file.dfu .
Then i pressed reset on the board but led LD2 NOT BLINKING!!
WHY
Can help me .
Thanks .
Francy
2020-11-05 10:01 AM
Sounds like it is not running your code.
Make sure that the BOOT0 pin is LOW, so it runs code in FLASH and not ROM
You're going to have to debug the code in the board.
Instrument the code so you can know if it ends up in Error_Handler() or HardFault_Handler(), perhaps use the NUCLEO VCP to facilitate this
2020-11-05 10:03 AM
Code at 0x08007000 isn't magically run out of boot/reset
The processor starts code via the Vector Table at 0x08000000, which either needs to be a loader that calls code deeper into the device, or the application itself.
2020-11-05 10:29 AM
2020-11-05 11:42 AM
I don't have the time/resources to chase down other peoples project level bugs.
You'll need to run the debugger on the DFU application, and confirm that it transfers control into your LED blinking application. Step the transition into the application code. Instrument the DFU loader so you can see/observe what is happening via the NUCLEO's VCP in a terminal application.
2020-11-06 06:20 AM
A question clive :
given that the example of the ST should work I ask you if the connection of the cables and the execution of the commands are correct
As in the figure,:
I connected the CN2 USB cable to program the firmware of the DFU example, at this point I also connect the USB cable and, opening the DFUSEmode software, I notice that STM device DFU is detected.
Then, leaving both USBs inserted (Is this correct?) I upload the .dfu file via DFUSE.
Then I upgrade and then reset the card with both cables connected.
At that point I should see led2 blink.
Thanks
2020-11-06 07:36 AM
Another question
I put a jumpe between VDD and BOOT0 , then i used just USB cable , I pressed reset then hold on button the release reset and rekease button an in windows I have 3 labe l ,
A differnce respect tutorial I see in TARGETS file (00 Internal Flash ) but in tutorial appear (00 ST) !!
Can be an error .
Thanks