Search found 94 matches
- Thu Apr 23, 2015 4:40 pm
- Forum: General Support
- Topic: ADC Read Two Separate Channels
- Replies: 6
- Views: 4001
Re: ADC Read Two Separate Channels
Well it turned out to not be the ADC's causing the problem. I was using the GPT with polled delay as I need a 10us delay in one of the threads and this was causing the problem. I did try the halPolledDelay but I get a "Undefined reference" error. I am using chibios 3.0 has it been implemen...
- Thu Apr 23, 2015 10:45 am
- Forum: General Support
- Topic: ADC Read Two Separate Channels
- Replies: 6
- Views: 4001
Re: ADC Read Two Separate Channels
This Is my code. //***********************************// //ADC SETUP //***********************************// #define ADC_GRP1_NUM_CHANNELS 1 #define ADC_GRP1_BUF_DEPTH 10 #define ADC_GRP2_NUM_CHANNELS 1 #define ADC_GRP2_BUF_DEPTH 1 static adcsample_t samples1[ADC_GRP1_NUM_CHANNELS * ADC_GRP1_BUF_DEP...
- Thu Apr 23, 2015 10:41 am
- Forum: General Support
- Topic: ADC Read Two Separate Channels
- Replies: 6
- Views: 4001
Re: ADC Read Two Separate Channels
Well I tried to simplify my code a bit and now i get this.. trace.. Thread [1] <main> (Suspended : Signal : SIGTRAP:Trace/breakpoint trap) adc_lld_serve_rx_interrupt.lto_priv.102() at adc_lld.c:86 0x800229c Vector128() at stm32_dma.c:315 0x8001d52 0xffffffec and this.. The target endianness is set a...
- Thu Apr 23, 2015 5:38 am
- Forum: General Support
- Topic: ADC Read Two Separate Channels
- Replies: 6
- Views: 4001
ADC Read Two Separate Channels
Hello, What I am trying to do is read two adc channels IN11 and IN15. I want to read them separately. Each one reads in its own thread and so far I am using ADCD1 and ADCD2. My problem is when using the two ADCD's it appears to be resource hungry as my code stops when trying to read the two at the s...
- Sun Mar 29, 2015 12:27 am
- Forum: STM32 Support
- Topic: stm32f4 SDIO setup
- Replies: 25
- Views: 11956
Re: stm32f4 SDIO setup
Well I think you are right it must be my interface as I switched to the spi interface I had on the back of my LCD and it worked perfectly I have ordered a prebuilt sdio interface I will wait for it to arrive and try again.
Thank you for all your help.
Thank you for all your help.
- Sun Mar 29, 2015 12:23 am
- Forum: General Support
- Topic: ADC Result
- Replies: 1
- Views: 1753
ADC Result
Hello,
I have been working with the testhal stm32 adc example and I would like to display the result first as a int so I could do some math then as a string so I could display the result on my LCD using ugfx any hints on how to do this would be appreciated.
Thank You.
I have been working with the testhal stm32 adc example and I would like to display the result first as a int so I could do some math then as a string so I could display the result on my LCD using ugfx any hints on how to do this would be appreciated.
Thank You.
- Fri Mar 27, 2015 3:07 pm
- Forum: STM32 Support
- Topic: stm32f4 SDIO setup
- Replies: 25
- Views: 11956
Re: stm32f4 SDIO setup
So after a bit more work I have got the sd to connect and mount but now i get this error. FR_DISK_ERR. What could be causing this? My Test Code. sdcObjectInit(&SDCD1); sdcStart(&SDCD1, &sdccfg); gdispClear(Black); FIL file; uint8_t teststring[] = {"This is test file\r\n"}; uint...
- Fri Mar 13, 2015 3:14 pm
- Forum: STM32 Support
- Topic: stm32f4 SDIO setup
- Replies: 25
- Views: 11956
Re: stm32f4 SDIO setup
This is my board.h I think it is correct..
I think that I do get a responce as it hits this..
*resp = SDIO->RESP1;
HAL_SUCCESS;
Then cannot detect card..
I think that I do get a responce as it hits this..
*resp = SDIO->RESP1;
HAL_SUCCESS;
Then cannot detect card..
- Fri Mar 13, 2015 2:26 pm
- Forum: STM32 Support
- Topic: stm32f4 SDIO setup
- Replies: 25
- Views: 11956
Re: stm32f4 SDIO setup
I have rebuilt my interface and now sdcConnect exits at Voltage detection..
- Thu Mar 12, 2015 2:37 pm
- Forum: STM32 Support
- Topic: stm32f4 SDIO setup
- Replies: 25
- Views: 11956
Re: stm32f4 SDIO setup
I also have long wires connecting the sd could that be a problem?