I'm trying to upload a new firmware on the unit roller connecting a ST_Link v2 to the SPI connector with STM32CubeProgrammer.
Roller SPI ---------------- ST_LinkV2
V --------------------- 3.3
G -------------------- GND
C ------------------ SWCLOCK
D ------------------ SWDIO
O ------------------- NC
when the firmware si uploaded the unit roller works (display right boot image and information, led is on, button and encoder works and menu works too), but if I disconnect the SPI cable and I power the unit from grove or dc in 6/16v, the unit doesn't work(black display, led off, etc).
this is the .hex firmware used.
and this is the cube log:
22:11:59 : MASS ERASE ...
22:11:59 : Mass erase successfully achieved
22:11:59 : UPLOADING ...
22:11:59 : Size : 1024 Bytes
22:11:59 : Address : 0x8000000
22:11:59 : Read progress:
22:11:59 : Data read successfully
22:11:59 : Time elapsed during the read operation is: 00:00:00.019
22:12:36 : Opening and parsing file: ROLLERCAN.hex
22:12:36 : Memory Programming ...
22:12:36 : File : ROLLERCAN.hex
22:12:36 : Size : 94.38 KB
22:12:36 : Address : 0x08002000
22:12:36 : Erasing memory corresponding to segment 0:
22:12:36 : Erasing internal memory sectors [4 51]
22:12:37 : Download in Progress:
22:12:39 : File download complete
22:12:39 : Time elapsed during download operation: 00:00:02.735
22:12:39 : Verifying...
22:12:39 : Read progress:
22:12:39 : Time elapsed during verifying operation: 00:00:00.645
22:12:39 : Download verified successfully
22:12:39 : Memory [0x08000000 : 0x08020000] - Checksum : 0x011ED0C0
22:12:39 : RUNNING Program ...
22:12:39 : Address: : 0x08002000
22:12:39 : Application is running, Please Hold on...
22:12:39 : Start operation achieved successfully
this is the log of OB:
{
"deviceId" : 1128,
"bitNameToValue" : {
"RDP" : 170,
"BOR_LEV" : 0,
"nRST_STOP" : 1,
"nRST_STDBY" : 1,
"nRST_SHDW" : 1,
"IWDG_SW" : 1,
"IWDG_STOP" : 1,
"IWDG_STDBY" : 1,
"WWDG_SW" : 1,
"nBOOT1" : 1,
"SRAM_PE" : 1,
"CCMSRAM_RST" : 1,
"nSWBOOT0" : 1,
"nBOOT0" : 1,
"NRST_MODE" : 3,
"IRHEN" : 1,
"PCROP1_STRT" : 16383,
"PCROP1_END" : 0,
"PCROP_RDP" : 0,
"WRP1A_STRT" : 63,
"WRP1A_END" : 0,
"WRP1B_STRT" : 63,
"WRP1B_END" : 0,
"SEC_SIZE1" : 0,
"BOOT_LOCK" : 0
}
}
If I power the unit from grove or DC in, I have 3.3v on SPI (V,G).
I tried to merge and burn a bootloader.hex too but no joy.
after uploading the firmware if I connect the grove cable of an atom lite running a i2c scanner code, I can see 0x64 on serial monitor. I can also disconnect the SPI cable and the roller still works until a power cycle.
ideas??
tnks a lot!!