UPB-FILS-MA / questions

A repository for hosting questions from students regarding lectures and labs.
1 stars 1 forks source link

Rebootable continuously #22

Open Raluca3012 opened 3 months ago

Raluca3012 commented 3 months ago

Question

Question

I can't upload my code to the raspberry pi pico. I have talked to you today at the course.

Details

Material read

alexandruradovici commented 3 months ago

The memory.x file is missing the bare metal part. If you look at https://github.com/UPB-FILS-MA/lab-solutions/blob/main/memory.x, the second part of the file adds some sections for bare metal and PAC.

You are using PAC, so you have to add those sections to your memory.x file.

/* This is required for the bare metal and PAC bootloader */
SECTIONS {
  /* ### Boot loader */
  .boot_loader ORIGIN(BOOT2) :
  {
    KEEP(*(.boot_loader*));
  } > BOOT2

} INSERT BEFORE .text;
Raluca3012 commented 3 months ago

Thank you, it works now