Commit graph

173 commits

Author SHA1 Message Date
stnolting
f30aaddf56 [sw] remove bootloader ISA checks / warning 2024-12-12 19:16:59 +01:00
stnolting
1b577f10a8 [bootloader] reduce ISA & RAM requirements
rv32e!
2024-12-11 20:54:29 +01:00
Lukas Pajak
ea16b6abdc [sw/bootloader] add feature switches to makefile 2024-12-04 10:10:09 +01:00
Lukas Pajak
6aa190865d [sw/bootloader] disable twi by default 2024-12-04 10:00:05 +01:00
Lukas Pajak
9a5bdfba6c [sw/bootloader] add TWI boot option 2024-11-28 11:20:31 +01:00
stnolting
64bc5983d2 [bootloader] add MABI to makefile 2024-10-29 21:37:09 +01:00
stnolting
dbc4cfa1d2 [bootloader] rework local makefile 2024-10-23 23:27:34 +02:00
stnolting
d458937ee9 [bootloader] go to sleep on error 2024-09-27 06:07:20 +02:00
stnolting
1ba89c0479 [bootloader] minor edits 2024-07-19 21:13:37 +02:00
stnolting
6a6b89b209 [sw] minor comment edits 2024-07-05 13:00:29 +02:00
stnolting
5532906ccd [sw] bootloader: minor comment edits 2024-07-02 20:15:31 +02:00
stnolting
689baa490a [bootloader] increase auto-boot timeout
from 8s to 10s
2024-06-14 15:07:04 +02:00
stnolting
656c820b1d update bootloader
do not allow booting from XIP flash if XIP module not implemented (prevent bootloader crash)
2024-02-11 10:24:43 +01:00
stnolting
09e556a925 [bootloader] update XIP configuration 2024-02-09 14:00:12 +01:00
stnolting
ef6965c473 update bootloader
shut down heart beat LED (if enabled) before booting application
2024-01-20 22:56:52 +01:00
stnolting
fed34aad43 update bootloader (XIP setup function) 2023-11-18 18:39:04 +01:00
stnolting
99c3cc1b03 [bootloader] minor edits
explicitly declare interrupt routines to be executed as machine mode code
2023-10-11 20:47:13 +02:00
stnolting
ae56e0073e update bootloader
Bootloader does not longer require ispace_base/dspace_base addresses from SYSINFO
2023-07-28 10:19:00 +02:00
stnolting
52fbd613a3 update bootloader
remove CUSTOM_ID ("CID")
2023-07-27 09:57:58 +02:00
stnolting
8a79450544 update bootloader 2023-07-15 21:10:13 +02:00
stnolting
16b057965b [bootloader] minor edits 2023-06-23 11:51:03 +02:00
stnolting
3533c900b3 [bootloader] re-link + minor edits
Add memory sync to bootloader (flush caches before booting the application).
2023-06-02 13:37:39 +02:00
Brian Nemetz
39a119f6b3 Added a bootloader config parameter (UART_HW_HANDSHAKE_EN) to enable UART hardware flow control. Defaults to disabled. 2023-03-30 20:00:16 -07:00
Alvaro Gamez Machado
6667dbdcc6 [sw] bootloader: send wake up command to flash before trying to speak with it
The ice40 family of FPGAs, send a sleep command to the flash once it's
finished with self-programming in order to save some power [1], unless
instructed not to when generating the bitfile (icepack -s or equivalent
setting on Radiant)

We don't want the bootloader to depend on the bitfile generation settings
and thus we wake up the flash, but since we want a bootloader as small as possible,
we don't care to put it back to sleep again (because we don't even know if it was
sleeping or not) and let the user application decide what to do with it.

[1] https://www.latticesemi.com/~/media/LatticeSemi/Documents/ApplicationNotes/IK/FPGA-TN-02001-30-iCE40-Programming-Configuration.pdf?document_id=46502 , page 20
2023-03-16 15:34:14 +01:00
stnolting
9de253c61a update bootloader
split MISA and MXISA CSR output in bootloader intro screen
2023-03-07 17:27:17 +01:00
stnolting
6f9edd5186 update bootloader 2023-03-05 19:00:46 +01:00
stnolting
2c40f42f30 update bootloader 2023-03-04 12:15:30 +01:00
stnolting
b020dd9187 update bootloader (image) 2023-03-02 19:08:54 +01:00
stnolting
5e5b521e74 typo fix (second try) 2023-02-27 19:26:37 +01:00
stnolting
f939119cde typo fix 2023-02-27 19:23:39 +01:00
Stephan
2b3712acbd
Merge branch 'main' into sysinfo_ptr
Signed-off-by: Stephan <stnolting@gmail.com>
2023-02-27 19:14:19 +01:00
emb4fun
f51130379b
SYSINFO: Change "variable style" by "pointer style" 2023-02-27 15:14:12 +01:00
emb4fun
777977ee93
MTIME: Change "variable style" by "pointer style" 2023-02-27 11:50:04 +01:00
stnolting
1f42a271e6 [sw] remove trailing spaces 2023-02-05 09:47:47 +01:00
stnolting
c4c7db102a [sw] update bootloader 2023-01-21 15:27:11 +01:00
Stephan
74c0817a1e
[sw] rename library functions (#467)
* [sw/lib] rename library functions (UART + RTE)

* [sw/example] change library function calls

* [sw/lib] change library function calls

* [sw/lib] add backwards compatibility layer

* [docs] minor edits/fixes

* [sw/lib] comment edits

* update bootloader
2022-12-28 13:02:51 +01:00
stnolting
ef715f5116 fix minor bootloader bug
console always printed "invalid command" at start
2022-11-05 09:52:31 +01:00
stnolting
b4a9ac2dbe [bootloader] update SPI functions 2022-11-01 18:17:32 +01:00
stnolting
4d5952af04 [sw] cleanup makefiles 2022-10-03 18:28:59 +02:00
stnolting
d3ca99326b [bootloader] update SPI setup function call 2022-07-31 21:19:00 +02:00
stnolting
c897d0f85a [bootloader] show CUSTOM_ID
Value assigned to CUSTOM_ID generic is shown as "CID" in bootloader intro.
2022-07-22 15:20:34 +02:00
stnolting
1053e4cf7e [bootloader] update source code 2022-07-11 20:55:32 +02:00
stnolting
9f08db334f [bootloader] fix endianness
minor clean-ups; changed default flash base address to 0x02000000
2022-07-09 12:13:18 +02:00
stnolting
bd1f333991 minor error code edits 2022-05-20 21:36:20 +02:00
stnolting
bc94b2dc37 rework SPI handling of bootloader
* remove "presence detection" by reading manufacturer ID
* added new presence detection mechanism by checking if the WEL bit of the flash status register can be set and cleared again
* added new configuration option to select spi flash address width (2,3 or 4 bytes)
2022-05-20 16:58:43 +02:00
stnolting
5cf8e5d3b8 🐛 fixed passing of USER_FLAGS variable for making bootloader
fixed bug that prevented the USER_FLAGS variable from being forwarded to the core makefile so it DISCARDED any bootloader customization options
2022-05-20 16:55:13 +02:00
stnolting
2a1dd0b34f check if SPI module available 2022-04-06 21:11:34 +02:00
stnolting
68cbc4a5e7 minor typo fixes (comments) and edits 2022-02-24 04:28:44 +01:00
stnolting
e0ecfa3fc0 [sw/bootloader] update m(x)isa output 2022-02-16 07:49:51 +01:00
stnolting
a64f8cc48f [sw/bootloader] improved user console
more detailed messages
2022-02-03 09:07:35 +01:00