And the Ardupilot project, also based on ChibiOs, implemented some socketCan interfaces.
Angelo
Search found 27 matches
- Thu Jul 21, 2022 8:40 am
- Forum: User Projects
- Topic: my Engine Control Module
- Replies: 57
- Views: 51265
- Tue Feb 15, 2022 1:35 pm
- Forum: Small Change Requests
- Topic: I-class Delegate Threads? Topic is solved
- Replies: 10
- Views: 5235
Re: I-class Delegate Threads? Topic is solved
Hello, Is it possible to let the delegate thread run its own code ? As an exemple: The delegate thread would make some CRC checks, controls, etc... once in a while. /* Messages dispatcher loop.*/ while (true) { chDelegateDispatchTimeout(MY_TIME) { callMyOwnfunctions (); } But external caller will be...
- Mon Feb 14, 2022 1:36 pm
- Forum: Small Change Requests
- Topic: I-class Delegate Threads? Topic is solved
- Replies: 10
- Views: 5235
Re: I-class Delegate Threads? Topic is solved
Hello, There is a calling thread, with its priority. And a function in the delegate thread, with its priority. If the caller thread has a lower priority, and calls the function wich is in a higher priority thread, what is the priority during function execution ? The caller or the delegate priority ?...
- Mon Feb 14, 2022 9:07 am
- Forum: Small Change Requests
- Topic: I-class Delegate Threads? Topic is solved
- Replies: 10
- Views: 5235
Re: I-class Delegate Threads? Topic is solved
Hello,
What about task/thread priorities ?
Angelo
What about task/thread priorities ?
Angelo
- Fri Oct 23, 2020 1:00 pm
- Forum: STM32 Support
- Topic: Jump to bootloader.
- Replies: 11
- Views: 6005
Re: Jump to bootloader.
Hi,
In your last post, you wrote 3 times cpsid, but your code is "cpsie i\n"
Probably a typo error. And other than that, I am of absolute no help on this
Angelo
In your last post, you wrote 3 times cpsid, but your code is "cpsie i\n"
Probably a typo error. And other than that, I am of absolute no help on this
Angelo
- Thu Jan 23, 2020 8:31 am
- Forum: General Support
- Topic: Zip compression on a micro
- Replies: 7
- Views: 4806
Re: Zip compression on a micro
Hi, Just currious, what kind of application ? Just my 2 cents :) What is the real need of a zip file? Compression to limit size ? Compatibility with other software ? If I am not wrong, FATFS in FAT32 could handle up to 2TB disk size, and max 4GB file size. Unless sd card price is important, is it re...
- Thu Jul 25, 2019 3:39 pm
- Forum: General Support
- Topic: How to send string to shell command parser ?
- Replies: 11
- Views: 6061
Re: How to send string to shell command parser ?
Hi Thanks for the reply. I currently have serial shell ready. The next step is to have CAN, because it is way simpler. And I already have working code. At the end, the ethernet would be a nice-to-have feature, but have currently no priority. I had a look at the code. I could probably create a device...
- Thu Jul 25, 2019 12:01 pm
- Forum: General Support
- Topic: How to send string to shell command parser ?
- Replies: 11
- Views: 6061
Re: How to send string to shell command parser ?
For Ethernet, it's fairly easy to create a basic web server (see $CHIBIOS/ext/lwip/src/apps/httpd directory). That allows simple web pages to interface with the system, possibly with a bit of javascript if you want to dynamically update the display. :cry: let's make things simple. At least for me :...
- Wed Jul 24, 2019 8:20 pm
- Forum: General Support
- Topic: How to send string to shell command parser ?
- Replies: 11
- Views: 6061
Re: How to send string to shell command parser ?
Hi, I tested with memory stream. Everything compiles and execute well. But, it doesn't work. As buffer is unique for in and out, when starting, the shell sends itself the welcome message and first prompt. And loop continously trying to decode the previous error message as a new input command. So I n...
- Tue Jul 23, 2019 12:10 pm
- Forum: General Support
- Topic: How to send string to shell command parser ?
- Replies: 11
- Views: 6061
Re: How to send string to shell command parser ?
Hello, I think I got it. Will check tomorrow. I should create a buffer and a memorystream. Init the stream. Then create a new shell thread on this stream, using the existing command table. And finaly put/write chars extracted from the CANBUS protocol to the memorystream. And tadaaaaaaa, existing com...