Skip to content

Serial flashing problems #554

Description

@PanosMich

Hello Rene,

I am sorry to bother you again, but I am having problems flashing code with the serial port.

I tried the latest Flashy and it works great with files around 200K. However, trying to upload 2M files fails returning a "timeout awaiting response" error.

I also tried cflashy, but it does not seem to work.
For example, in circle/sample/02-screenpixel, I build the sample using make and I use "objcopy -O ihex kernel8-32.elf kernel8-32.hex" to produce the .hex file.
After that, executing:
"make flash"
or "../../tools/cflashy /dev/ttyS5 --flashBaud:115200 --userBaud:115200 kernel8-32.hex"
or "../../tools/cflashy /dev/ttyS5 --flashBaud:115200 --userBaud:115200 --reboot:REBOOT kernel8-32.hex"
or "../../tools/cflashy /dev/ttyS5 kernel8-32.hex"
the command waits for ever with no feedback.

Sniffing the serial port I found out that commands without the --reboot:REBOOT option send a bunch of 0x80 characters and a "R" at the end, while the bootloader returns a "IHEX-F" message.

Commands with the --reboot:REBOOT option send a "REBOOT", then a bunch of 0x80 characters and a "R" at the end, while the bootloader returns a "IHEX-F#ERR:formatIHEX-F" message.

Any thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions