Search found 20 matches

by akshaim
Tue Aug 16, 2022 10:50 am
Forum: ChibiOS/HAL
Topic: SPI Hal - Waiting to MISO line to be released
Replies: 5
Views: 18977

Re: SPI Hal - Waiting to MISO line to be released

Instead of polling via GPIO I ended up sending an empty requests using DMA and have callback check for `0xFF` in Rx buffer which shows the device is free :). This ended up being the easiest option
by akshaim
Wed Aug 10, 2022 1:52 pm
Forum: Development and Feedback
Topic: CException in ChibiOS
Replies: 1
Views: 7977

CException in ChibiOS

Hi Forum,

I am trying to use CException library in Chibi OS application to implement the " try, throw and catch " pattern. Have anyone tried this? The library seems to be compact and offers multithreading support as well. Is there a reason why we are not using it in Chibi OS? Are ``setjmp`` and ...
by akshaim
Thu May 12, 2022 6:28 pm
Forum: ChibiOS/HAL
Topic: SPI Hal - Waiting to MISO line to be released
Replies: 5
Views: 18977

Re: SPI Hal - Waiting to MISO line to be released

Thanks Giovanni. I shall explore that :)

Regards,

Akshai
by akshaim
Thu May 12, 2022 4:13 pm
Forum: ChibiOS/HAL
Topic: SPI Hal - Waiting to MISO line to be released
Replies: 5
Views: 18977

Re: SPI Hal - Waiting to MISO line to be released

Hi Giovanni,

Thank you for the reply. Unfortunately, I cannot wait as it will kill the timings. Is there a possibility for an asynchronous way to do it?

Regards,

Akshai
by akshaim
Thu May 12, 2022 1:08 pm
Forum: ChibiOS/HAL
Topic: SPI Hal - Waiting to MISO line to be released
Replies: 5
Views: 18977

SPI Hal - Waiting to MISO line to be released

Hi Team,

I am trying to implement a driver using SPI for the ADBMS1818 chip which is used to measure the Cell voltages of battery cells. To start measuring the voltage using the ADC . I have to do a start poll operation (PLADC). After which I shall use another command to read the ADC values (say ...
by akshaim
Mon Apr 04, 2022 4:30 pm
Forum: ChibiOS/RT
Topic: Global struct/array not initalized to zero
Replies: 6
Views: 5631

Re: Global struct/array not initalized to zero

Thanks, Giovanni :). I shall do that.

Also, do you think it's okay to set up the LD Script to zero sections in `ram0` as well? Does it add any overhead? I expect the startup timing could be stretched a bit. Any particular reason why you did not zero it?

Regards,

Akshai M
by akshaim
Mon Apr 04, 2022 1:36 pm
Forum: ChibiOS/RT
Topic: Global struct/array not initalized to zero
Replies: 6
Views: 5631

Re: Global struct/array not initalized to zero

Thanks, Patrick and Giovanni.

Change from `DATA_RAM` to `.ram0_clear` did the trick

Also, I tried changing the `CH_CFG_MEMCORE_SIZE`, but still, as Patrick already pointed out the `ramo` utilization stays at 100%. Any suggestion on how to make it print the right amount being used?

Regards ...
by akshaim
Fri Apr 01, 2022 9:45 pm
Forum: ChibiOS/RT
Topic: Global struct/array not initalized to zero
Replies: 6
Views: 5631

Global struct/array not initalized to zero

Hi Forum,

I have a strange issue. I am using STM32F767ZIT6 micro controller for my project. Since I ran out of space in ram3 , I tried to use `ram0` using the __attribute__((section("DATA_RAM"))) . `DATA_RAM` alias is defined in `ARMCMx/compilers/GCC/ld/STM32F76xxI.ld` .

I then declared a "global ...
by akshaim
Wed Mar 02, 2022 11:46 am
Forum: General Support
Topic: C11 Compatibility in Chibi OS
Replies: 1
Views: 3666

C11 Compatibility in Chibi OS

Hi Team,

From forums I have noticed that ChibiOS use C99 standard however I have noticed AVR arch making use of C11( os/common/ports/AVR/compilers/GCC/rules.mk line 62 says CSTANDARD = -std=gnu11 .

My doubt is whether it's okay to mix C99 and C11 code?

Regards,

Aksha M
by akshaim
Tue Oct 19, 2021 9:18 am
Forum: Development and Feedback
Topic: Help regarding MFSConfig
Replies: 16
Views: 15543

Re: Help regarding MFSConfig

Hi Giovanni,

I was able to make the EFL work by booting from different banks. It seems like an issue with the non-continuous page indexes used by the chip. Writing with offsets works but sector/page operations would result in an error. I should be able to push a hotfix soon. But how do I contribute ...