my name is Valerio and this is the first topic on this forum. I'm writing this message because I'm currently working on my first project with an ARM microcrontroller (STM32F407), and I would like to ask you some questions about the coexistence of ChibiOS and the example code given from ST (STM32cube in particular).
I'm not totally new with microcontrollers: I've already worked with 8 bit PIC microcontrollers in the past, however working with ARM MCUs is a little more challenging. At first I though of using ChibiOS, cause I saw it offers a simple interface to configure and interact with the hardware.
However, after a few tests, I found that it's would be easier for me to have full access to the internal registers. I know that this increases the amount of code I'll need to write, but in this way I can directly refer to the ST's "User Guide" while writing the code.
In my opinion there are two ways to solve this issue:
1) Use the complete ChibiOS's project template and add the ST's drivers as a support for the built-in ones. In this case, of course, I would not use the built-in drivers, but I would use my own. I think this should be the easiest way, so I don't expect it to be too difficult. What do you think? Is there anyone who has tried this before?
2) Write the code using ST's drivers and then add ChibiOS's kernel part (without HAL) on top of that. I think this won't be very straightforward, because I suspect that the kernel might have some sort of dependency on the HAL (for example the scheduler might depend on some internal timer). Is that correct? I mean, is this really that difficult, or not? Is there anyone who has tried this before?
Thanks a lot for your support!