aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-06-21Generalize the sdram-based file systemekermitPaul Selkirk
2016-06-21Sudden realization that initializing the uart from the ekermit library is ↵Paul Selkirk
Just Wrong.
2016-06-20E-Kermit, for file upload goodnessPaul Selkirk
2016-06-20Ring buffers for more reliable UART receives.Paul Selkirk
2016-06-20Use SDRAM for a very limited sort of heap.Paul Selkirk
2016-06-14Whack shell scripts to work on Debian Jessie too.Rob Austein
2016-06-14hsm project was failing with obscure make error because makefile did not ↵Rob Austein
specify dependency on libcli.
2016-06-14Pull in sw/libhal CLIENT_TRANSPORT makefile fix.Rob Austein
2016-06-14Pull libhal changes into stm32 subrepo.Rob Austein
2016-06-14Track libhal RPC_MODE simplification; add bootloader to "all" target.Rob Austein
2016-06-14Bring sw/stm32 super-repository up to date with the ten zillionRob Austein
commits which have been made in other repositories since the last time anybody bothered to synchronize this. Poster child for why this kind of recursive hairball belongs in release engineering rather than in source code repositories which are under active development, but that yak can wait a little while longer for its shave.
2016-06-14Import cli-test into hsm pretty much as-is.Paul Selkirk
2016-06-13Change gpio setups from macros to inline functions.Paul Selkirk
2016-06-13RSA keygen needs even more stack space than I thought.Paul Selkirk
Also, it turns out the linker wants to include initializers for sdram variables in the .elf and .bin files, even though it should handle it like bss. So now we manage sdram directly with a pseudo-malloc.
2016-06-13Only the HSM project needs the RTOS; most of the test projects can use the ↵Paul Selkirk
STM32 HAL code directly.
2016-06-13Add __end symbols for CCMRAM and SDRAM sections.Paul Selkirk
This lets us, say, use these sections for stack or heap.
2016-06-13SDRAM is for uninitialized data only.Paul Selkirk
We don't plan to put initialized data in SDRAM, and we don't have startup code to copy initialized data, so don't even bother. Further, the linker will reserve space in FLASH, even for uninitialized data, so just don't.
2016-06-13Hide sdram initialization functions and defines.Paul Selkirk
2016-06-13Use a delay loop, so sdram can be initialized from the startup code, before ↵Paul Selkirk
the clock is running.
2016-06-09Put thread stack buffers in SDRAM, because pkey uses a lot of stack.Paul Selkirk
Also rearchitect the way we handle RPC requests - have a bunch of waiting dispatch threads rather than continually creating and deleting threads.
2016-06-09Rename main.c to hsm.c for consistency and a slightly simpler Makefile.Paul Selkirk
2016-06-08Include strings.h, for strcasecmp().Rob Austein
2016-06-08bootloader doesn't need stm-fmc eitherFredrik Thulin
2016-06-08Merge branch 'master' of git.cryptech.is.:sw/stm32Fredrik Thulin
2016-06-07Don't reboot when CLI logout is intended.Paul Selkirk
2016-06-07Check the HARDWARE_EARLY_DFU_JUMP flag as soon as possible in the boot process.Paul Selkirk
This avoids the situation where the bootloader systick happens during firmware initialization, and freaks out. Also build the bootloader with the minimum resources needed (no RTOS, no SPI, no I2C).
2016-06-07fix some commentsFredrik Thulin
2016-06-06Use refactored slip/serial code.Paul Selkirk
Client daemon sends client ID, echo it back in response.
2016-06-06Split HAL_UART_RxCpltCallback into uart-specific callbacks.Paul Selkirk
2016-06-06Refactor HAL_UART_MspInit, link DMA in MX_USART*_UART_Init so ↵Paul Selkirk
HAL_UART_MspInit doesn't have to.
2016-06-06Fix UART pin assignments. (It uses the Alternate in any case.)Paul Selkirk
2016-06-06Fix definition of LED_RED in mbed_die.Paul Selkirk
2016-06-06Change enum stm_uart_port port to a typedef.Paul Selkirk
2016-06-06Restore LED definitions for dev-bridge board.Paul Selkirk
2016-06-06Remove the 6-second blue blink for alpha board.Paul Selkirk
2016-06-06Remove unused hex file.Paul Selkirk
2016-06-06Remove unused projects.Paul Selkirk
2016-06-06Don't break builds for dev-bridge board.Paul Selkirk
2016-06-02Merge branch 'ft-uart_it'Fredrik Thulin
2016-06-02Use DMA for UART RX instead of interrupts.Fredrik Thulin
DMA is more efficient and less prone to miss characters than interrupts. An open question is if circular mode is really the best. If someone copy-pastes more than the RX buffer size of configuration into the CLI, we risk the DMA controller catching up with the reader and overwriting data not yet read. Since we don't have flow control back to the users terminal, we will always fail if too much data is entered before we can process it. The question is if failing to stuff new data at the end of a buffer might be better than data being overwritten - thus messing up the commands in unpredictable ways.
2016-06-02Move the rest of the CLI commands out of cli-test.c.Fredrik Thulin
2016-06-01Implement circular buffer UART RX using interrupts.Fredrik Thulin
2016-06-01Move FPGA related commands to mgmt-fpga.cFredrik Thulin
2016-06-01Wait for FPGA_DONE on startup (available on Alpha board)Fredrik Thulin
2016-05-31Update huart names to reflect change in stm-uart.Fredrik Thulin
2016-05-27Merge branch 'ft-dfu-code-loading'Fredrik Thulin
2016-05-27formattingFredrik Thulin
2016-05-27Merge branch 'master' of git.cryptech.is.:sw/stm32Fredrik Thulin
2016-05-27DFU working - but no signature validation for now.Fredrik Thulin
2016-05-27cli_command_root_node: bugfix missing command callbackFredrik Thulin