Search found 625 matches

by chipfryer27
Wed Feb 28, 2024 7:51 am
Forum: Flowcode V8
Topic: UART string variable question (quick question)
Replies: 9
Views: 2559

Re: UART string variable question (quick question)

Hi Abhi

All good here with the exception of setting up a new laptop which is a pain. However as I'll be able to use Flowcode App Developer it will be worth the headache:)

It would be easy to recreate a generic chart, but to redo the LoRa I'd need to first refamiliarise myself with modules.

Regards
by chipfryer27
Tue Feb 27, 2024 8:04 am
Forum: Flowcode V8
Topic: UART string variable question (quick question)
Replies: 9
Views: 2559

Re: UART string variable question (quick question)

Hi Abhi Good to hear from you again.I hope all is well. I've no idea what happened to the pictures in the post, they appear to have "errors" so can't be displayed. Unfortunately I don't have any copies. It was kind of a follow on from another e32Lora. Were you looking for anything specific to the Lo...
by chipfryer27
Mon Feb 26, 2024 11:21 pm
Forum: Flowcode V8
Topic: UART string variable question (quick question)
Replies: 9
Views: 2559

Re: UART string variable question (quick question)

Hi Glad you found it helpful. When using comms, keeping the interrupt as short as possible is very beneficial. Usually I'll just grab my byte (for example) and store in a circular buffer before exiting. In my Main Loop, I'll poll buffer and act accordingly. I may "test" to see if expected amount of ...
by chipfryer27
Thu Feb 22, 2024 9:52 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi When I get a chance I will send over my Tx and Rx (Rx using an Uno R3) and the R3 has no issue in receiving either a byte or an string of bytes. I only had the crossover issue when using PIC-PIC and is probably just a documentation typo or the like. No big deal once you figure it out. With SPI, a...
by chipfryer27
Mon Feb 19, 2024 5:25 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi My traces for Master to Slave were fine and I can send any number of bytes from Master to Slave. However I'm having issues with Slave to Master. I can't seem to get any activity on the MISO pin. I tried a different target and this just confused things further. The Master SPI component has the MOS...
by chipfryer27
Sat Feb 17, 2024 6:56 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi I've been busy the last few days and only catching up with things now. Previously, I documented Master to Slave and also Slave to Master transmission, but this wasn't for your target chips. Since then I found a couple of issues using v8 with your target (Mega8) which seemed to be resolved in v10....
by chipfryer27
Tue Feb 13, 2024 7:16 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi "send_spi_inter_8MGr_positiv_mosi.fcfx" is unlikely to work as shown. You are using the INT0 interrupt but nothing is connected to it. Also, you only have it enabled for what will only be the briefest period before disabling it again. When you push your button, you branch and in that branch you e...
by chipfryer27
Fri Feb 09, 2024 2:24 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi I tried capturing a fixed number of bytes being sent.The Master side was not much issue but at the Slave things didn't go quite to plan when trying to capture an "array" of bytes being sent as one burst. Without using "C" to interact directly with registers I think it will be easier to simply use...
by chipfryer27
Fri Feb 02, 2024 10:53 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi As I mentioned in an earlier post SPI isn't greatly suited to sending "random" information, it really needs to be in a structured format that both ends have prior knowledge about. By that I mean if you are going to send from the Master four bytes, then the Slave needs to know to expect four bytes...
by chipfryer27
Wed Jan 31, 2024 11:34 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi The above was just an example to show that the 328p / Mega8 can be a Slave and receive data using FC components. If I remember correctly you wish the Master to send 4-bytes for the Slave to receive. Probably an easy way to do this is using the Circular Buffer, if you know how many bytes you will ...
by chipfryer27
Tue Jan 30, 2024 10:11 am
Forum: Flowcode V8
Topic: include libraries from Arduino?
Replies: 2
Views: 351

Re: include libraries from Arduino?

