Search found 270 matches

by Korken
Tue Aug 07, 2018 6:40 pm
Forum: ChibiOS/RT
Topic: _unhandled_exception when running a chThdSleep (running chibi from a bootloader)
Replies: 5
Views: 384

Re: _unhandled_exception when running a chThdSleep (running chibi from a bootloader)

Sure!
Before I had 128 byte alignment of the vector table, after I have 1024 byte alignment.
Nothing more was needed :)
by Korken
Mon Jul 30, 2018 2:08 pm
Forum: ChibiOS/RT
Topic: _unhandled_exception when running a chThdSleep (running chibi from a bootloader)
Replies: 5
Views: 384

Re: _unhandled_exception when running a chThdSleep (running chibi from a bootloader)

Finally figured it out :D

I read the ARM docs wrong about the alignment of the vector table (round up to power of 2 of your table size).
I read it as it always need to be 64 words.

With the alignment fixed, everything is working, thanks for the tips!
by Korken
Mon Jul 30, 2018 1:34 pm
Forum: ChibiOS/RT
Topic: _unhandled_exception when running a chThdSleep (running chibi from a bootloader)
Replies: 5
Views: 384

Re: _unhandled_exception when running a chThdSleep (running chibi from a bootloader)

Hi, thanks for the tips! I'm doing exactly the same, inside the bootloader I am also using a "magic value" (in RAM though) to read after a soft reset, only to set addresses and VTOR and then jump to my ChibiOS code. Just to be safe I checked with the debugger that all registers are correct...
by Korken
Sun Jul 29, 2018 5:24 pm
Forum: ChibiOS/RT
Topic: _unhandled_exception when running a chThdSleep (running chibi from a bootloader)
Replies: 5
Views: 384

_unhandled_exception when running a chThdSleep (running chibi from a bootloader)

Hi all, I have been testing to write a bootloader, and all seems fine. ChibiOS starts up after the bootloader calls the binary, initialization works, HAL init goes fine and LEDs go on. However, whenever I call a chThdSleep, I get an _unhandled_exception and it seems to happen on the return to _idle_...
by Korken
Sun Jul 29, 2018 5:12 pm
Forum: ChibiOS/RT
Topic: Strange issue with mutex
Replies: 2
Views: 264

Re: Strange issue with mutex

Thanks Giovanni!

Perfect analysis as always :)
by Korken
Thu Jul 26, 2018 11:02 am
Forum: ChibiOS/RT
Topic: Strange issue with mutex
Replies: 2
Views: 264

Strange issue with mutex

Hi all, I have been adding mutexes to a piece of code, but I always get the following error when I have debug checks enabled: #0 chSysHalt (reason=reason@entry=0x800e5cc <func.7893> "chSchReadyI") at ../../src/ChibiOS/os/rt/src/chsys.c:207 #1 0x0800189a in chSchReadyI (tp=0x200056ac <mac_a...
by Korken
Fri Feb 02, 2018 10:45 am
Forum: Development and Feedback
Topic: C++ wrappers
Replies: 84
Views: 12943

Re: C++ wrappers

Korken, What's the reason for declaring most of the classes final? IMHO it takes out the elegancy from interfacing ChibiOS with C++. For example, with the old wrapper you could derive a class from BaseStaticThread, define a main() member function and call any thread-related function implicitly agai...
by Korken
Fri Jan 12, 2018 2:45 pm
Forum: Safer C
Topic: [DISCUSSION] Rationale for yet another C variant
Replies: 19
Views: 4208

Re: [DISCUSSION] Rationale for yet another C variant

If you want an intrinsically safer language and no not want to go with C++ or Rust, I would recommend to just make a high level language that decomposes into C++ / Rust to leverage the decades of ideas already implemented in the languages. If you check the RTFM language I liked earlier, it is simply...
by Korken
Tue Dec 19, 2017 8:49 am
Forum: Bug Reports
Topic: Git not tracking Topic is solved
Replies: 29
Views: 3051

Re: Git not tracking Topic is solved

Now two full cron jobs has run on the repo as well, and it pulls in new changes successfully.
So it seems to be functioning as desired.

I will keep it going in my repo as well until the maintainers of the "semi official" git for Chibi comes and implements it. :)
by Korken
Mon Dec 18, 2017 8:44 am
Forum: Bug Reports
Topic: Git not tracking Topic is solved
Replies: 29
Views: 3051

Re: Git not tracking Topic is solved

It should be done by whomever is running the repo :)
Or the ones running the repo can give me master access and I will set it up.

Go to advanced search