stephendpmurphy / tiny-oled.firmware

A project built around learning new concepts and challenging my current understanding and capabilities in Firmware Development
MIT License
0 stars 2 forks source link

Ceedling won't execute tests properly once including AVR libs and include directories #13

Open stephendpmurphy opened 4 years ago

stephendpmurphy commented 4 years ago

Several errors occur when including the necessary AVR include directories in the project.yml. This needs to be resolved before any unit tests can be written.

Test 'test_boot.c
------------------
Generating runner for test_boot.c...
Compiling test_boot_runner.c...
Compiling test_boot.c...
Compiling unity.c...
Compiling boot.c...
Compiling cmock.c...
Linking test_boot.out...
build/test/out/c/unity.o: In function `UnityPrintChar':
/var/lib/gems/2.5.0/gems/ceedling-0.30.0/vendor/unity/src/unity.c:84: undefined reference to `__iob'
/var/lib/gems/2.5.0/gems/ceedling-0.30.0/vendor/unity/src/unity.c:89: undefined reference to `__iob'
/var/lib/gems/2.5.0/gems/ceedling-0.30.0/vendor/unity/src/unity.c:90: undefined reference to `__iob'
/var/lib/gems/2.5.0/gems/ceedling-0.30.0/vendor/unity/src/unity.c:95: undefined reference to `__iob'
/var/lib/gems/2.5.0/gems/ceedling-0.30.0/vendor/unity/src/unity.c:96: undefined reference to `__iob'
build/test/out/c/unity.o:/var/lib/gems/2.5.0/gems/ceedling-0.30.0/vendor/unity/src/unity.c:101: more undefined references to `__iob' follow
collect2: error: ld returned 1 exit status
ERROR: Shell command failed.
> Shell executed command:
'gcc "build/test/out/c/test_boot_runner.o" "build/test/out/c/test_boot.o" "build/test/out/c/unity.o" "build/test/out/c/boot.o" "build/test/out/c/cmock.o" -o "build/test/out/test_boot.out"'
> And exited with status: [1].
davidrea commented 3 years ago

@stephendpmurphy have you made any headway on this? I'm seeing the same thing after I -D'd my way around Unity #566...

stephendpmurphy commented 3 years ago

I have not. I haven't touched this project in a while, but have had success with Ceedling in various Cortex-M4 based projects. I might come back and see if my knew experience helps me solve the problem. @davidrea