Search found 17 matches

by AnSc
Mon May 30, 2022 2:44 pm
Forum: ChibiOS/HAL
Topic: I2C never sends a bit
Replies: 7
Views: 812

Re: I2C never sends a bit

Today I took again a look on the demo STM32F1xx-I2C. And then I found the culprit: I did set the default output to open drain, not the alternate… Wrong: #define VAL_GPIOBCRL 0x55888833 Correct: #define VAL_GPIOBCRL 0xDD888833 /* PB7...PB0 */ Thanks again for your time and the pointer to the right lo...
by AnSc
Sun May 29, 2022 4:47 pm
Forum: ChibiOS/HAL
Topic: I2C never sends a bit
Replies: 7
Views: 812

Re: I2C never sends a bit

I stepped through the code. At i2cStart the status changes from 1 "I2C_STOP" to 2 "I2C_READY". In i2cMasterTransmitTimeout it then changes to 3 "I2C_ACTIVE_TX". in i2c_lld_master_transmit_timeout if (!(dp->SR2 & I2C_SR2_BUSY) && !(dp->CR1 & I2C_CR1_STOP)...
by AnSc
Sun May 29, 2022 12:35 pm
Forum: ChibiOS/HAL
Topic: I2C never sends a bit
Replies: 7
Views: 812

Re: I2C never sends a bit

Thanks for the fast reply. :) state checks and assert where already enabled. enabled statistics too. However I'm not sure how to read this. What I found is, that at entering i2cMasterTransmitTimeout the second time i2cp state is already at I2C_LOCKED . osalDbgAssert then enters chSysHalt Attached ar...
by AnSc
Sun May 29, 2022 10:52 am
Forum: ChibiOS/HAL
Topic: I2C never sends a bit
Replies: 7
Views: 812

I2C never sends a bit

Hi, I'm trying to get I2C to run but after a few days of searching and stripping down my project to the bare minimum for I2C I never see a single bit sent on I2C outputs (no signal change on oscilloscope), no clock. I made sure that the outputs actually work by toggling the output and seeing the lev...
by AnSc
Wed May 11, 2022 4:51 pm
Forum: ChibiOS/HAL
Topic: undefined reference to `palEnableLineEvent'
Replies: 2
Views: 359

Re: undefined reference to `palEnableLineEvent'

Thanks a lot. :D
Somehow I missed this information in the article.
It's right there… :roll:
by AnSc
Wed May 11, 2022 3:53 pm
Forum: ChibiOS/HAL
Topic: undefined reference to `palEnableLineEvent'
Replies: 2
Views: 359

undefined reference to `palEnableLineEvent'

Hi, I wanted to implement this method for event based reading buttons from this article: https://www.playembedded.org/blog/buttons-stm32/ However, I get the error undefined reference to `palEnableLineEvent' I did set #define HAL_USE_PAL TRUE in halconf.h I can see the definition of it in C:\ChibiStu...
by AnSc
Sun Apr 24, 2022 1:15 pm
Forum: Bug Reports
Topic: Bug in hal_spi_v2.h in ChibiOS 21.11 Topic is solved
Replies: 2
Views: 643

Bug in hal_spi_v2.h in ChibiOS 21.11 Topic is solved

There are two different #define for __spi_wakeup_isr.
One:

Code: Select all

#define __spi_wakeup_isr(spip, msg){…


and the second which becomes active when setting

Code: Select all

#define SPI_USE_WAIT                        FALSE


Code: Select all

#define __spi_wakeup_isr(spip)
by AnSc
Thu Apr 21, 2022 5:47 pm
Forum: ChibiOS/RT
Topic: Memory allocation out of range?
Replies: 10
Views: 3016

Re: Memory allocation out of range?

Thanks for the correction. Had a number swapped in my calculation (265 instead of 256)…
Will go further from that to the uGFX guys again. :)
by AnSc
Thu Apr 21, 2022 5:14 pm
Forum: ChibiOS/RT
Topic: Memory allocation out of range?
Replies: 10
Views: 3016

Re: Memory allocation out of range?

I just thought about it a bit more. I hope I can get to the bottom of this. :) This is what I found today after reading further into the code: gdisp_lld_SSD1322.c #ifndef GDISP_SCREEN_HEIGHT #define GDISP_SCREEN_HEIGHT 64 #ifndef GDISP_SCREEN_WIDTH #define GDISP_SCREEN_WIDTH 256 #define SSD1322_ROW_...
by AnSc
Wed Apr 20, 2022 6:32 pm
Forum: ChibiOS/RT
Topic: Memory allocation out of range?
Replies: 10
Views: 3016

Re: Memory allocation out of range?

This is what I could find: ram = RAM(g)+xyaddr(x,y); *ram &= ~xybits(x, y, LLDCOLOR_MASK()); RAM, LLDCOLOR_MASK translate to: #define RAM(g) ((gU8 *)g->priv) #define LLDCOLOR_MASK() ((1 << LLDCOLOR_BITS)-1) #define LLDCOLOR_BITS (GDISP_LLD_PIXELFORMAT & 0xFF) #define GDISP_LLD_PIXELFORMAT GD...

Go to advanced search