This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
Giovanni wrote:Note that higher numbers are lower priorities so you did the exact opposite. Try an I2C priority set to 5 and see if it makes a difference.
I tried with 1, 3, 5, 8, 10 and 13 and none works.
barthess wrote:I do not know how to libmaple does, but I would insert short sleeps in outln() to give some time to UART to printout messages from buffer.
this helps my serial communication problems.
but, it's freezing now. it reads the first EEPROM value but than it freezes on the loop. sleeps does not help either.
Using the default settings the usable priorities go from 2 to 15, 0 and 1 are reserved for "fast interrupts" and must not be used by normal device drivers.
The only obvious problem with your code is that you return from the main() function, returning from the main() stops the system into an infinite loop, see the startup file crt0.c. If you don't need the main() thread then you should enter a loop with a chThdSleepMilliseconds(1000) inside instead.
Anyway, you definitely need a JTAG/SWD probe if you are going to develop something complex, even a STM32xx-Discovery board could do that and you can have them for few $ or even for free.
Giovanni wrote:Using the default settings the usable priorities go from 2 to 15, 0 and 1 are reserved for "fast interrupts" and must not be used by normal device drivers.
The only obvious problem with your code is that you return from the main() function, returning from the main() stops the system into an infinite loop, see the startup file crt0.c. If you don't need the main() thread then you should enter a loop with a chThdSleepMilliseconds(1000) inside instead.
Anyway, you definitely need a JTAG/SWD probe if you are going to develop something complex, even a STM32xx-Discovery board could do that and you can have them for few $ or even for free.
I just returned from main() because of compiler warnings.
The hackerspace I'm member here(I'm in Brazil) have a JATG. I'm going there next week to see what's happening. Thanks for your time and patience I'll be back further.
Hello, I'm also trying to access the EEPROM AT24LC256 with a processor SMT32F103. Has a detail that should be taken into consideration. Examples of códio are provided by ST to memory 24C08, which the access address is 8 bits. To connect 24C256 memory is required to send a 16-bit address. I still can not configure the I2C peripheral address for the STM32F103 by 16 bits. Have you ever got? If you could, I would be very grateful if you could send me the code. ([email protected]). Thank you. If you want I make a code to read BMP images in SD card and show the photos on display.
Hi, I'm newbie of Chibios, I've tested thread, PWM, interrupt usage and now I need to dialog with 24LC256 EEPROM. Have you a project that I can use as reference to see bathess eeprom implementation?
I've read README in downloaded file from https://github.com/barthess/24aa but I've some dubt on main.c structure, include file and Makefile configuration, can you help me?