usb programming with iar

Hallo everybody ,

i am new here and i have a problem

i want to program (Apollo3 Blue ama3b1kk-kbr / sparkfun redboard artemis) with IAR or SEGGER because i need to use AmbiqSuite-R2.4.2 SDK for low-power multitasking application

but i have only usb cable

my qustion is :
how can i program the microcontroller with only usb cable in (IAR or SEGGER) ?
if i cannot , dose the Arduino IDE supports low-power multitasking applications in sparkfun redboard artemis ?

Hi. The Apollo3 does not support USB natively and therefore/also does not have a USB bootloader. There are at least three ways to re-flash the Apollo3

  • Use the UART bootloader that exists permanently on the chip. (Uses USB->UART bridge chip onboard most Artemis boards, or external FTDI USB->UART on the Edge board). A python script to perform this is available in the AmbiqSuite SDK. Another version (slightly modified for simplicity) is available in the Arduino Apollo3 repository on GitHub.

  • Use a SEGGER J-Link (or other SWD capable debug probe) to directly flash the memory. Use J-Flash Lite or similar SW along with debug probe HW.

  • Use the Ambiq Over-The-Air examples for wireless (Bluetooth) re-programming. Documentation for this exists within the AmbiqSuite SDK

P.s. the Arduino IDE supports all functionality that the HAL does - all HAL functions are available in Apollo3 Arduino sketches. Be aware, however, that the Arduino environment may enable peripherals behind the scenes. These should be disabled for extremely low power examples.

Some helpful links, perhaps?

viewtopic.php?f=169&t=50904&hilit=low+power

viewtopic.php?f=170&t=51090&p=208415&hi … er#p208415

thank you , it works good with Jlink :slight_smile:

Can you please send me the link to example for the third option?

  • Use the Ambiq Over-The-Air examples for wireless (Bluetooth) re-programming. Documentation for this exists within the AmbiqSuite SDK

I want to flash my Apollo3 Artemis (Artemis Global Tracking board) over the air… possible ?

Possible? I think.

Have I done it myself? No. Try looking in the docs here:

https://github.com/sparkfun/AmbiqSuiteS … bootloader

Thanks for your reply!

What I’m trying to do is:

I want to connect the serial console over BT instead of connect serial cable TX-RX, Programming and console…

I will try to debug the Artemis over BT because I cant connect any serial cable (It’s close box and I can’t connect any wire inside).

What do you think?

Thanks in advanced.

That sounds more difficult. You could easily get BLE “printf” debugging working, but any sort of single-step debug would require a true SWD/JTAG interface. I don’t think you could do that wirelessly w/o purchasing a special debug probe that would live within the box and has a wireless operating mode.

Thanks for your responded.

How to get printf over BLE ?

Can you send me link to any examples please ?

thanks

You can start by studying the ArduinoBLE API:

https://www.arduino.cc/en/Reference/ArduinoBLE

It will soon be supported on the Artemis and you could use it to create your own GATT server that emulates a UART connection.

(The Nordic Uart Service (NUS) seems to be a good one that we could all standardize on… https://developer.nordicsemi.com/nRF_Co … s/nus.html)

Any update here maybe ?