Skip to content
This repository has been archived by the owner on Aug 13, 2018. It is now read-only.

I can compile successfully, but I can't write it to MCU. #3

Open
3038922 opened this issue May 11, 2018 · 3 comments
Open

I can compile successfully, but I can't write it to MCU. #3

3038922 opened this issue May 11, 2018 · 3 comments
Labels

Comments

@3038922
Copy link

3038922 commented May 11, 2018

ares@ubuntu:~/vex/oklib$ sudo make all
CPC -I../include -I../src opcontrol.cpp
~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-g++ -I../include -I../src -c -Wall -pedantic -Wextra -Wconversion -Wno-implicit-fallthrough -Wmissing-include
-dirs -mthumb -mcpu=cortex-m3 -mlittle-endian -mfloat-abi=soft -O2 -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -std=c++
14 -fno-exceptions -fno-rtti -felide-constructors -o ../bin/_bin_opcontrol.o opcontrol.cpp
CPC -I../include -I../src init.cpp
~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-g++ -I../include -I../src -c -Wall -pedantic -
14 -fno-exceptions -fno-rtti -felide-constructors -o ../bin/_bin_init.o init.cpp
CPC -I../include -I../src auto.cpp

.{......}

in/_bin_control_velMath.o ./bin/_bin_control_velPid.o ./bin/_bin_init.o ./bin/_bin_odometry_odomMath.o ./bin/_bin_odometry_odometry.o ./bin/_bin_opcontrol.o .
/bin/_bin_util_timer.o ./firmware/libpros.a -lgcc -lm to bin/output.elf
text data bss dec hex filename
33152 1076 4220 38448 9630 ./bin/output.elf
~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-objcopy ./bin/output.elf -O binary ./bin/output.bin

@3038922
Copy link
Author

3038922 commented May 11, 2018

ares@ubuntu:~/vex/oklib$ sudo pros mut
Invoking make in /home/ares/vex/oklib...
rm -f ./bin/output.elf
rm -rf ./bin
CPC -I../include -I../src opcontrol.cpp
~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-g++ -I../include -I../src -c -Wall -pedantic -Wextra -Wconversion -Wno-implicit-fallthrough -Wmissing-include
-dirs -mthumb -mcpu=cortex-m3 -mlittle-endian -mfloat-abi=soft -O2 -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -std=c++

14 -fno-exceptions -fno-rtti -felide-constructors -o ../bin/_bin_opcontrol.o opcontrol.cpp
CPC -I../include -I../src init.cpp
~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-g++ -I../include -I../src -c -Wall -pedantic -Wextra -Wconversion -Wno-implicit-fallthrough -Wmissing-include
-dirs -mthumb -mcpu=cortex-m3 -mlittle-endian -mfloat-abi=soft -O2 -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -std=c++
14 -fno-exceptions -fno-rtti -felide-constructors -o ../bin/_bin_init.o init.cpp
CPC -I../include -I../src auto.cpp
~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-g++ -I../include -I../src -c -Wall -pedantic -Wextra -Wconversion -Wno-implicit-fallthrough -Wmissing-include
-dirs -mthumb -mcpu=cortex-m3 -mlittle-endian -mfloat-abi=soft -O2 -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -std=c++
14 -fno-exceptions -fno-rtti -felide-constructors -o ../bin/_bin_auto.o auto.cpp
CPC -I../include -I../src util/timer.cpp
~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-g++ -I../include -I../src -c -Wall -pedantic -Wextra -Wconversion -Wno-implicit-fallthrough -Wmissing-include
-dirs -mthumb -mcpu=cortex-m3 -mlittle-endian -mfloat-abi=soft -O2 -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -std=c++
14 -fno-exceptions -fno-rtti -felide-constructors -o ../bin/_bin_util_timer.o util/timer.cpp
CPC -I../include -I../src chassis/chassisController.cpp
{....}
You can quickly open files with the Fuzzy Finder. Try it by using Ctrl+T

updating: include/API.h (deflated 73%)
updating: include/control/ (stored 0%)
updating: include/control/velPid.h (deflated 69%)
updating: include/control/velMath.h (deflated 65%)
updating: include/control/genericController.h (deflated 60%)
updating: include/control/pid.h (deflated 72%)
updating: include/control/controlObject.h (deflated 62%)
updating: include/control/nsPid.h (deflated 52%)
updating: include/util/ (stored 0%)
updating: include/util/timer.h (deflated 68%)
updating: include/util/mathUtil.h (deflated 55%)
updating: include/odometry/ (stored 0%)
updating: include/odometry/odometry.h (deflated 69%)
updating: include/odometry/odomMath.h (deflated 70%)
updating: include/chassis/ (stored 0%)

updating: include/chassis/odomChassisController.h (deflated 67%)
updating: include/chassis/chassisController.h (deflated 72%)
updating: include/chassis/chassisModel.h (deflated 88%)
updating: include/main.h (deflated 59%)
updating: include/device/ (stored 0%)
updating: include/device/quadEncoder.h (deflated 47%)
updating: include/device/potentiometer.h (deflated 56%)
updating: include/device/motor.h (deflated 78%)
updating: include/device/button.h (deflated 72%)
updating: include/device/rangeFinder.h (deflated 59%)
updating: include/device/ime.h (deflated 58%)
updating: include/device/rotarySensor.h (deflated 40%)
updating: include/filter/ (stored 0%)
updating: include/filter/avgFilter.h (deflated 50%)
updating: include/filter/filter.h (deflated 50%)
updating: include/filter/demaFilter.h (deflated 61%)
updating: include/filter/emaFilter.h (deflated 56%)
updating: template.pros (deflated 65%)
====:: PROS Flasher vNone ::====
No binary was found! Ensure you are in a built PROS project (run make) or specify the file with the -f flag

@Octogonapus
Copy link
Member

Are you trying to use OkapiLib or develop OkapiLib? If you are just trying to use it, then you should grab this: https://github.com/OkapiLib/StarterProject

@3038922
Copy link
Author

3038922 commented May 13, 2018

https://github.com/OkapiLib/StarterProject The API in this is different from the API in oklib-master. It seems to be a little old.I thought I was going to recompile oklib-master.
and PAL/PAL.h: No such file or directory.
starterProject Omission PAL

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants