Skip to content

Failed to start hello application from main memory #21

@dorfell

Description

@dorfell

Hi Skordal, I would like to thank you for designing and uploading the Potato SoC, I admire your work and I know how time consuming it can be to maintain and solve all the issues and users requests.
I'm opening these issue because I'm not being able to load the hello application using the bootloader. When I load the bootloader.coe to the aee_rom and configure the FPGA the cutecom show the message; "Potato Bootloader-waiting .... "

Then i close the cutecom connection to release the ttyUSB device and be able to use the following command:
cat image.bin /dev/zero | head -c128k | pv -s 128k -L 14400 > /dev/ttyUSB0
Following, I re-open my cutecom connection but never see the: "Booting" message neither the "." that should be printing while writing the image.bin.

I know the size of the main_memory (implemented with the pp_soc_memory.vhd) is 128 [kB] and its base address is 0x0000 0000. Also, that corresponds with the command : cat image.bin ... command which sends 128 [kB]. However, when I compile the hello aplication, the hello.bin is 428 [B] and the for loop in the "bootloader/main.c": for(int i = 0; i < APP_LEN; i++) is expecting #define APP_LEN (0x20000) = 16 [kB]. This mismatch of sizes is I think, the reason for the bootloader program never reach the: goto *APP_ENTRY instruction to jump to the main_memory.
So my questions are the following;

  1. am I using the correct procedure to load the hello image to the main memory?
  2. What serial program are you using; cutecom, minicom, etc?
  3. What is the expected size of the hello.bin? (I'm getting 428 [B])
  4. How should I modify the command:
    cat image.bin /dev/zero | head -c128k | pv -s 128k -L 14400 > /dev/ttyUSB1
    to send different image sizes?
  5. Is there another way of jumping to main memory after coping all the image.bin.

Thanks in advance for reading all the issue, I know you're really busy to be answering this bunch of question, but I'd really appreciated if you can do it :-D

Finally, I have attached an image of my setup.

IMG_20190801_224640

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