diff --git a/README.md b/README.md index dfb0e250..63adf6ba 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,8 @@ Before you can compile software for PER car, here are some steps you need to tak 6. Install [arm-none-eabi-gcc](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads): Compiler specific to ARM based targets. - [Windows](https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.07/gcc-arm-none-eabi-10.3-2021.07win32/gcc-arm-none-eabi-10.3-2021.07-win32.exe) - Note: You must manually add this to your path. To do so, open the start menu and select "edit the system environment variables". From here, copy the full file path of your arm-none-eabi-gcc executable into the PATH environment variable (C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2021.07\bin). Your filepath may not look exactly the same, but it should look similar to this. - - Mac: Install the required compiler using [homebrew](https://brew.sh/): `brew install arm-none-eabi-gcc` + + - Mac: Install the required compiler using [homebrew](https://brew.sh/): `brew install gcc-arm-embedded` - Linux - Find it yourself 7. Install [OpenOCD v0.11.0-3](https://github.com/xpack-dev-tools/openocd-xpack/releases/tag/v0.11.0-3/): Open Source On-Chip Debugger used to help GDB debug your code on a STM32 processor. - It is extremely important that you install this version of openocd or else you might run into issues with debugging diff --git a/source/f7_testing/main.c b/source/f7_testing/main.c index a1ff2baa..454167df 100644 --- a/source/f7_testing/main.c +++ b/source/f7_testing/main.c @@ -29,10 +29,10 @@ int main() { HardFault_Handler(); } - if(!PHAL_initGPIO(gpio_config, sizeof(gpio_config)/sizeof(GPIOInitConfig_t))) - { - HardFault_Handler(); - } + // if(!PHAL_initGPIO(gpio_config, sizeof(gpio_config)/sizeof(GPIOInitConfig_t))) + // { + // HardFault_Handler(); + // } /* Task Creation */ schedInit(APB1ClockRateHz); /* Schedule Periodic tasks here */ @@ -46,4 +46,4 @@ void HardFault_Handler() { __asm__("nop"); } -} \ No newline at end of file +} diff --git a/source/torque_vector/gps/gps.c b/source/torque_vector/gps/gps.c index 24f17ed5..a5749124 100644 --- a/source/torque_vector/gps/gps.c +++ b/source/torque_vector/gps/gps.c @@ -30,7 +30,7 @@ double checkVelN; double checkVelN2; signed long prev_iTOW; uint16_t counter; -u_int16_t diff; +uint16_t diff; // Nav Message GPS_Handle_t gps_handle = {.raw_message = {0}, .g_speed = 0, @@ -214,4 +214,4 @@ bool parseVelocity(GPS_Handle_t *GPS) return correctFix; } return false; -} \ No newline at end of file +}