mirror of
https://github.com/fairwaves/UHD-Fairwaves.git
synced 2025-10-22 23:31:59 +00:00
This is a fixup commit for the previous commit (8D7B9D84). ZPU is a stack machine where all code, constants, variables and function stack are stored in a single memory block. Compiler doesn't through any warnings or errors if the allocated memory is exhausted, so we have to check this manually. Our memory size is only 16383 bytes and we already had situation when all of it is exhausted leading to unpredictable behaviour. Unfortunately we can't know how much memory exactly do we need, but we estimated that 1300 bytes is enough for us now, so this is what we're checking.
######################################################################## # ZPU firmware code for USRP2 and N Series ######################################################################## This code requires the gcc-zpu tool-chain which can be found here: http://opensource.zylin.com/zpudownload.html zpu-elf-gcc should be in your $PATH ######################################################################## # Run the following commands to build ######################################################################## mkdir build cd build cmake ../ make