Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • card10/firmware
  • annejan/firmware
  • astro/firmware
  • fpletz/firmware
  • gerd/firmware
  • fleur/firmware
  • swym/firmware
  • l/firmware
  • uberardy/firmware
  • wink/firmware
  • madonius/firmware
  • mot/firmware
  • filid/firmware
  • q3k/firmware
  • hauke/firmware
  • Woazboat/firmware
  • pink/firmware
  • mossmann/firmware
  • omniskop/firmware
  • zenox/firmware
  • trilader/firmware
  • Danukeru/firmware
  • shoragan/firmware
  • zlatko/firmware
  • sistason/firmware
  • datenwolf/firmware
  • bene/firmware
  • amedee/firmware
  • martinling/firmware
  • griffon/firmware
  • chris007/firmware
  • adisbladis/firmware
  • dbrgn/firmware
  • jelly/firmware
  • rnestler/firmware
  • mh/firmware
  • ln/firmware
  • penguineer/firmware
  • monkeydom/firmware
  • jens/firmware
  • jnaulty/firmware
  • jeffmakes/firmware
  • marekventur/firmware
  • pete/firmware
  • h2obrain/firmware
  • DooMMasteR/firmware
  • jackie/firmware
  • prof_r/firmware
  • Draradech/firmware
  • Kartoffel/firmware
  • hinerk/firmware
  • abbradar/firmware
  • JustTB/firmware
  • LuKaRo/firmware
  • iggy/firmware
  • ente/firmware
  • flgr/firmware
  • Lorphos/firmware
  • matejo/firmware
  • ceddral7/firmware
  • danb/firmware
  • joshi/firmware
  • melle/firmware
  • fitch/firmware
  • deurknop/firmware
  • sargon/firmware
  • markus/firmware
  • kloenk/firmware
  • lucaswerkmeister/firmware
  • derf/firmware
  • meh/firmware
  • dx/card10-firmware
  • torben/firmware
  • yuvadm/firmware
  • AndyBS/firmware
  • klausdieter1/firmware
  • katzenparadoxon/firmware
  • xiretza/firmware
  • ole/firmware
  • techy/firmware
  • thor77/firmware
  • TilCreator/firmware
  • fuchsi/firmware
  • dos/firmware
  • yrlf/firmware
  • PetePriority/firmware
  • SuperVirus/firmware
  • sur5r/firmware
  • tazz/firmware
  • Alienmaster/firmware
  • flo_h/firmware
  • baldo/firmware
  • mmu_man/firmware
  • Foaly/firmware
  • sodoku/firmware
  • Guinness/firmware
  • ssp/firmware
  • led02/firmware
  • Stormwind/firmware
  • arist/firmware
  • coon/firmware
  • mdik/firmware
  • pippin/firmware
  • royrobotiks/firmware
  • zigot83/firmware
  • mo_k/firmware
