Search found 104 matches

by rubenswerk
Sat Sep 21, 2019 9:31 pm
Forum: STM32 Support
Topic: Using two I2C buses in parallel fails
Replies: 5
Views: 132

Re: Using two I2C buses in parallel fails

Good hint.
On the STM32F767 there's for most functions at least one alternative option to map the DMA, that's great.
Using start() and stop() might be an option, but in my case I want to optimize I2C throughput and therefore the I2Cs should work in parallel.
Thanks!
by rubenswerk
Sat Sep 21, 2019 8:35 pm
Forum: STM32 Support
Topic: Using two I2C buses in parallel fails
Replies: 5
Views: 132

Re: Using two I2C buses in parallel fails

Thank you Giovanni for your quick response. Yes you're right, I2C1_TX and I2C2_TX share the same DMA. It works if I use I2C3 instead of I2C2. Looks like you cannot use more than two I2C in DMA mode (which seems to be standard ChibiOS mode), otherwise there is a conflict. Is it correct that this rest...
by rubenswerk
Sat Sep 21, 2019 2:20 pm
Forum: STM32 Support
Topic: Using two I2C buses in parallel fails
Replies: 5
Views: 132

Using two I2C buses in parallel fails

Hello, I'd like to use two I2C buses on a STM32F767 Nucleo board. I took the ChibiOS 19.1.0 demo RT-STM32F767ZI-NUCLEO144 and added some minor changes. I activate the following in halconf/mcuconf: HAL_USE_I2C TRUE STM32_I2C_USE_I2C1 TRUE STM32_I2C_USE_I2C2 TRUE In my main function, I added: i2cStart...
by rubenswerk
Sat Jul 06, 2019 8:38 pm
Forum: ChibiOS/RT
Topic: CORTEX_VTOR_INIT
Replies: 15
Views: 2860

Re: CORTEX_VTOR_INIT

This post solved my problem:

http://www.chibios.com/forum/viewtopic.php?t=4767#p33503

After resetting the SysTick, it works!
by rubenswerk
Mon Jul 01, 2019 3:17 pm
Forum: ChibiOS/RT
Topic: CORTEX_VTOR_INIT
Replies: 15
Views: 2860

Re: CORTEX_VTOR_INIT

Hello, I successfully used CORTEX_VTOR_INIT macro in old ChibiOS version to relocate vector table in a bootloader/application project (STM32F4). Now I want to upgrade to actual ChibiOS. According to this thread, it should be enough to set flash location in linker script: flash0 : org = 0x08008000, l...
by rubenswerk
Fri Jun 28, 2019 9:28 pm
Forum: STM32 Support
Topic: ETH RAM region gone?
Replies: 2
Views: 206

Re: ETH RAM region gone?

I checked the RM and tried to understand the matrix picture, well I think at least I understood a part of it :-) Looks like we can avoid concurrent memory access when using this 16kB SRAM2 for MAC buffers. I added the following section to project specific linker script: .eth : { PROVIDE(_eth_start =...
by rubenswerk
Fri Jun 28, 2019 4:23 pm
Forum: STM32 Support
Topic: ETH RAM region gone?
Replies: 2
Views: 206

ETH RAM region gone?

Hello, in my several years old ChibiOS application (STM32F407), there was eth_ram region in the linker script. A 16k block located at 0x2001c000. According to the map file, this block was exclusively used by mac_lld.o, and nearly all of the 16kB were used. In actual ChibiOS linker script, this regio...
by rubenswerk
Sun Jun 23, 2019 10:43 am
Forum: STM32 Support
Topic: Put constant value into interrupt vector table
Replies: 2
Views: 190

Re: Put constant value into interrupt vector table

Hello Giovanni, this is quite close to what I'd like to have. Unfortunately, the assembler does not allow even values as symbol. If I do --defsym=Vector100=0x12345678 the assembler (or linker?) puts 0x12345679 (uneven address) into the vector table. I can disable this behaviour if I remove: Vector10...
by rubenswerk
Sat Jun 22, 2019 11:52 pm
Forum: STM32 Support
Topic: Put constant value into interrupt vector table
Replies: 2
Views: 190

Put constant value into interrupt vector table

Hello, I would like to put a constant value into STM32 interrupt vector table. Usually, the table consists of weak symbols named VectorXXX, which are pointers to the ISR. However, I want to put a constant 32 bit number into an unused vector, for example Vector100. I know from software architecture p...
by rubenswerk
Sun Jun 03, 2018 11:54 am
Forum: General Support
Topic: RT-STM32-LWIP-FATFS-USB demo stuck in LOCK_TCPIP_CORE
Replies: 1
Views: 686

RT-STM32-LWIP-FATFS-USB demo stuck in LOCK_TCPIP_CORE

Hello, it's some time ago that I was working with ChibiOS - it was version 2.6.x :oops: Now I want to start with a new project, and for the first try, I wanted to run the demo RT-STM32-LWIP-FATFS-USB in ChibiOS 18.2.1. Since I do not have one of the supported boards, I created my own board.c/.h base...

Go to advanced search