Skip to content

Commit

Permalink
Linker load flash refactor fill memory (#294)
Browse files Browse the repository at this point in the history
* sw Makefile and general readme minor modifications

- For the Makefile within the SW folder, the wildcard was not behaving as expected for GNU make 4.3.
- For the general Readme, added the verible stuff before any make, and adding an initial folder structure. This structure can be helpful for someone new to get a initial organizational sense of the project.

* fix uart pins and spi flash memory size

* Added macro for uart baudrate by default based on the target

* linker modification for the flash (.data section being in wrong place)

* Added cmake + cpp with the same upstream folder structure

* Major commit includding Makefile doc automatisation, CMake, and FreeRTOS porting

1. Makefile doc automatisation
2. CMake
3. FreeRTOS porting (new linker tpl, new vectors.S)

* Minor permission changes

* Update README.md

* Minor CMake, linker, freeRTOS, and Makefile modifications

- Avoid creating an extra template for freertos linker.
- Modifying CMakeLists to be compliant with all apps (baremetal and freertos based)
- Readme and other minor modifications

* FPGA testing + commands automatizations

- change pin assignment to get the tricolor led working for the freertos application
- Modify readme files to update with all the different commands
- created a gdbInit file

* Updating readme and app for freertos

* CMake auto backend

No need to deal with hard-coded paths, CMake searches for you! :)

* fix CMake include list

* minor update

remove some comments
add additional command to directly run blinky freertos

* Using the needed HEAP for the current freeRTOS example

* Fixing apps and CMakeLists

* Re-adjust ram. Re-size also stack and heap for on-chip linker

* Add comment hjson

* Modify Readme

* Updating CMake backend

* Change crt logic based on supported preprocessor variables

* Added vector file for freertos

* Fix compilation issues with some APPs

* Added script to compile them all

* Added script file

* Fill linker flash load up to __boot_address
  • Loading branch information
JoseCalero authored Jun 19, 2023
1 parent e56e56f commit 81a6f81
Showing 1 changed file with 5 additions and 32 deletions.
37 changes: 5 additions & 32 deletions sw/linker/link_flash_load.ld.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,42 +26,15 @@ SECTIONS {
{
PROVIDE(__vector_start = .);
KEEP(*(.vectors));
__VECTORS_AT = .;
} >RAM AT >FLASH

/* this should be removed or made elegant */
/* Fill memory up to __boot_address */
.fill :
{
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
LONG(0xDEADBEEF);
FILL(0xDEADBEEF);
. = ORIGIN(RAM) + (__boot_address) - 1;
BYTE(0xEE)
} >RAM AT >FLASH

/* crt0 init code */
Expand Down

0 comments on commit 81a6f81

Please sign in to comment.