106 results
Show changes
Commits on Source (7)
Showing
with 79 additions and 14 deletions
......@@ -11,6 +11,21 @@ build:
- merge_requests
- master
release:
stage: build
script:
- ./bootstrap.sh
- ninja -C build/
- arm-none-eabi-size build/bootloader/bootloader.elf build/epicardium/epicardium.elf build/pycardium/pycardium.elf
only:
- tag
artifacts:
paths:
- build/bootloader/bootloader.elf
- build/epicardium/epicardium.elf
- build/pycardium/pycardium.elf
- build/pycardium/pycardium_epicardium.bin
lint:
stage: test
image: "derq3k/card10-lint-env:20190806-201106Z-f95b541-dirty"
......
[submodule "lib/micropython/micropython"]
path = lib/micropython/micropython
url = https://github.com/micropython/micropython.git
[submodule "lib/micropython/micropython-lib"]
path = lib/micropython/micropython-lib
url = https://github.com/micropython/micropython-lib.git
......@@ -17,10 +17,9 @@ the following commands:
.. code-block:: shell-session
$ git clone https://git.card10.badge.events.ccc.de/card10/openocd.git
$ git clone --recursive https://git.card10.badge.events.ccc.de/card10/openocd.git
$ cd openocd
$ git submodule update --init
$ ./bootstrap
$ ./configure --disable-werror
......
......@@ -11,6 +11,9 @@ If you want to help us ensure the card10 will have been exactly as we reconstruc
## How To Build
A full guide for building is available in the docs as [How To Build](https://firmware.card10.badge.events.ccc.de/how-to-build.html).
Last Artifacts from Gitlab-CI: [![pipeline status](https://git.card10.badge.events.ccc.de/card10/firmware/badges/master/pipeline.svg)](https://git.card10.badge.events.ccc.de/card10/firmware/-/jobs/artifacts/master/browse/build/?job=release)
## How To Flash
Flasing with or without a debugger is described in detail in [How To Flash](https://firmware.card10.badge.events.ccc.de/how-to-flash.html).
......
#include "bootloader.h"
/* Autogenerated */
#include "splash-screen.h"
#include "card10-version.h"
#include "gfx.h"
#include "display.h"
......@@ -46,8 +47,12 @@ void bootloader_display_init(void)
*/
void bootloader_display_header(void)
{
txt_puts(&display_textb, "Bootloader\n");
txt_puts(&display_textb, __DATE__ "\n");
gfx_clear(&display_screen);
Color white = gfx_color(&display_screen, WHITE);
bootloader_display_line(0, "Bootloader", white);
bootloader_display_line(1, __DATE__, white);
bootloader_display_line(2, CARD10_VERSION, white);
}
/*
......
......@@ -123,12 +123,12 @@ void bootloader_stop(void)
void bootloader_dirty(void)
{
bootloader_display_line(3, "Writing.", 0xf000);
bootloader_display_line(4, "Writing.", 0xf000);
}
void bootloader_clean(void)
{
bootloader_display_line(3, "Ready. ", 0xffff);
bootloader_display_line(4, "Ready. ", 0xffff);
}
/******************************************************************************/
......
#include "bootloader.h"
#include "card10-version.h"
#include "card10.h"
#include "led.h"
......@@ -197,7 +198,7 @@ static void pmic_button(bool falling)
/******************************************************************************/
int main(void)
{
printf("\n\nBootloader\n");
printf("\n\nBootloader " CARD10_VERSION "\n");
card10_init();
/*
......@@ -210,8 +211,8 @@ int main(void)
// If the button is pressed, we go into MSC mode.
if (PB_Get(3)) {
bootloader_display_header();
bootloader_display_line(2, "USB activated.", 0xffff);
bootloader_display_line(3, "Ready.", 0xffff);
bootloader_display_line(3, "USB activated.", 0xffff);
bootloader_display_line(4, "Ready.", 0xffff);
run_usbmsc();
// If we return, don't try to boot. Maybe rather trigger a software reset.
......@@ -229,7 +230,7 @@ int main(void)
printf("card10.bin CRC is invalid!\n");
bootloader_display_header();
bootloader_display_line(
2, "Integrity check failed", 0xffff
3, "Integrity check failed", 0xffff
);
bootloader_display_line(4, "Trying to boot", 0xffff);
......@@ -239,7 +240,7 @@ int main(void)
printf("Trying to update firmware from external flash\n");
bootloader_display_header();
bootloader_display_line(
3, "Updating ...", 0xffff
4, "Updating ...", 0xffff
);
erase_partition();
flash_partition();
......@@ -253,7 +254,7 @@ int main(void)
} else {
bootloader_display_header();
bootloader_display_line(
2, "Failed to mount filesystem", 0xffff
3, "Failed to mount filesystem", 0xffff
);
printf("Failed to mount the external flash\n");
......
......@@ -21,6 +21,7 @@ executable(
'bootloader-usb.c',
'crc16-ccitt.c',
splash_screen,
version_hdr,
dependencies: [
libcard10,
max32665_startup_boot,
......
......@@ -96,6 +96,7 @@ void fatfs_init()
#else
s_globalLock = xSemaphoreCreateMutex();
#endif
s_globalFileSystem.generationCount = 1;
fatfs_attach();
}
......
......@@ -21,6 +21,7 @@
#include "Heart.h"
#include "gfx.h"
#include "display.h"
#include "card10-version.h"
#include "FreeRTOS.h"
#include "task.h"
......@@ -47,6 +48,7 @@ void vApiDispatcher(void *pvParameters)
int main(void)
{
LOG_INFO("startup", "Epicardium startup ...");
LOG_INFO("startup", "Version " CARD10_VERSION);
card10_init();
card10_diag();
......
......@@ -78,6 +78,7 @@ elf = executable(
module_sources,
l0der_sources,
ble_sources,
version_hdr,
dependencies: [libcard10, max32665_startup_core0, maxusb, libff13, ble],
link_with: [api_dispatcher_lib, freertos],
link_whole: [max32665_startup_core0_lib, board_card10_lib, newlib_heap_lib],
......
......@@ -87,6 +87,9 @@ void gfx_puts(
Color bg
) {
while (*str) {
gfx_putchar(font, r, x, y, *str, fg, bg);
str++;
x += font->Width;
if (x >= r->width) {
x = 0;
......@@ -94,8 +97,6 @@ void gfx_puts(
}
if (y >= r->height)
return;
gfx_putchar(font, r, x, y, *str, fg, bg);
str++;
}
}
......
Subproject commit b89114c8345e15d360c3707493450805c114bc8c
......@@ -37,6 +37,15 @@ add_global_link_arguments(
# python3 = import('python').find_installation('python3')
python3 = 'python3'
# Version Header
version_hdr = custom_target(
'card10-version.h',
output: 'card10-version.h',
build_by_default: true,
build_always_stale: true,
command: [files('tools/version-header.sh'), '@OUTPUT@'],
)
subdir('lib/')
subdir('bootloader/')
......
#include "mphalport.h"
#include "card10-version.h"
#include "max32665.h"
......@@ -13,8 +14,17 @@
extern void *__StackTop, *__StackLimit;
extern void *__HeapBase, *__HeapLimit;
static const char header[] =
"--------------------------------\r\n"
" Pycardium\r\n"
" Version: " CARD10_VERSION
"\r\n"
"--------------------------------\r\n";
int main(void)
{
epic_uart_write_str(header, sizeof(header));
pycardium_hal_init();
mp_stack_set_top(&__StackTop);
......
......@@ -78,6 +78,7 @@ elf = executable(
frozen_source,
modsrc,
mp_headers,
version_hdr,
include_directories: micropython_includes,
dependencies: [max32665_startup_core1, periphdriver, api_caller],
link_with: upy,
......
../../../lib/micropython/micropython-lib/collections.defaultdict/collections/defaultdict.py
\ No newline at end of file
../../../lib/micropython/micropython-lib/collections.deque/collections/deque.py
\ No newline at end of file
# Adapted so we don't need relative import support
from ucollections import *
from col_defaultdict import defaultdict
from col_deque import deque
class MutableMapping:
pass
../../../lib/micropython/micropython-lib/contextlib/contextlib.py
\ No newline at end of file