Search found 9 matches
- Mon Aug 03, 2020 9:21 pm
- Forum: STM32 Support
- Topic: I2C transfer of large data (10kb +) crashes chibios Topic is solved
- Replies: 14
- Views: 4317
Re: I2C transfer of large data (10kb +) crashes chibios Topic is solved
❯ arm-none-eabi-gcc --version arm-none-eabi-gcc (GNU Arm Embedded Toolchain 9-2020-q2-update) 9.3.1 20200408 (release) ❯ git st ## stable_20.3.x...origin/stable_20.3.x ❯ git rev-parse HEAD 5f523dc8e95d7ff6c6daf3bc41531cae7285cbdf However it seems I fixed the issue entirely by following your suggest...
- Mon Aug 03, 2020 7:45 pm
- Forum: STM32 Support
- Topic: I2C transfer of large data (10kb +) crashes chibios Topic is solved
- Replies: 14
- Views: 4317
Re: I2C transfer of large data (10kb +) crashes chibios Topic is solved
Giovanni, I guess I was a little premature here - it works fine with -O0 only. Once I enable either -O1 or -O2 it fails again with the unhandled exception, even with FPU disabled. So back to the stacksize issue. I'll keep you posted if I find anything concrete. First time debugging issues when using...
- Mon Aug 03, 2020 3:56 pm
- Forum: STM32 Support
- Topic: I2C transfer of large data (10kb +) crashes chibios Topic is solved
- Replies: 14
- Views: 4317
Re: I2C transfer of large data (10kb +) crashes chibios Topic is solved
Giovanni,
thank you so much for your help.
It turns out that the issue is inside my Makefile: I had set; once I disabled it it all started working.
I'm not 100% sure why the FPU would break an I2C transaction, but I'm glad that it works when I disable it.
thank you so much for your help.
It turns out that the issue is inside my Makefile: I had
Code: Select all
USE_FPU=hard
I'm not 100% sure why the FPU would break an I2C transaction, but I'm glad that it works when I disable it.
- Mon Aug 03, 2020 6:20 am
- Forum: STM32 Support
- Topic: I2C transfer of large data (10kb +) crashes chibios Topic is solved
- Replies: 14
- Views: 4317
Re: I2C transfer of large data (10kb +) crashes chibios Topic is solved
Downgrading didn't change anything. But maybe the UFSR holds an answer: per gdb the value is 0x4: (gdb) print/x *(uint32_t *) 0xE000ED2A $4 = 0x4 Which per online documentation means: - NOCP - Indicates that a Cortex-M coprocessor instruction was issued but the coprocessor was disabled or not presen...
- Mon Aug 03, 2020 1:01 am
- Forum: STM32 Support
- Topic: I2C transfer of large data (10kb +) crashes chibios Topic is solved
- Replies: 14
- Views: 4317
Re: I2C transfer of large data (10kb +) crashes chibios Topic is solved
So I ended up pulling in the exceptionvectors.c from [this thread](http://www.chibios.com/forum/viewtopic.php?t=2506). HardFault_Handler exceptionvectors.c:63 <signal handler called> 0x00000000ffffffed <unknown> 0x000000000000000a Signal = SIGTRAP (Trace/breakpoint trap) isFaultOnStacking = {_Bool} ...
- Sun Aug 02, 2020 11:41 pm
- Forum: STM32 Support
- Topic: I2C transfer of large data (10kb +) crashes chibios Topic is solved
- Replies: 14
- Views: 4317
Re: I2C transfer of large data (10kb +) crashes chibios Topic is solved
I'm not sure I understand how the thread stacks should be involved here. I disabled the idle main thread and this is executed directly inside main . The data being transfered via i2c is declared as static const uint8_t build_stm32g031k8_bin[] outside of main, so I'd expect it to be static to the ent...
- Sun Aug 02, 2020 9:13 pm
- Forum: STM32 Support
- Topic: I2C transfer of large data (10kb +) crashes chibios Topic is solved
- Replies: 14
- Views: 4317
Re: I2C transfer of large data (10kb +) crashes chibios Topic is solved
So I got my debugger replacement - it seems that chibios experiences a stack overflow, but not when sending the huge amount of data; it's experiencing it when sending 2 byte command before the actual transmission. Here's the stack trace: chSysHalt chsys.c:205 chSchGoSleepS chschd.c:313 chSchGoSleepT...
- Fri Jul 31, 2020 7:24 pm
- Forum: STM32 Support
- Topic: I2C transfer of large data (10kb +) crashes chibios Topic is solved
- Replies: 14
- Views: 4317
Re: I2C transfer of large data (10kb +) crashes chibios Topic is solved
Hey Giovanni,
thanks for the suggestion. I have debugging enabled, however my STLink V2 died some days ago and I'm still waiting on the replacment.
Is there any way to transmit this information from the STM32F303 without having a debug probe attached?
Best,
Raphael
thanks for the suggestion. I have debugging enabled, however my STLink V2 died some days ago and I'm still waiting on the replacment.
Is there any way to transmit this information from the STM32F303 without having a debug probe attached?
Best,
Raphael
- Fri Jul 31, 2020 7:09 pm
- Forum: STM32 Support
- Topic: I2C transfer of large data (10kb +) crashes chibios Topic is solved
- Replies: 14
- Views: 4317
I2C transfer of large data (10kb +) crashes chibios Topic is solved
Hey, I've migrated the stm32_write_memory procedure from [stm32flash project](https://sourceforge.net/p/stm32flash/wiki/Home/) to work with chibios. The change itself is pretty straight forward: changing the i2c interactions to call i2cMasterTransmitTimeout and i2cMasterReceiveTimeout . Now when I u...