Hi Again,
I'm still having problems its working but missing every 3rd or 4th ADC read looking at the oscilloscope it seems it not finishing the last transfer in time.
so the blue trace is the DRDY line which I am triggering the EXTI from, the yellow line is the chip select (active low)
m
zoomed ...
Search found 11 matches
- Thu Feb 16, 2017 1:19 am
- Forum: STM32 Support
- Topic: STM32F103 - EXT triggering SPI read
- Replies: 5
- Views: 4946
- Tue Feb 14, 2017 12:51 pm
- Forum: STM32 Support
- Topic: STM32F103 - EXT triggering SPI read
- Replies: 5
- Views: 4946
Re: STM32F103 - EXT triggering SPI read
Thanks for the reply,
That was how my code was originally structured (I used SPIstartRead as i was only receiving) but I found it stopped working (EXT was triggering but the SPI callback wasn't and the SPI_CS stayed low) when I stressed the USB virtual serial (I'm outputting the ADC data in HEX to ...
That was how my code was originally structured (I used SPIstartRead as i was only receiving) but I found it stopped working (EXT was triggering but the SPI callback wasn't and the SPI_CS stayed low) when I stressed the USB virtual serial (I'm outputting the ADC data in HEX to ...
- Tue Feb 14, 2017 2:21 am
- Forum: STM32 Support
- Topic: STM32F103 - EXT triggering SPI read
- Replies: 5
- Views: 4946
Re: STM32F103 - EXT triggering SPI read
So after a bit of head scratching and getting my head around some ideas I have a solution that seems to be working
So when the EXT interrupt is triggered I wake a thread as per (m), the thread has an absolute priority has the following code;
void SpiAdcThread() {
while (true) {
/* Waiting ...
So when the EXT interrupt is triggered I wake a thread as per (m), the thread has an absolute priority has the following code;
void SpiAdcThread() {
while (true) {
/* Waiting ...
- Mon Feb 13, 2017 11:47 pm
- Forum: STM32 Support
- Topic: STM32F103 - EXT triggering SPI read
- Replies: 5
- Views: 4946
STM32F103 - EXT triggering SPI read
HI Guys,
I'm after a little guidance (or maybe a lot) I currently have an STM32F103VET interfacing to a AD7767 24bit ADC, so the current code that works by itself it uses the ext driver to trigger and interrupt on the falling edge of the DRDY pin (from the ADC). From the interrupt I can call a ...
I'm after a little guidance (or maybe a lot) I currently have an STM32F103VET interfacing to a AD7767 24bit ADC, so the current code that works by itself it uses the ext driver to trigger and interrupt on the falling edge of the DRDY pin (from the ADC). From the interrupt I can call a ...
- Thu Oct 06, 2016 12:05 pm
- Forum: General Support
- Topic: Creating one file for each thread
- Replies: 10
- Views: 11436
Re: Creating one file for each thread
Thanks Marco for the heads up, I did look at other demos but didn't find any other examples.
Anyway I got it working! So the working area needed to be defined in both the header and the source file, also the thread function could not be static but instead extern.
Thanks Everyone
Simon
main.c ...
Anyway I got it working! So the working area needed to be defined in both the header and the source file, also the thread function could not be static but instead extern.
Thanks Everyone
Simon
main.c ...
- Thu Oct 06, 2016 11:08 am
- Forum: General Support
- Topic: Creating one file for each thread
- Replies: 10
- Views: 11436
Re: Creating one file for each thread
Unfortunately no Luck.
I've decided to move on and use plan B which was to encapsulate the code in the thread in another function that I call from the thread. The below code complies but I have not tried it on the my hardware.
Thanks for your help.
Simon
/*
ChibiOS - Copyright (C) 2006. ...
I've decided to move on and use plan B which was to encapsulate the code in the thread in another function that I call from the thread. The below code complies but I have not tried it on the my hardware.
Thanks for your help.
Simon
/*
ChibiOS - Copyright (C) 2006. ...
- Thu Oct 06, 2016 7:22 am
- Forum: General Support
- Topic: Creating one file for each thread
- Replies: 10
- Views: 11436
Re: Creating one file for each thread
Thanks or the reply, I had already added the "blinky.c" to the makefile. Both Source and header are in the same path as the main.c
I do not want to make a library make file just yet if it can be avoided.
Thanks
Simon Golding ...
I do not want to make a library make file just yet if it can be avoided.
Thanks
Simon Golding ...
- Wed Oct 05, 2016 9:55 pm
- Forum: General Support
- Topic: Creating one file for each thread
- Replies: 10
- Views: 11436
Re: Creating one file for each thread
Hi I am also having difficulty creating a file for each one of my threads. My current project has a massive main.c that I am looking to break into smaller files.
Deciding to keep it simple I have used basic example, and have tried to move the blinker to a new file. At this point I have just moved ...
Deciding to keep it simple I have used basic example, and have tried to move the blinker to a new file. At this point I have just moved ...
- Tue Sep 30, 2014 12:15 pm
- Forum: ChibiStudio
- Topic: Error while compiling
- Replies: 14
- Views: 19244
Re: Error while compiling
Just confirming using the latest msys-1.0.DLL from the MiniGW link above works on my Windows 8.1 64Bit at home.
- Mon Sep 29, 2014 11:37 pm
- Forum: ChibiStudio
- Topic: Error while compiling
- Replies: 14
- Views: 19244
Re: Error while compiling
I've been looking into this issue and I have found this page which explains the file that dhruvin91 linked.
m
Also there is a latter version of msys-1.0 on the mingw sourceforge page
m
Its file version is 1000.11.0.0 when the msys-1.0.DLL supplied with preview 7 is 1000.8.0.0 I have tested the ...
m
Also there is a latter version of msys-1.0 on the mingw sourceforge page
m
Its file version is 1000.11.0.0 when the msys-1.0.DLL supplied with preview 7 is 1000.8.0.0 I have tested the ...