Hi Libraries can indeed be included although I've only done so with a Pico. Once you have downloaded your library(s) In Project Options tick the box "Use Supplementary Code" then click on "Supplementary Code" In "Definitions and function declarations" add the path to your library(s). You will need t...
by chipfryer27
Mon Jan 29, 2024 2:44 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi OK, the attached chart has been tested on an Uno R3 which uses a 328p chip and I believe that it is compatible with your Mega8. Note that due to issues using the GetChar and SendChar component Macros in FC v8, it is written in FC v10, and as mentioned earlier FC v10 is now totally free for hobby ...
by chipfryer27
Sun Jan 28, 2024 3:52 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi I have been reading up a bit. With regards to the Uno R3 which uses the 328p (which should be compatible with the 8') it has SS/CS on pin B2 and this cannot be remapped and is required by SPI to sync. This pin however is part of Interrupt On Change (IOC) but is port based rather than pin. Also it...
by chipfryer27
Fri Jan 26, 2024 10:26 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi That's interesting to hear. My issue isn't to do with licensing and I can compile when using v8 with an ATMEGA8 target and a SPI Slave component, but if I then include either the GetChar or SendChar then compilation to Hex fails. Does the above work for you? I'm reading up a bit more about the Me...
by chipfryer27
Fri Jan 26, 2024 11:07 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi Sorry to be brief, just heading out. I didn't see a constant stream of clock pulses, I saw a burst which is what I would expect. When CS/SS goes low and the Master initialises communications it supplies a clock and sends out a byte with a clock pulse per bit. If no more bytes are to be sent then ...
by chipfryer27
Fri Jan 26, 2024 7:15 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi

I think I might have an Uno board somewhere, running a 328 which is similar. If so I'll run a couple of tests.

Regards
by chipfryer27
Mon Jan 22, 2024 11:50 pm
Forum: Feature Requests
Topic: STM32F103c8t6
Replies: 4
Views: 4398

Re: STM32F103c8t6

Hi I'm sure you realise that Flowcode v8 is now considered "old" and that v10 is now the current version. Therefore I personally think it unlikely that a request to include a new family in v8 will happen soon. In saying that, the family is not included in v10 either, but if you are using v10 I'd gue...
by chipfryer27
Wed Jan 17, 2024 11:33 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi

Can you provide a sketch of your connectivity?

Alternatively something like this

Master - Slave

Pin x (MOSI) - Pin x
Pin y (MISO) - Pin y
etc
etc

There may be an issue with connections as your previous traces did show as expected.

Regards
by chipfryer27
Tue Jan 16, 2024 10:28 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi but that using the flowcode program it's not possible to receive data over the spi bus for MOST controller names Sorry, but I have to disagree. You are having issues with a Mega8 using v8, issues I have also identified. However I have also given examples of using two other microcontrollers in Mas...
by chipfryer27
Tue Jan 16, 2024 6:52 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi In my tests the button on the Master was a "one-shot". When pressed it would send a single value then wait for the next press. Once confirmed that all was well I modified to send a few random values. The traces were captured using a Logic Analyser and depending on settings can sample from a few m...
by chipfryer27
Sat Jan 13, 2024 8:44 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi No, it is totally free and will work both in simulation and hardware without time limit. Included are certain chips, but you may need to purchase "chip packs" if the free options don't meet your needs. Do note that although "free", if you intend to sell or otherwise commercialise your code then y...
by chipfryer27
Sat Jan 13, 2024 3:56 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi I'll reply in more detail later, but regarding FC v10 this link will explain things further https://www.flowcode.co.uk/ All components are now free as are certain chips, and I believe there is a discount too for existing users, but you would be best to contact Matrix directly for specifics. Regards
by chipfryer27
Sat Jan 13, 2024 9:58 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi In the pervious chart I posted, the one using interrupt INT0 on the PIC1939, I changed the target to a Mega8, moved display to PortC and successfully compiled to Hex. This suggests a possible issue with the v8 Slave Component. Unfortunately as v8 is a bit old now it may no longer be officially su...
by chipfryer27
Sat Jan 13, 2024 9:47 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi I started to create a chart from scratch, testing as I went (saving to Hex). All went well until I used the SPI_GetChar component macro. This then failed to compile with C:\Users\user\AppData\Local\Temp/ccftAoPc.o: In function `__vector_1': v8_SPI.c:(.text.__vector_1+0x22): undefined reference to...
by chipfryer27
Fri Jan 12, 2024 9:13 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7294331

Re: some problems with spi data transmission

Hi I compiled to Hex and got different results. For me SPI_Slave_MEGA8_INT_v8.c:(.text.FCM_SPI_Slave+0x2): undefined reference to `FC_CAL_SPI_Slave_RxByte_1' SPI_Slave_MEGA8_INT_v8.c:(.text.FCM_SPI_Slave+0xc): undefined reference to `FC_CAL_SPI_Slave_TxByte_1' seem to be the problem. Not sure why th...