Closed arteeh closed 3 years ago
does tests/driver_ili9341
display anything?
does
tests/driver_ili9341
display anything?
The test works well on my device, but it doesn't use board_init() or cpu_init() which is what this issue is about. I just tried to add cpu_init() to the beginning of the test, and nothing shows up on the display.
board_init()
and cpu_init()
are called automatically by RIOT's startup procedure, on every board, before main()
. Are you calling it again in your application?
I didn't know board_init() gets run before main(). This issue is a misunderstanding of mine then, closing.
Description
When creating an application for the Pinetime, cpu_init() and consequently board_init() will get stuck somewhere, meaning any code after that does not seem to run.
Steps to reproduce the issue
Create a simple application, with the RIOT folder checked out to 2021.01-branch. Make with the following definitions:
Create a main function where the following code is run:
I then run
PROGRAMMER=openocd DEBUG_ADAPTER=stlink make flash
with an ST-Link V2 wired up to my Pinetime to flash the program.Expected results
The Pinetime display shows a blue rectangle on a black background, at low brightness.
Actual results
The Pinetime doesn't show any activity, and nothing happens on the screen.
Versions
Operating System: Fedora Silverblue 34 GCC: arm-none-eabi-gcc (Fedora 10.2.0-4.fc34) 10.2.0 CLIB: arm-none-eabi-newlib: "4.1.0" Make: GNU Make 4.3 Debugger: Open On-Chip Debugger 0.11.0