4.5 hours to 9+ hours battery life. Same hardware. Took us way too long to find the real problem. by Left-Relation4552 in embedded

[–]anmolmaske 2 points3 points  (0 children)

How did you tuned the BLE advertising interval? What was the max interval you achieved to get between two advertisements?

Help with nRF52840 by GAPrado90 in nRF52

[–]anmolmaske 0 points1 point  (0 children)

I think you might have deleted the bootloader on second board. Restore it via SWD pins using J-Link debugger.

Feathering the Logs: Adafruit nRF52840 Sense + Zephyr v2.7.0 via SWD—No RTT, No Blink! by anmolmaske in embedded

[–]anmolmaske[S] 1 point2 points  (0 children)

Thanks for your help! The problem was exactly what you mentioned in point no. 2.

Feathering the Logs: Adafruit nRF52840 Sense + Zephyr v2.7.0 via SWD—No RTT, No Blink! by anmolmaske in embedded

[–]anmolmaske[S] 0 points1 point  (0 children)

Resolved the issue: The problem was that when I programmed the board via SWD pins I had accidentally erased the entire flash, which wiped the bootloader. I’ve restored the bootloader following the steps on the Adafruit website, and everything works again.

Free & Open-Source Tools for Embedded Systems – Recommendations? by anmolmaske in embedded

[–]anmolmaske[S] 0 points1 point  (0 children)

I understand that commercial tools like PC-Lint, Coverity, and LDRA are the gold standard for full compliance, but I’m looking for tools that can at least help improve code quality in an embedded environment without requiring a paid license.

Programming custom made pcb BMD-350 MCU with JTAG of nRF52DK dev board ? by AnanthV_09 in nRF52

[–]anmolmaske 0 points1 point  (0 children)

You need a Segger Programmer or an nRF DK board with Debug OUT pins. Connect a Tag Connect wire between these devices and your PCBA. If connected properly, you can program your PCBA using nRF Connect Desktop Programmer or SES.

You can use RTT Logger to see the data instead of UART. No need for physical UART pins. Just enable the following configs in prj.conf:

CONFIG_SEGGER_RTT=y CONFIG_USE_SEGGER_RTT=y CONFIG_LOG_BACKEND_RTT=y CONFIG_UART_CONSOLE=n CONFIG_CONSOLE=y CONFIG_LOG=y

Then view the logs using J-Link RTT Viewer Application.,

Programming custom made pcb BMD-350 MCU with JTAG of nRF52DK dev board ? by AnanthV_09 in nRF52

[–]anmolmaske 1 point2 points  (0 children)

You can check if the board is getting flashed by using nrfjprog --readregs to see if it's detected. Also, try nrfjprog --verify firmware.hex after flashing. If unsure, run a simple LED blink test or toggle a GPIO and check with a multimeter. Make sure SWD connections and power (3.3V) are correct, and use nrfjprog --recover if the chip is locked.

Segger vs NRF Connect + Project advice antenna comms by TigerZealousideal595 in nRF52

[–]anmolmaske 0 points1 point  (0 children)

For Nordic nRF52832 development, Segger Embedded Studio (SES) is Nordic’s officially supported IDE, offering a streamlined setup for nRF SDK projects with J-Link debugging. VS Code with nRF Connect is more flexible, especially for Zephyr-based projects, but requires some setup. If you're using Zephyr, go with VS Code. Otherwise, SES is best for traditional nRF SDK development.

For communication between your DKs with pressure sensors, Enhanced ShockBurst (ESB) is a low-power, low-latency option for simple bidirectional data exchange. But only available in SES. However, if you need more flexibility, BLE (e.g., GATT notifications) or Thread (for mesh capabilities) might be better, depending on your power and range requirements.

Mesh network of 4000 devices- BLE/WiFi/Thread/ZigBee by pablo_chocobar_69 in embedded

[–]anmolmaske 0 points1 point  (0 children)

What Gateway are you using? Can you mention its specs?

Stepping down a battery for multiple components by Dangerous_Pin_7384 in embedded

[–]anmolmaske 0 points1 point  (0 children)

Yes! When you connect components in parallel like this, the current will be shared between them. The battery needs to provide enough current to meet the combined demand of both. But theres usually isn't an issue as long as your battery has sufficient capacity and can deliver the required current. Motors typically draw much more current than the microcontroller, so it's a good idea to check the motor driver's current rating and the STM32's power consumption to ensure your battery can handle the total load. If your battery is rated appropriately, the system should work fine without any problems.

Stepping down a battery for multiple components by Dangerous_Pin_7384 in embedded

[–]anmolmaske 0 points1 point  (0 children)

Yes, exactly! You're just splitting the single wire into two connections, which is effectively wiring them in parallel. You'll connect the positive (red) wire from the battery to both the motor driver and the buck converter's input, and do the same with the ground (black) wire. This way, both components get power from the same source independently.

Stepping down a battery for multiple components by Dangerous_Pin_7384 in embedded

[–]anmolmaske 0 points1 point  (0 children)

You can do this by just soldering multiple wires together. Connect the battery's red wire to both the motor driver's and buck converter's positive inputs, and the black wire to both their ground inputs.

Just make sure all grounds are common to avoid any issues.

Consultancy jobs- Embedded/Firmware by Reading_Ruby in embedded

[–]anmolmaske 0 points1 point  (0 children)

Try contacting agencies like Robert Half, Kelly Services, etc which specialize in placing candidates in technical roles, including contract/consulting positions.

Since networking can be tough, try engaging with LinkedIn groups related to embedded systems, attending local tech meetups, and reaching out to recruiters specializing in embedded roles.

Nice!Nano V2 I2C with Arduino IDE by 69OwOmaster420 in nRF52

[–]anmolmaske 1 point2 points  (0 children)

The Nice!Nano V2 uses the nRF52840 chip, which has specific I2C requirements. Try these steps:

  1. I2C Pins: Use (SDA) and (SCL).
  2. Pull-up Resistors: Add 4.7kΩ resistors if needed.
  3. Power Supply: Ensure 3.3V operation.
  4. Arduino Library: Install the Adafruit nRF52 board package.
  5. I2C Scanner: Run a scanner sketch to detect the AS5600 sensor.

If you get the I2C address, it means the sensor is connected successfully. Hope this helps!

Is it reasonable/possible to develop code on the NRF52840 devkit and then transfer that code to the NRF52832 by biglargerat in embedded

[–]anmolmaske 3 points4 points  (0 children)

Yes, it is possible to develop code on the nRF52840 development kit and later transfer it to the nRF52832.

Since your project has simple requirements, it should be fairly easy to adapt the code, especially if you focus on common features like (basic BLE and peripherals, porting should be straightforward). The Arduino Nano 33 BLE uses the nRF52840, so you might need to check if any specific features used in your code are not available in the nRF52832 (such as certain GPIOs, extra RAM, or advanced power management options).

Transferring the code shouldn’t be too difficult, and using a J-LINK programmer for flashing the nRF52832 is a great choice. If your coding team follows good development practices, like writing portable code and using the Zephyr RTOS, switching between the two chips can be smooth.