Grigori Goronzy
Grigori Goronzy
Both of these snippets are the same, but I think I know what you mean. :) It should be easy enough to add a special case for newer bootloader versions....
Yes, that is why I reverted it for now. It looks like newer STC89C52 use an stc12-like protocol and I'd like to avoid the code duplication if possible. I ordered...
It looks like it is considered a feature by STC that this isn't supported. If there is no (official) way to read back the memory in the bootloader, that's the...
Yes, IAP allows you to read and write flash memory from your own code. It's used for the "EEPROM" section of the flash memory. On devices that are called "IAP"...
> From what I can recall, I was able to read the code sections of memory, not just EEPROM section. (I think they are really just a logical partition of...
Are you sure the serial port /dev/serial0 is correct? What is it mapped to? Please note that you may not be able to use the Raspberry Pi "Mini UART". It...
@tijopr You could also try switching to the full-featured UART (if you don't need Bluetooth) as described in the document I linked to.
ttyS0 means you're still using the mini UART. This cannot work. Please switch to the full (pl011) UART!
It could be a number of issues - there's a configuration bit (`bsl_pindetect_enabled`) that disables the bootloader unless specific I/O lines are tied to ground. See STC's manuals for more...
Can you provide any more details about the board and MCU model? Also, please write in English, if possible. Please provide debug output by running stcgal with the ```-D``` option.