I'm currently developing a board and instead of having a icsp connector to program it would it be possible to add a usb port for uploading updated code?if so how would I go about doing so?
Thanks
I'm currently developing a board
What sort of board?
instead of having a icsp connector to program it would it be possible to add a micro usb port for uploading updated code?
Only if you have a bootloader in the processor on the board and some sort of way of converting a USB system into a serial connection.
if so how would I go about doing so?
See above.
wfisom:
I'm currently developing a board and instead of having a icsp connector to program it would it be possible to add a micro usb port for uploading updated code?if so how would I go about doing so?
Thanks
ah ok thanks,so I would have to add some code to the board and then have some sort of ide on the board?
have some sort of ide on the board?
No an IDE is an Integrated Development Environment, it is the name of software that runs on a PC or Mac.
You want to say what you are going to do or are you expecting us to guess?
Grumpy_Mike:
No an IDE is an Integrated Development Environment, it is the name of software that runs on a PC or Mac.You want to say what you are going to do or are you expecting us to guess?
basically what I'm trying to do here is instead of having a icsp connector I want to have a micro usb port instead ?
Thanks
wfisom:
I want to have a micro usb port instead ?
Have you considered how you will get your 16MHz Arduino to make sense of the 400MHz (?) USB signals?
An Atmega 32U4 has built-in USB capability. An Atmega 328 does not.
...R
Yeah good point but as I'm making my own board I will using this 32 bit processor http://uk.farnell.com/stmicroelectronics/stm32f103cbt6/mcu-32bit-cortex-m3-72mhz-lqfp/dp/1606327 to make life easy I would use the icsp connector but if people are buying my board and I'm releasing firmware updates I can't expect them to buy a avr programmer to update the boards code .is there any other options except from usb? @Robin2
Thanks
It's very easy just put one of these on each of your boards https://www.coolcomponents.co.uk/programmers
Mark
yeah thanks that's kinda what im looking for but I want to integrate that into my board so its not a separate board, and I also want to have no isp connector the some kind of usb connection as the bootloader
Thanks
wfisom:
Yeah good point but as I'm making my own board I will using this 32 bit processor http://uk.farnell.com/stmicroelectronics/stm32f103cbt6/mcu-32bit-cortex-m3-72mhz-lqfp/dp/1606327 to make life easy I would use the icsp connector but if people are buying my board and I'm releasing firmware updates I can't expect them to buy a avr programmer to update the boards code .is there any other options except from usb? @Robin2
Thanks
Farnell's website is down as I write this. Hoever the Cortex MCU is very different from the 16MHz Arduinos and I have no idea whether it includes USB capabilities or not.
...R
What about adding in a FTDI chip like the Uno? That's if your going to use a chip without usb capability.
The STM32 series cannot be programmed using ICSP. ICSP is an Atmel thing.
STM32 are flashed over either serial or via USB DFU - but USB DFU is not supported natively on the F103.
So if you want a USB bootloader on the 103, you need to write it yourself. Alternately, you could integrate a USB<->serial adapter onto the board design and use serial for it.
Reading the comments you need to build a PCB that will be able to connect it with USB and program the chip,
I can think about Atmega32u4, bootload it and then solder it on your PCB, you can look how arduino Leonardo is builded, it's the same thing you want to build.
D.60
Yeah think ill go for alternate option of integrating it into the board, I don't suppose any one knows of a usb to serial adapter?
Thanks
wfisom:
I don't suppose any one knows of a usb to serial adapter?
They are VERY common. Google USB-TTL and/or FTDI
...R
ok I will try again now with a more specific search ,thanks
www.tinyosshop.com has a FTDI module with micro USB connector
You can see one in this picture.
Mouser.com carries MIKROE483, Mini USB, I use them for embedding onto a board, better mounting options, see 2nd picture.
CrossRoads:
www.tinyosshop.com has a FTDI module with micro USB connector
You can see one in this picture.
Mouser.com carries MIKROE483, Mini USB, I use them for embedding onto a board, better mounting options, see 2nd picture.
Hi yeah the second option is EXACTLY what im looking for ,intergrating that on to my board for a bootloader, its just a case of actually having that in the board design and not separate. From what I know the stm32 mcu has a built in usb bootloader so does that mean I just stick on a micro usb port on to the board and let the mcu do the rest without having a usb to serial adapter on the board?
Thanks:)
Its the STM32F103CBT6

