Search found 21 matches
- Thu Jul 27, 2023 2:57 am
- Forum: ChibiOS/RT
- Topic: Interrupts by timer and locked code sections
- Replies: 9
- Views: 2994
Re: Interrupts by timer and locked code sections
The reason th2 is getting interrupted between 4 and 5 is you are using the wrong sleep calls for an OS lock section. You should be using an S-Class function like chSysSleepS (I don't think there is an S-Class windowed function). The non-S ones internally lock and unlock, probably undoing your lock. ...
- Fri Mar 24, 2023 10:46 pm
- Forum: ChibiOS/HAL
- Topic: STM32F4 I2Cv1 doesn't see the aknowledge
- Replies: 9
- Views: 1762
Re: STM32F4 I2Cv1 doesn't see the aknowledge
Try this:
Code: Select all
PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN
- Sat Jul 30, 2022 2:31 am
- Forum: STM32 Support
- Topic: stm32f4029 Disc Board I2C ACK not tracking
- Replies: 6
- Views: 1684
Re: stm32f4029 Disc Board I2C ACK not tracking
It looks to me that or-ing PAL_STM32_OTYPE_OPENDRAIN with the alternate mode should be the solution. That ACK bit looks like the ST is pushing high while the eeprom is pulling low, especially with that spike at the end of it where the eeprom releases the bus.
- Sat Jul 23, 2022 3:15 am
- Forum: STM32 Support
- Topic: stm32f4029 Disc Board I2C v1 Integration for AT24CS04-SSHM-T
- Replies: 6
- Views: 1375
Re: stm32f4029 Disc Board I2C v1 Integration for AT24CS04-SSHM-T
If the DSO showed the known correct address with a NACK, you are likely push-pulling instead of open-draining the I2C lines. If you are using palSetLineMode, fix it by changing the SDA / SCL lines to something like palSetLineMode(x, PAL_MODE_ALTERNATE(n) | PAL_STM32_OTYPE_OPENDRAIN); Alternatively, ...
- Thu Jul 07, 2022 11:26 pm
- Forum: ChibiOS/HAL
- Topic: Reading incorrect serial data from external program
- Replies: 5
- Views: 2985
Re: Reading incorrect serial data from external program
What is happening is the sdReadTimeout call is timing out due to receiving no bytes and not modifying your buffer, leaving the "message" string from the reception untouched and still valid. You need to check the return value of sdReadTimeout (which calls iqReadTimeout) which is the number ...
- Thu Apr 07, 2022 2:48 am
- Forum: STM32 Support
- Topic: Self-flashing STM32G030F
- Replies: 2
- Views: 1215
Re: Self-flashing STM32G030F
Are any error bits in FLASH->SR set when the failure happens (after erase or program)? Is STRT still set in CR when you clear the PER bit? RM says it clears on transition of BSY1 to 0, but maybe it is delayed a (peripheral) cycle or 2? Test with FLASH->CR = 0 instead. (A reach, but maybe it doesn't ...
- Sat Apr 02, 2022 3:20 am
- Forum: ChibiOS/RT
- Topic: Global struct/array not initalized to zero
- Replies: 6
- Views: 2330
Re: Global struct/array not initalized to zero
Akshai, ChibiOS only zeroes the ".bss*" and ".ramX_clear*" sections on startup. Try putting the array in the ".ram0_clear" section. See rules_memory.ld next to your linker script, and crt1.c a few levels up for how that works. Ram0 is full due to the rest of the free me...
- Wed Mar 02, 2022 2:23 am
- Forum: Bug Reports
- Topic: STM32G071 ADC resolution is always 12 bits Topic is solved
- Replies: 14
- Views: 6458
Re: STM32G071 ADC resolution is always 12 bits Topic is solved
This appears to be an errata. See ES0418 2.6.2, "Writing ADC_CFGR1 register while ADEN bit is set resets RES[1:0] bitfield".
- Sun Nov 07, 2021 7:11 pm
- Forum: User Projects
- Topic: Chibios OS RISC-V GD32VF103 Port and USB OTG lockup problem
- Replies: 17
- Views: 11329
Re: Chibios OS RISC-V GD32VF103 Port and USB OTG lockup problem
is this thread really the only mention of GD32 on this ChibiOS forum or is that me failing to use search? Anyway a bit confused about https://github.com/psycowithespn/ChibiOS-RISC-V/issues/1 but interested to leverage the progress done here :) Replied to the issue. Do note that the GD32 stuff on th...
- Tue Oct 19, 2021 12:54 am
- Forum: Development and Feedback
- Topic: [INFO] Development discussion on Discord
- Replies: 7
- Views: 20229
Re: [INFO] Development discussion on Discord
Giovanni,
This invite link is expired. Could you make a new one?
This invite link is expired. Could you make a new one?