Search found 73 matches

by Kisen
Mon Sep 28, 2020 12:09 am
Forum: Flowcode V8
Topic: USB Slave on PIC
Replies: 7
Views: 418

Re: USB Slave on PIC

The problem i am finding with FC right now is that it if you arent using the paid for components, you cant really do much with it. There is a lot you can do with Flowcode. However it is unrealistic to expect to be able to implement every use case with it. There are just too many different microcont...
by Kisen
Sun Sep 27, 2020 11:48 pm
Forum: Flowcode V8
Topic: USB Slave on PIC
Replies: 7
Views: 418

Re: USB Slave on PIC

he problem i am finding with FC right now is that it if you arent using the paid for components, you cant really do much with it. Hi First even if you use the paid components as you mention ,there is no MASS Storage device -USB component to use directly. Then after many years working in the Embedde...
by Kisen
Sun Sep 27, 2020 11:46 am
Forum: Flowcode V8
Topic: USB Slave on PIC
Replies: 7
Views: 418

Re: USB Slave on PIC

Hi Kersing I am aware that mass storage is required. I have briefly spoken with Ben and Leigh through the forum about this. The message you posted to is from 2018,so about 2.5 years ago. In this time it seems that little has been done in this area in FC, despite the benefits of such a feature being ...
by Kisen
Sun Sep 27, 2020 10:13 am
Forum: Flowcode V8
Topic: USB Slave on PIC
Replies: 7
Views: 418

USB Slave on PIC

Hi, Has anyone used the USB Slave component on a PIC? What can be done with it? I am working on a device that needs to display as a thumb drive to get data from it. Currently my hardware uses STM32 which means this component isnt supported. If i redesign using a PIC and and purchase the licenses fro...
by Kisen
Tue Sep 22, 2020 4:54 pm
Forum: Freelance Embedded Engineers
Topic: CREATE A USB MASS STORAGE DEVICE USING AN STM32
Replies: 12
Views: 2327

Re: CREATE A USB MASS STORAGE DEVICE USING AN STM32

Thanks very much Leigh, much appreciated.
by Kisen
Tue Sep 22, 2020 2:49 pm
Forum: Freelance Embedded Engineers
Topic: CREATE A USB MASS STORAGE DEVICE USING AN STM32
Replies: 12
Views: 2327

Re: CREATE A USB MASS STORAGE DEVICE USING AN STM32

Hi Ben,

Are you able to share any progress on the MSD or how to add the C files in order to create an MSD?
by Kisen
Mon Sep 21, 2020 4:09 pm
Forum: Flowcode V8
Topic: STM32F042 Interrupts
Replies: 3
Views: 300

Re: STM32F042 Interrupts

Thanks Leigh

I will try this out later on.
by Kisen
Sat Sep 19, 2020 9:44 am
Forum: Flowcode V8
Topic: STM32F042 Interrupts
Replies: 3
Views: 300

STM32F042 Interrupts

Hi I have just started to program my interrupts for a device im working on. On the STM32 there are 16 interrupts for pins. I notice that in FC there are only 5 available in the options. EXTI0 EXTI1 EXTI2 EXTI3 EXTI7 For my particular hardware setup i am in need of: EXTI0 - Check EXTI2 - Check EXTI5 ...
by Kisen
Wed Sep 16, 2020 7:30 am
Forum: Flowcode V8
Topic: ARRAYS in supplementary code
Replies: 8
Views: 573

Re: ARRAYS in supplementary code

I'm using 47K of bytes within supplementary code as loading images The only way all 47K could be loaded was by using the format: char const unsigned BATTERY4[] ={0xFF , 0x8F , 0x00, //LED 1 ORANGE 0xFF , 0x8F , 0x00, //LED 2 ORANGE 0xFF , 0x8F , 0x00, //LED 3 ORANGE 0x00 , 0x00 , 0x00, //LED 4 OFF ...
by Kisen
Tue Sep 15, 2020 7:39 pm
Forum: Flowcode V8
Topic: ARRAYS in supplementary code
Replies: 8
Views: 573

Re: ARRAYS in supplementary code

Hi Bachman,

I tried your code. I get the same error, unfortunatly.
by Kisen
Tue Sep 15, 2020 6:30 pm
Forum: Flowcode V8
Topic: ARRAYS in supplementary code
Replies: 8
Views: 573

Re: ARRAYS in supplementary code

It has just started coming back to me. I have done this before on PIC. So i just added this to supplementary code //LED BATTERY PROFILE 4 rom char* BATTERY4 = {0xFF , 0x8F , 0x00, //LED 1 ORANGE 0xFF , 0x8F , 0x00, //LED 2 ORANGE 0xFF , 0x8F , 0x00, //LED 3 ORANGE 0x00 , 0x00 , 0x00, //LED 4 OFF 0x0...
by Kisen
Tue Sep 15, 2020 4:03 pm
Forum: Flowcode V8
Topic: ARRAYS in supplementary code
Replies: 8
Views: 573

ARRAYS in supplementary code

Hi, I would like to create some Arrays in C code that can be called as required. I am very conscious of the RAM that i am using so i dont want to have all of the arrays stored in RAM. When adding arrays in supplementary code are these stored in the RAM or in the FLASH memory? If they arent stored in...
by Kisen
Tue Sep 08, 2020 5:23 pm
Forum: Freelance Embedded Engineers
Topic: CREATE A USB MASS STORAGE DEVICE USING AN STM32
Replies: 12
Views: 2327

Re: CREATE A USB MASS STORAGE DEVICE USING AN STM32

Hi Ben There are a couple of issues with your suggestion. The first one which is most important is that the specification for the device is that there be no drivers. It needs to communicate on any machine. The second which is more inconvenient than anything, is that the hardware is designed. The onl...
by Kisen
Mon Sep 07, 2020 6:22 pm
Forum: Flowcode V8
Topic: USB Mass storage on STM32
Replies: 11
Views: 745

Re: USB Mass storage on STM32

Hi Martin, I have been pointed in the direction of a pretty decent (so i am told) library for the USB MSD. I have zipped it up and PMd it to you. I have also just figured out how to attach it here. In case anyone else needs it. Credit to LonelyWolf on Github cube-usb-msc.zip Can you give these files...
by Kisen
Mon Sep 07, 2020 4:50 pm
Forum: Flowcode V8
Topic: Importing C code program to FC8
Replies: 2
Views: 1222

Re: Importing C code program to FC8

Hello,

I just tried to download this Libcode.zip file as i was hoping it would show me how to import pre existing c files. I just get an unexpected end of archive error.

Is there a more direct tutorial for doing this sort of thing?
by Kisen
Mon Sep 07, 2020 4:29 pm
Forum: Flowcode V8
Topic: USB Mass storage on STM32
Replies: 11
Views: 745

Re: USB Mass storage on STM32

So I just put that include tag in the supplementary code box?

How does it then get the actual code?
by Kisen
Mon Sep 07, 2020 9:47 am
Forum: Freelance Embedded Engineers
Topic: CREATE A USB MASS STORAGE DEVICE USING AN STM32
Replies: 12
Views: 2327

Re: CREATE A USB MASS STORAGE DEVICE USING AN STM32

I would like to keep this in FC. I understand FC and the rest of the program i am working on is also written in FC. There is no opportunity to change the hardware since the hardware is already developed. I have never worked with the C block beyond adding 1 or 2 lines of C. A while back i recall crea...
by Kisen
Sun Sep 06, 2020 10:11 pm
Forum: Freelance Embedded Engineers
Topic: CREATE A USB MASS STORAGE DEVICE USING AN STM32
Replies: 12
Views: 2327

Re: CREATE A USB MASS STORAGE DEVICE USING AN STM32

Hi Martin I downloaded this weeks ago. I still cannot understand it. I dont even understand how I should use it. There doesn't appear to be any instructions. FC I understand because it's got a logical flow and i can follow it. This is just something else. Better to just pay someone else to provide m...
by Kisen
Sun Sep 06, 2020 9:29 pm
Forum: Freelance Embedded Engineers
Topic: CREATE A USB MASS STORAGE DEVICE USING AN STM32
Replies: 12
Views: 2327

Re: CREATE A USB MASS STORAGE DEVICE USING AN STM32

It would appear in flowcode, what i am looking for is a USB MSC component creating.
by Kisen
Sun Sep 06, 2020 8:14 pm
Forum: Freelance Embedded Engineers
Topic: CREATE A USB MASS STORAGE DEVICE USING AN STM32
Replies: 12
Views: 2327

CREATE A USB MASS STORAGE DEVICE USING AN STM32

Hi, I am in need of a USB mass storage device using STM32F042K6 and SPI Flash memory, the storage. The function of the device is as follows. Device is plugged into USB on a computer. Device identifies as a MASS STORAGE DEVICE. Files can be created by the device that the computer can read. Files can ...
by Kisen
Sun Sep 06, 2020 7:03 pm
Forum: Flowcode V8
Topic: USB Mass storage on STM32
Replies: 11
Views: 745

Re: USB Mass storage on STM32

Structures are only available in C.. So struct {int a; char b;} x; would define a structure (x) with an int and then a char (so x.a = 1 and x.b = 'c') - depends on the situation but you could use the C code in C blocks or use an array of bytes (though this can get a bit ugly...) (so in this case us...
by Kisen
Sun Sep 06, 2020 3:40 pm
Forum: Flowcode V8
Topic: USB Mass storage on STM32
Replies: 11
Views: 745

Re: USB Mass storage on STM32

By convention - so there is a good chance - all caps names are used for constants.. ,(for example DEVICE_FS) - these should be defined in one of the header files. Also the structure of FS_Desc etc. If this is C they will either be initialised on a function (address passed in using & or dynamically ...
by Kisen
Sat Sep 05, 2020 6:40 pm
Forum: Flowcode V8
Topic: USB Mass storage on STM32
Replies: 11
Views: 745

Re: USB Mass storage on STM32

'&' (addressof) in C (or C++) passes the address of a variable (or object) - this maybe allows the function called to modify the value.. Martin So they are pointers? So in flowcode then I think I will need to have an array? I'm sure i have asked about pointers before and was told this was the best ...
by Kisen
Sat Sep 05, 2020 11:40 am
Forum: Flowcode V8
Topic: USB Mass storage on STM32
Replies: 11
Views: 745

USB Mass storage on STM32

Hi, I am beginning work on STM32 mass storage project. I want to make my device look like a flash drive on the PC so i can load and retrieve files. Eventually i would like to have this function as a firmware update tool and virtual com port depending on a set of circumstances. For now i need to get ...
by Kisen
Tue Aug 18, 2020 8:45 am
Forum: Flowcode V8
Topic: USB SERIAL for STM32
Replies: 3
Views: 324

Re: USB SERIAL for STM32

Hi Leigh,

Not quite the answer i had hoped for.

Is it possible/feasible to implement such a feature in the flowchart itself?